Any Idea about Drawing Rectangle on Mapbox GL like we draw Polygon in This Demo
This is currently not supported in mapbox-gl-draw, but according to this github issue it's in the works.
Related
We are trying to create a polygon programmatically in typescript using mapbox gl. But starting height and ending height of the polygon will be different to create a slope. Please let me know is there any way to achieve this requirement.
Mapbox GL JS does not support 3D shapes with sloping surfaces. You could use something like three.js (via ThreeBox) to achieve it.
I am looking for a way to draw bezier curves in my mapbox gl js app.
Just like this very interesting example : https://demos.mapbox.com/bezier-drawing-tool/
Unfortunately i don't find any documentation about this demo and its exactly what i am searching for.
In this demo, when you select the pen tool you can start a bezier curve by dragging the mouse. In edit mode, Bezier handles shows up and allow the user to modify the bezier spline.
The mapbox gl draw https://github.com/mapbox/mapbox-gl-draw/blob/main/docs/API.md
is a very promising API but there is currently no support for bezier curve. i also looked in the available custom modes but found nothing.
As a fallback, i think i could develop a custom mode with mapbox gl draw to support bezier curves by subdividing the line in multiple segment. But before going that way i would like to know if there is already an existing support for drawing bezier curves ?
Thank you
I am aware of this question, and the answer works ok for me but I would like the drawn polygons (hexagons) not to move or scale with the map.
Is there a way to do besides overlaying an SVG on top of the map and drawing on it?
How can I add a 3 dimensional sphere to Mapbox GL using the Javascript API? I've read about the fill-extrusion property but I'm unsure how I would use it for a sphere. I'm trying to create a semi-transparent dome around a latitude/longitude coordinate based on a distance radius.
There's no way to do anything like that at present. The only 3D features are fill-extrusions, which have flat tops. Maybe you could create an image that looked like a 3D dome, and overlay that.
Hi I want to draw overlays in map box.
May I know if Map box supports drawing overlay.
May i also know whether image,text,table overlays supported in map box.
Yes -- Leaflet Draw
and Yes -- Image Overlay