Search code examples
javascriptgoogle-mapsgoogle-maps-api-3google-maps-enginegoogle-maps-engine-lite

MapsEngine + GeoLocation Javascript API


How can I use the Geolocation Javascript API with my Google MapsEngine custom map?

I have made a mall map and I would like to use this: https://developers.google.com/maps/documentation/javascript/examples/map-geolocation

To my map here: https://mapsengine.google.com/map/edit?mid=zw7uoGNV7Gvo.kuA1Rc-lcUsI

But I don't know how and I can't find any instructions online of how to use geolocation in my custom map made by Google MapsEngine. :(

I hope any Google Maps expert here can point me to the right direction. :(


Solution

  • You will need to create your own JavaScript app using the JS Maps API, adding a Maps Engine Layer, then you will be able to use the Geolocation service you linked.

    The catch is that you appear to be using Maps Engine Lite or Pro, neither of which are supported in the Maps Engine Layer (or in the Maps Engine API). If you move your data to the Maps Engine product, then you will be able to use these features.