简体   繁体   中英

How do you draw a freehand polygon in ios simulator using openlayers?

In my app in a browser i can do this with the shift key. But does anyone know how to do this using the ios simulator?

Just pass the appropriate option to the DrawFeature control handler ( freehand ):

new OpenLayers.Control.DrawFeature(vectorLayer, OpenLayers.Handler.Path, {
    handlerOptions: {
        freehand: true
    }
});

Then you'll always be in freehand mode, without the need for the shift key.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM