2

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. :(

jehzlau
  • 627
  • 2
  • 9
  • 20

1 Answers1

2

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.

Mark McDonald
  • 7,571
  • 6
  • 46
  • 53
  • Thanks. I'm using Pro. I don't know about the Maps Engine product, but will take a look at it. Thanks for sharing Mark McDonald. :) – jehzlau Sep 10 '14 at 16:57
  • Saw the MapsEngine now. It's awesome. I'm still playing around with it. I wonder why I can't draw polygons with Maps Engine, only in Maps Engine Pro. O_O. I'll just post another question regarding this. – jehzlau Sep 10 '14 at 17:18