HI
Looks like that when we draw a shape the scale does not work that well when zooming in-out?
screen cast : screencast.com/t/QVewVSyuSi
thanks.
jm.
Looks like that when we draw a shape the scale does not work that well when zooming in-out?
Hi JM,
Thanks for the video, it is clear to show the issue.
We can recreate it with the pure openlayers library and seems like it might be an accuracy issue. Now, we are trying to figure out the root of the issue, but I guess it might be take some days to work on it.
If any questions, please feel free to let us know.
Thanks,
Johnny
Hi Johnny
let me know when you will have some news.
jm
Hi Jm,
It proved not a bug. Drawing the shape around the street/road boundary is not right and the right way is drawn the shape around the center of street/road, please check the video screencast.com/t/Iy0qj3wYrgx
The reason is the base layer worldmapkitoverlay is rendering at runtime. Each road/street in the layer consists of 3 kind of part, inner line, center line and outer line. The coordinate’s information are located at the center of the street/road. The outer line is responsible for drawing the boundary by the current zoom level style and we know each zoom level owns its own zoom level styles like road color, width etc. That’s why we can’t draw the comparison shape following the outer line but the center line.
I also tested it on the Google and Bing. The google Streets map type have the same situation like worldmapkitoverlay, but the Bing map is much better if we still draw those shapes following the boundary.
Hope what I am explaining is clear.
Anything confused, please let us know.
Thanks,
Johnny
Thanks for the explanation ! Any idea on how I could help the drawing of a shape ? I mean is a user want to draw a shape that is based on map background area, street,… Then how do you think I could provide some automatic adjustment for the shape to stick with what the background map based area?
Thanks
Jm.
Hi Jm,
I am afraid that there is not a good way to do the adjustment with those kinds of layers. But there is another way, We can choose the satellite map as the base layer rather than the digital type layers which are drawing at runtime. But when I tested the Google satellite layer as the base layer, it does a projection between the last two zoom level and this will make the drawing shapes do not match with the background when switching the two zoom level.
Good thing is the satellite type in Bing map doesn’t have this projection issue and it works perfect with the drawing shapes. So, we can choose the Aerial and Hybrid type as the base layer and then draw the shapes anywhere.
Thanks,
Johnny