apneadiving / Google-Maps-for-Rails

Enables easy Google map + overlays creation in Ruby apps
https://apneadiving.github.io/
MIT License
2.26k stars 382 forks source link

Chopped markers #299

Closed mbajur closed 10 years ago

mbajur commented 11 years ago

Hello, i was trying to add my own marker images and and i'm facing a strange problem. Some of my markers are chopped (not allways, just on some specific zoom value, different for each marker). It looks like that:

Here is my custom marker code:

def gmaps4rails_marker_picture
  {
    "picture" => "/assets/marker.png",
    "width"   => "32",
    "height"  => "37",
    "shadow_picture" => "/assets/marker_shadow.png",
    "shadow_width" => "51",
    "shadow_height" => "37"
  }  
end

Have you any idea what is possibly going wrong ?

Thanks in advance for any help :)