-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
CircleMarker pixel radius issues #1297
Comments
Take a look at my PR, placing radius in the options worked out. Perhaps there was some sort of chaining issue here? |
Thanks, that solves the problem for now. Not sure about the chaining issue though. I have a dozen more examples that don't do any chaining and suffer from the same issue, like this one: var marker = new L.CircleMarker(new L.LatLng(lat, lng), { color: 'black', opacity: 1, fillOpacity: 1, weight: 1, clickable: false });
marker.setRadius(1.5);
group.addLayer(marker); |
Most likely setRadius is broken, I'll check tomorrow if mourner doesn't beat me to it. |
Dave, so did you have a chance to look at this? |
Have now and fixed it :) |
In Leaflet 0.5, the CircleMarker no longer seems to correctly draw with the set radius (in pixels) but draws a lot bigger than the set value.
Steps to reproduce:
See example at http://jtreml.github.com/leaflet.measure/example.html (click arrows icon on the left and then click on the map). The radius should be 2 pixels.
Environments tested:
MacBook Air with Safari
MacBook Pro Retina with Google Chrome
The text was updated successfully, but these errors were encountered: