rawfunkmaharishi / rawfunkmaharishi.github.io

Deprecated band website
MIT License
72 stars 13 forks source link

Set an 'offset' on the marker definition #84

Closed harry-wood closed 9 years ago

harry-wood commented 9 years ago

If you set the size on an OpenLayers marker it tends to mess up the 'anchor' position of the marker graphic, and the marker will seem to point at a location on the map which drifts slightly as you zoom in and out

To see the problem on one of your gig pages, zoom right out and watch where it's point as you zoom.

This marker graphic (like most) is designed to point to a location at the very bottom of the graphic in the middle. The correct offset from the map location, is therefore: x minus half the graphic width (the middle), and y minus the full graphic height (the bottom).

pikesley commented 9 years ago

Superb, @harry-wood, this looks much nicer now

I love Github

harry-wood commented 9 years ago

I dunno about "much nicer". Probably the kind of thing only I would notice :-D

But one thing which has also changed recently, is this "standard" OpenStreetMap map style. As of a week ago, It now has orange roads: https://blog.openstreetmap.org/2015/10/30/openstreetmap-org-map-changing/ ...which matches the rawfunkmaharishi.uk site colour scheme quite nicely as it happens