Closed cgat closed 10 years ago
Not really sure if its due to MarkerImage.
I guess you should explicitly pass your anchor for your custom marker.
I actually set the anchor in the tests I was doing above, but after stepping through the code one more time I see that previously used marker images are cached, so the anchor wasn't getting set. I set the anchor where I create my markers and that seemed to do the trick.
Thanks for the quick reply.
good news! please close if it solves your issue :)
Assume I already have a google map loaded with gmaps4rails and that I have the javascript variable 'handler'. Consider adding a marker the following two ways:
I think this may be because you still you MarkerImage, which is now depreciated. For example, if you set a breakpoint at setMap in Gmaps.Google.Objects.Common, you can change the serviceObjects's icon property to the url string (instead of the MarkerImage) and it will work properly.
Any idea how to get around this for the time being?
Also note that this doesn't seem to be related to #387 ( I'm setting markers: { maxRandomDistance: null } in my buildMap function).
I can provide a live demo if you pm me.