Set Google Map to default to Satellite View with displayed
I would like to set my default view to satellite when displaying a googlemap. I've tried several options but cant seem to get anything to work.
Catch up wih the Appery.io community on our forum. Here you'll find information on the lastest questions and issues Appery.io developers are discussing.
https://forum.appery.io/
I would like to set my default view to satellite when displaying a googlemap. I've tried several options but cant seem to get anything to work.
Can you show us what you tried?
map.maptype("satellite");
map.maptype.satellite;
map.options['maptype']= ''satellite";
Please make your app link public and send us that link.
I have shared with a href="mailto:support@appery.io" rel="nofollow"support@appery.io/a.
What is the name of App?
AirMon
Bump
Hello Tommy,
Working on it now, I'll update.
To set default view to satellite you should use next steps:
Remove success event for "ViewDataList" service
Create new JS file with code:
code
function initialize() {
var myOptions = {
zoom :8,
center: new google.maps.LatLng(37.63, -122.424),
mapTypeId: google.maps.MapTypeId.SATELLITE
};
var map = new google.maps.Map($('div[dsid="googlemap_63"]').get(0), myOptions);
}
/code
Remove "Page show event" from "resultsSingle" screen
On "resultsSingle" screen add load event with JavaScript code
code
initialize();
/code
On "resultsSingle" screen add "Invoke service" select service name "ViewDataList"
Please look at our tutorials:
http://docs.appery.io/tutorials/build...
http://docs.appery.io/tutorials/addin...