Jump to content

[SOLVED]Changing Live Map Type


skylineVirtual

Recommended Posts

I tried many things to change the appearance of the acarsmap by googling but I can't find a working solution.

What I am trying to do is to remove the layers and change the map type. Unfortunately changing this:

var defaultOptions = {
autozoom: true,
zoom: 4,
center: new google.maps.LatLng(-25.363882,131.044922),
mapTypeId: google.maps.MapTypeId.TERRAIN,
refreshTime: 12000,
autorefresh: true
};

to this:

var defaultOptions = {
autozoom: true,
zoom: 4,
center: new google.maps.LatLng(-25.363882,131.044922),
mapTypeId: google.maps.MapTypeId.HYBRID,
refreshTime: 12000,
autorefresh: true
};

doesn't do anything. The weird thing is almost no changes result in a change of the map. I tried to add the cloud layers as well, without any positive results.

I found a couple of code snippets to hide the labels but none of them worked in combination with phpvms.

Thanks in advance

Link to comment
Share on other sites

Thanks that worked for me ;) Now the labels are left and I couldn't find an option that influences those in the js file. Or did I miss something. All the code snippets I found until now resulted in the acarsmap disappearing.

EDIT: I just figured out that the Satellite map doesn't have any labels so that would be solved as well ;)

Link to comment
Share on other sites

  • 1 year later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...