Page 1 of 1
Get map center and zoom level.
Posted: Mon May 12, 2014 10:52 am
by Marcel Popescu
Hello,
I would like to get the google map center and zoom level after any changes occurs and store them in global variables.
I tried to use the google.maps.event.addListener, with GetZoom() and GetCenter(), but I didn't manage to set it right in Appery.
Can anyone give me a hand with this issue ?
Thanks,
Marcel
Get map center and zoom level.
Posted: Mon May 12, 2014 12:24 pm
by Marcel Popescu
Get map center and zoom level.
Posted: Mon May 12, 2014 1:10 pm
by Kateryna Grynko
Hi Marcel,
Thank you for the update.
Let us know if you need any help.
Get map center and zoom level.
Posted: Tue Sep 23, 2014 5:27 am
by B510
Hello Marcel,
could you please share how to set automatic zoom level?..
thanks a lot in advance
regards
Get map center and zoom level.
Posted: Mon Oct 06, 2014 2:09 am
by Tooba Atif
Did you got the answer? Having same issue
Get map center and zoom level.
Posted: Mon Oct 06, 2014 3:06 am
by B510
Hi Tooba..
not yet ..
..
please let me know if you got it.. I also will update it .. thanks
Get map center and zoom level.
Posted: Mon Oct 06, 2014 3:59 am
by Tooba Atif
I have done it like getting the zoom level of previous map and using that for new map on service success using
var map = Appery("InspectionMap").options.mapElement.gmap('get', 'map');
prevZoom = map.getZoom();
and then on geolocation service success I use
map.setZoom(prevZoom);
It works for me.