googleway icon indicating copy to clipboard operation
googleway copied to clipboard

Map Types

Open dcooley opened this issue 3 years ago • 0 comments

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?

dcooley avatar Aug 09 '22 01:08 dcooley