android - Leaftlet angular overlay image issue -


i have used leaflet plugin develop ionic hybrid app. when put in native environment, found many issues occur. there anyway fix that?

issue 1: zoom in , zoom out image run away randomly.

issue 2: when click zoom in or zoom out button change full screen.

i have recorded video show problem here.

here code have written floorplan:

var local_icons = {     defaulticon: {     }   }      angular.extend($scope, {     defaults: {       // scrollwheelzoom: false,       crs: 'simple',       maxzoom: 3     },             maxbounds: leafletboundshelpers.createboundsfromarray([[-350, -620], [350, 620]]),     // maxbounds: leafletboundshelpers.createboundsfromarray([[-540, -960], [540, 960]]),     layers: {         baselayers: {             pwtc: {                 name: 'pwtc',                 type: 'imageoverlay',                 url: 'app/hbe/lib/img/floorplan/hall1.jpg',                                     bounds:     [[-540, -960], [540, 960]],                                     // bounds:  [[-540, -960], [540, 960]],                                     maxzoom: 3,                                     // minzoom: 1,                                 doubleclickzoom: false,                                 scrollwheelzoom: false,                 layerparams: {                 }             }         },     },             center: {         lat: 0,         lng: 0,         zoom: 0     }, }); 


Comments

Popular posts from this blog

sql - invalid in the select list because it is not contained in either an aggregate function -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

How to start daemon on android by adb -