Tommy B
Posts: 0
Joined: Sat Sep 15, 2012 3:39 am

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.

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Set Google Map to default to Satellite View with displayed

Can you show us what you tried?

Tommy B
Posts: 0
Joined: Sat Sep 15, 2012 3:39 am

Set Google Map to default to Satellite View with displayed

map.maptype("satellite");
map.maptype.satellite;
map.options['maptype']= ''satellite";

Igor
Posts: 0
Joined: Tue Apr 02, 2013 12:05 pm

Set Google Map to default to Satellite View with displayed

Please make your app link public and send us that link.

Tommy B
Posts: 0
Joined: Sat Sep 15, 2012 3:39 am

Set Google Map to default to Satellite View with displayed

I have shared with a href="mailto:support@appery.io" rel="nofollow"support@appery.io/a.

Igor
Posts: 0
Joined: Tue Apr 02, 2013 12:05 pm

Set Google Map to default to Satellite View with displayed

What is the name of App?

Igor
Posts: 0
Joined: Tue Apr 02, 2013 12:05 pm

Set Google Map to default to Satellite View with displayed

Hello Tommy,

Working on it now, I'll update.

Igor
Posts: 0
Joined: Tue Apr 02, 2013 12:05 pm

Set Google Map to default to Satellite View with displayed

To set default view to satellite you should use next steps:

  1. Remove success event for "ViewDataList" service

  2. 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

  3. Remove "Page show event" from "resultsSingle" screen

  4. On "resultsSingle" screen add load event with JavaScript code
    code
    initialize();
    /code

  5. 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...

Return to “Issues”