Closed (fixed)
Project:
Mapstraction
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
3 Aug 2010 at 03:45 UTC
Updated:
13 Sep 2010 at 16:00 UTC
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
| Comment | File | Size | Author |
|---|---|---|---|
| mapstraction-marker-anchor.patch | 424 bytes | maikeru |
Comments
Comment #1
levelos commentedThanks maikeru, good catch. Just committed a slightly more efficient variant of your patch.