[OpenLayers-Dev] Draw a polygon on the map

Pedro Simonetti Garcia pedrosimonetti at gmail.com
Sun Apr 27 09:12:01 EDT 2008


Hi Darko,

Yes, it is possible. Take a look on this:

http://openlayers.org/dev/examples/setextent.html

You just need 2 pairs of lat/long, the (minx, miny) and (maxx, maxy).

regards,

Pedro Simonetti.

2008/4/27 Darko Radiceski <radiceski at gmail.com>:

> Dear all,
>
> I have been playing for the last few hours with no success to draw a
> polygon through code.
>
> What i would like to do is:
>
> I have a button that when i press it returns me the bouds of a particular
> aerial image. That is 4 pairs of Lat,Lon for the image polygon.
>
> I would like to get those coordinates and from that generate a polygon
> that i can show on the map to represent the extent of that image.
>
> Is that possible?
>
> Any help for doing that please?
>
> I really apreciate your help.
>
> Cheers
> Dan
>
> --
> Radiceski Darko
> University of Wollongong
> Australia
> SIFE - UOW Chapter - Alumni
> CASUAL ACADEMIC STAFF TEACHING - UOW SITACS
> (School of Information Technology and Computer Science,University of
> Wollongong)
> Univeristy of Wollongong - Alumni
>
> _______________________________________________
> Dev mailing list
> Dev at openlayers.org
> http://openlayers.org/mailman/listinfo/dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-dev/attachments/20080427/f831f8d5/attachment.html


More information about the Dev mailing list