Hi Matt The DrawFeature control should be activated as soon as I run the newcrop function, as it activates dpoly, which is the DrawFeature control. I would expect the circle symbol to appear as soon as I move my mouse over the map, as it does in the snap example (albeit squares) at:
http://openlayers.org/dev/examples/snapping.html (BTW I have a separate snap control which I have as a menu option on the toolbar above the map which activates snapping.) In my case, the circle symbol only appears after the first point is drawn. Many thanks, Robert >>> sqgs <[email protected]> 24/02/2012 11:33 a.m. >>> I am not qualified to answer your question (I am new to openlayers), but I think you have a conflict in drawfeature control You have a drawfeature Icon (displayClass: "olControlDrawFeaturePoint"), which will activate drawfeature when it is pressed, and at the same time, you have a toggle function newcrop(), which specify which control is activated. For using icons, you can check this example: http://openlayers.org/dev/examples/wfs-snap-split.html For using toggle function, you can check this example: http://openlayers.org/dev/examples/modify-feature.html Matt. -- View this message in context: http://osgeo-org.1560.n6.nabble.com/drawfeature-question-tp4474203p4500304.html Sent from the OpenLayers Users mailing list archive at Nabble.com. _______________________________________________ Users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/openlayers-users This email and any attachments are confidential and intended solely for the addressee(s). If you are not the intended recipient, please notify us immediately and then delete this email from your system. This message has been scanned for Malware and Viruses by Websense Hosted Security. www.websense.com _______________________________________________ Users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/openlayers-users
