I have a map in openlayers 6 with some vectorLayer type layers drawn above, the problem is that when I drag the map the part of the layer that was not visible in the initial clip is not drawn until I do not release the left button of the mouse.
Do you know if this has a solution or is something internal that funcoina so openlayers?.
Related
Is it possible in leaflet.js to draw a polygon on a map with one WMS and in this polygon display different WMS? (For example I want the user to be able to view a map with dark theme and than draw shapes on said map and in this shapes map would change to light theme.)
I have a custom map (with image overlay) with the GeoJSON data:
I need to add a mouseclick handler to the object circle (the gate on my map). It's all right for polygon areas (each corner has its own geo-coordinates), and I can handle the click, but for the circle I have a problem, because I only have the coordinates of the circle's center and the radius of the circle in pixels. When I scale the map, the circle has a different size from the object.
How to make the radius depends on the zoom level?
P.S. Mapbox GL JS has support of a functions (expressions) in the radius value but I understand what I need to use.
On Bing Maps v8 Is it possible to draw a Polygon (preferably rectangle) on Custom Overlay (Microsoft.Maps.CustomOverlay).
I have been able to render Images (as pushpins) on Custom Overlays using Canvas Layer example given in the link
https://bingmapsv8samples.azurewebsites.net/#Canvas%20Layer
I want to draw a rectangle on Top of this Canvas Layer.
Polygon's are rendered within the base map canvas. As such changing the zIndex such that custom overlays are below polygons would result in the overlay being behind the base map and not visible. It is not possible to put custom overlays between the base map and polygons at this time.
That said, if you are using the drawing tools, it uses a separate canvas when drawing/editing which is above custom overlays. If you are simply drawing a polygon/rectangle and then doing a search with it, that would work, but the final polygon would end up behind the overlay as soon as you leave edit mode.
However, polygons should always be rendered behind pushpins This is standard practice in all mapping platforms.
I have drawn polygon using
new ol.interaction.Draw
now I want to resize it.
Thanks
I am having 360 view of an object and object image is rotating in a canvas. Now I want to add custom markers to highlight certain points with description. If image is moving the marker should move and come again if the same position appears again? kindly suggest.