-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
marker._icon
is null when marker was set with marker.setIcon(divIcon)
#10
Comments
That looks like the bug. I think the reason is that plugin not handles well situation when you change icon after marker creation. Try to solve this problem by defining icon a the same time you create a marker. Look at this example: |
@hosuaby Alexei, thanks for the link. I tried your method, but turns out
I fixed my problem ( However, I tried this on Leaflet v1.0.2 (via mabox.js) and v1.3.1. I'll close this issue for now. |
Hey,
This is similar to: |
Context
TypeError: Cannot read property 'style' of null
makeMoveStep
and 668makeResizesStep
when callingicon.style.cssText
Setup
Problem
._icon
Question
The text was updated successfully, but these errors were encountered: