Answer the question
In order to leave comments, you need to log in
How to draw polygons on the web?
Good afternoon.
There are polygon coordinates. For example:
# X Y<br>
1; 402139.3; 1538128.55<br>
2; 402144.83; 1538166.25<br>
3; 402116.7; 1538170.38<br>
4; 402111.09; 1538132.22<br>
1; 402139.3; 1538128.55<br>
Answer the question
In order to leave comments, you need to log in
SVG for example. Scalable, fast, native support.
jsbin.com/ovaxir/1/edit
Some time ago I made a map area drawing on canvas. I just decided to redo it for the sake of interest for similar needs to yours.
artlark.ru/tools/poly_draw/github.com/SerDIDG/Poly-Draw
_
SharpMap seems to have something for the web sharpmap.codeplex.com/ it seems that in some kind of their test project, I even drew polygons on the substrate, either from bing roofing felts from Google.
Google Maps has a built-in polygon and polyline rendering engine. You can even do animation there.
developers.google.com/maps/documentation/javascript/overlays - manual
developers.google.com/maps/documentation/utilities/polylineutility - a tool to try
By the way, Google Maps supports encoding a list of coordinates into a string. I measured the amount of data - it turns out 10 times less data for transmission over the network. This is achieved due to the fact that the letters are much more "capacious" than the numbers. The alphabet is larger = the lines are shorter. Try it.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question