如何在 Smartface 中缩小 MapView?

How to ZoomOut MapView in Smartface?

如何在 Smartface 中缩小 MapView。我尝试了以下几行。但是,仍然放大到图钉。

Pages.MapPage.mapHotel.zoomLevel = -5;
Pages.MapPage.mapHotel.zoomLevel = -15;
Pages.MapPage.mapHotel.zoomLevel = 15;
Pages.MapPage.mapHotel.zoomLevel = 0;

提前致谢

Vijay,你可以使用这个功能:

function showPin() {
    Pages.Page1.mapHotel.addPin({
        id : "0",
        title : "Kahya Hotel",
        subtitle : "Alanya",
        latitude : 36.546469,
        longitude : 31.986703,
        selectedImage : "pinSelected",
        unSelectedImage : "pinUnselected",
        draggable : false,
        animate : true
    });
}

并按如下方式调用它:

function Page1_Self_OnShow() {
    Pages.Page1.mapHotel.zoomLevel = 0;
    Pages.Page1.mapHotel.centerLatitude = 36.546469;
    Pages.Page1.mapHotel.centerLongitude = 31.986703;
    var intervalID = setInterval(function () {
            showPin();
        }, 5000);
}