Draw and paint areas in images
-
04-10-2019 - |
Question
How to draw areas in a image, based on points, like draw areas in google maps? Dynamically with javascript.
Editing: The question is about to put a map image on the page and draw an area on the top of a house, for example.
Solution
Use the canvas element.
OTHER TIPS
In addition to the JavaScript solution, you could always use PHP to dynamically draw lines. Then place the newly-created image on top of the map image.
Here is a small tutorial: Drawing shapes with GD
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow