Page 1 of 1

Google Map and more options

Posted: Sat Jan 11, 2014 2:46 pm
by Tom6106181

Hi,
Is it possible to add more options to the;

var mapOptions = {
zoom: 1,
streetViewControl: false
};

Code: Select all

 var map = Appery('map', myOptions); 

?? or something like that?

-Tom


Google Map and more options

Posted: Sat Jan 11, 2014 2:55 pm
by Igor

Hi,

Yes, you can add more options to Google Map. Please use Maps Javascript API to see the list of options:
https://developers.google.com/maps/do...


Google Map and more options

Posted: Sun Jan 12, 2014 9:51 am
by Tom6106181

I was thinking about the "initial initializing of map" from appery builder. How to insert more options to the initial map that loads.

Do I need to load map first (from builder) and then re-initialize it to insert more options?

-Tom


Google Map and more options

Posted: Sun Jan 12, 2014 10:38 am
by Igor

You can insert all options when you initializing map.

https://developers.google.com/maps/do...
http://docs.appery.io/tutorials/addin...


Google Map and more options

Posted: Sun Jan 12, 2014 10:45 am
by Tom6106181

Still not answering my question. My question is; When using the Appery UI, dragging MAP component to page. Can I initilize more options right away? I notice only zoom & location points are available in the UI. Do I need to "re-initialize" the map to add example: StreetviewControl: false?


Google Map and more options

Posted: Sun Jan 12, 2014 5:12 pm
by maxkatz

The options that you see in Properties are what you can set in design time. Everything else could be set/changed in runtime.