SymbolixAU / googleway

R Package for accessing and plotting Google Maps
http://symbolixau.github.io/googleway/
Other
232 stars 46 forks source link

Map Types #255

Open dcooley opened 2 years ago

dcooley commented 2 years ago

Add custom MapTypes - https://developers.google.com/maps/documentation/javascript/maptypes


There's a proof-of-concept on branch issue25 . The tricky bit is how to add Map Type buttons to the control panel:

window[map_id + 'map'].setOptions({
  mapTypeControlOptions: { mapTypeIds: ["image","satellite"]}
});

Do we overwrite the "Map" one, or keep it? How do we let the user chose?