[OpenLayers-Dev] donut-like polygons

Jachym Cepicky jachym.cepicky at gmail.com
Thu Jan 8 05:59:47 EST 2009


Hi,

I submitted new ticket with patch (needs more work) with initial
implementation of the possibility to digitize 'hole' into existing
polygon (donut-like polygon) [1], something like


+-----+
| +-+ |
| | | |
| +-+ |
+-----+

How to test:

    * Digitize polygon
    * Press CTRL key and digitize new polygon inside existing one

Where to test:

    * http://dev.openlayers.org/sandbox/jachym/donut_polygons/examples/editingtoolbar.html
    * http://dev.openlayers.org/sandbox/jachym/donut_polygons/examples/modify-feature.html

and others

I would welcome any comment about the approach, I choosed. The patch
works for me, but I can imagine, someone would like to see more
general aproach.

Thanks

Jachym

[1] http://trac.openlayers.org/ticket/1894

-- 
Jachym Cepicky
e-mail: jachym.cepicky gmail com
URL: http://les-ejk.cz
GPG: http://les-ejk.cz/pgp/JachymCepicky.pgp



More information about the Dev mailing list