GoogleMapsAddon icon indicating copy to clipboard operation
GoogleMapsAddon copied to clipboard

Add support for drawing tools

Open mlopezFC opened this issue 5 years ago • 7 comments
trafficstars

Analyze the possibility of enabling drawing tools in the map.

mlopezFC avatar Jun 16 '20 12:06 mlopezFC

If it is possible there should be option for placing(drawing) polylines on the map. drawingModes: ['marker', 'circle', 'polygon', 'polyline', 'rectangle']

djerman avatar Jun 17 '20 07:06 djerman

If it is possible there should be option for placing(drawing) polylines on the map. drawingModes: ['marker', 'circle', 'polygon', 'polyline', 'rectangle']

If you're referring to creating lines, markers and polygons from the server side, that is already supported (take a look at the demo source code and also at the demo itself by clicking "Add Polygon")

What are not supported are circles, if you need that, please create a different issue.

Thanks for the feedback!

mlopezFC avatar Jun 17 '20 11:06 mlopezFC

Thanks for response, no I don't need circle, for me it's enough to add marker and line...

djerman avatar Jun 17 '20 12:06 djerman

I've been investigating this feature and adding the drawing toolbar will implied having to add new definitions in both, the web-component and this addon. In order to work, new definitions for the missing shapes are needed: circle, rectangle (similar at what already exists for polygons and markers) and the same for the toolbar's drawing manager.

paodb avatar Apr 06 '22 19:04 paodb

Line is a very precious resource.

++

jonasrotilli avatar Aug 30 '23 01:08 jonasrotilli

If it is possible there should be option for placing(drawing) polylines on the map. drawingModes: ['marker', 'circle', 'polygon', 'polyline', 'rectangle']

If you're referring to creating lines, markers and polygons from the server side, that is already supported (take a look at the demo source code and also at the demo itself by clicking "Add Polygon")

What are not supported are circles, if you need that, please create a different issue.

Thanks for the feedback!

In the example there are only polygon. It mainly takes the line. Circles, rectangles, triangles can be drawn with polygon, but lines are hopeless, the polygon "closes" and is outside the scope of any line.

jonasrotilli avatar Aug 30 '23 01:08 jonasrotilli

Hi @jonasrotilli . This ticket was created for adding support for drawing tools, so the user can draw features directly on maps. I've created a new ticket for handling lines when creating features programmatically from the server side. This ticket will track the progress of of enabling drawing tools in the map. Thanks for the feedback!

mlopezFC avatar Sep 18 '23 15:09 mlopezFC