Beginner questions: squashed map, drawing circles, displaying circles #39
-
Hello there, Thank you for your awesome library! First of all, on all examples, the maps look "squashed". After further investigation using the Secondly, I managed to draw a circle on the map, but for my use case, I wish that starting to draw a second circle removes the 1st one. Do you have any clue on how to achieve this? Lastly, when you want to show a circle on the map as described here, zooming in or out doesn't change the size of the circle, which (in my use case of outlining geographical areas) should scale with the zoom, but it remains fixed. I didn't figure out how to handle this, except converting the circle to a polygon then displaying it this way, but that's really overkill / uncomfy. Any ideas? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
https://stackoverflow.com/questions/31024715/ol3-openlayers3-change-radius-of-circle-when-zoomed |
Beta Was this translation helpful? Give feedback.
-
Well, I tried several values for Consider I want to center a map on the Eiffel Tower (lon: With
|
Beta Was this translation helpful? Give feedback.
You are using openstreetmap tile server. Default projection of this tile server EPSG:3857 and you decided to use 4326 because of this our library makes reprojection and transforms EPSG:3857 to EPSG:4326. ol-source-osm has reprojectionErrorThreshold prop. This prop means Default: 0.5 Maximum allowed reprojection error (in pixels). Higher values can increase reprojection performance but decrease precision. So you can increase the reprojectionErrorThreshold value for precision.