Hi,

I've been using custom icons and I find that the markers are offset by quite a bit. (I'm using Google Maps, and the markers provided by the Gmap module)

This causes markers to look like some buildings are located in the sea. :)

By adding:

[code]
marker.setIconAnchor([row.icon.width/2,row.icon.height])
[/code]

The custom marker looked a lot closer to the default marker.

Attached is a patch.

Michael

CommentFileSizeAuthor
mapstraction-marker-anchor.patch424 bytesmaikeru

Comments

levelos’s picture

Status: Active » Fixed

Thanks maikeru, good catch. Just committed a slightly more efficient variant of your patch.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.