How to draw simple closed polygons at the client side ?

Pierre GIRAUD bluecarto at GMAIL.COM
Thu Jul 28 05:53:54 EDT 2005


Sure it is possible.
Using walterzorn drawing API is a good way for this.

If you take a look at the Cartoweb online demo, you'll find a first
sample of polygon drawing with the polygon outline or measure surface
tools.
At this time, we are redevelopping this in an API, in order to give
the user a real editing interface. People will be able to draw, move
features, add, move, delete vertices (with simple snapping functions).
In this API, polygons are filled and I suppose they suit your needs.

regards

Pierre GIRAUD

On 7/27/05, Richard Roger <richard.roger at agric.nsw.gov.au> wrote:
>  
> Dear List 
>  
> I am after some advice, please.  I want to know a good way to draw simple
> polygons (simply-connected polygons with no sides crossing each other) on
> the client side in a web browser.  I see that Rosa does ellipses and
> polylines - does "polyline" in Rosa mean  a closed polygon as it does in
> Mapserver?  What about jbox?  Geotools looks as if it might be a bit heavy. 
> And I suppose that one could build upon Javascript "vectorgraphics" (e.g.,
> the www.walterzorn.com/jsgraphics library or www.karlson.ru/jsgraphics ). 
>  
> Any advice gratefully received. 
>  
> Cheers 
>  
> Richard E. Roger 
>  
>   Dr. R. E. Roger                                    NSW Department of 
>                                          Primary Industries
>  Spatial Information Officer Systems                       161 Kite St
>  Resource Information Unit                      Locked Bag 21
>                                            ORANGE NSW 2800
>  ph: (02) 6391 3697                                 fax: (02) 6391 3740
>  
>  This message is intended for the addressee named and may contain
> confidential information. If you are not the intended recipient or received
> it in error, please delete the message and notify sender. Views expressed
> are those of the individual sender and are not necessarily the views of
> their organisation.



More information about the mapserver-users mailing list