masajid390 / BeautifyMarker

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Marker angle

PanBagnat opened this issue · comments

Hello.

Beautiful plugin but my markers are not vertical (see in attached file).
Do you know why?

Thanks.
markers

Hello,

Sorry for late, could you please tell me which browser you are using?

There may be one other reason that you off the "zoomend" event of map.

Thanks

I was using Chrome. Anyway now I can't use anymore your plugin because I've switch this application to Google maps. Thanks.

I'm having the exact same issue. Marker Icons are 45 degrees off from vertical in every browser that I've tried (Safari, Chrome, and Firefox). Definitely a cool plugin though. Thanks

I was having the same issue. Turned out that I was using the default leaflet marker with the BeautifyIcon icon. When creating the marker make sure you use L.BeautifyMarker.marker()

Ah, thank you. I'll try that.

On Saturday, October 15, 2016, TonivdW notifications@github.com wrote:

I was having the same issue. Turned out that I was using the default
leaflet marker with the BeautifyIcon icon. When creating the marker make
sure you use L.BeautifyMarker.marker()


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#4 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AIqoCPa5Fk40KfAsXbzaVkJJ-YjmyyJMks5q0OFBgaJpZM4J70Cq
.

@TonivdW is right. You have to create marker using L.BeautifyMarker.marker() instead of default leaflet marker.

Thanks

@TonivdW - You Sir saved my day!!

It's a strange behaviour. I was facing the same issue. I don't want to use the zoomend event and the rotation effect.
I've removed the zoomend event, but it seems like the markers rotate back to horizontal position on every zoom.. so this _onMapZoomChange is to adjust them vertical back every time they go horizontal.
Is there a way that the markers show always vertical?