You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently there are very few Google specific options exposed when initializing the Google maps v3 layer. That means that implementing the kind of styles that you can see on a site like http://snazzymaps.com/, requires first initializing the Google layer then directly modifying the options on the map object.
Example:
varstyles=[];// some styles for Google Maps.varglayer=newOpenLayers.Layer.Google.v3("google",{"type": google.maps.MapTypeId.ROADMAP,"maxZoomLevel": 18});glayer.mapObject.setOptions({"styles": styles});
It would be great to be able to set this in the options (along with other options that Google exposes).
One question would be how to expose the Google options without conflicting with OpenLayers options. A couple possible solutions to that would be to preface all of the Google options with "google-" or to have a "googleOptions" option that would be an object of options for Google.
The text was updated successfully, but these errors were encountered:
Currently there are very few Google specific options exposed when initializing the Google maps v3 layer. That means that implementing the kind of styles that you can see on a site like http://snazzymaps.com/, requires first initializing the Google layer then directly modifying the options on the map object.
Example:
It would be great to be able to set this in the options (along with other options that Google exposes).
One question would be how to expose the Google options without conflicting with OpenLayers options. A couple possible solutions to that would be to preface all of the Google options with "google-" or to have a "googleOptions" option that would be an object of options for Google.
The text was updated successfully, but these errors were encountered: