On Friday, May 20, 2011, ulao <[email protected]> wrote: > How can I tell once I clicked on a map ( layer ) but only if there is no > shape/arker under my mouse. I see the .click handler passed evt, but no info > about objects.
You can call getFeatureFromEvent on the vector layer: var f = vectorLayer.getFeatureFromEvent(evt); // f is null if there's no feature under the mouse But note that this methode isn't part of the API, it is private to OpenLayers. -- Eric Lemoine Camptocamp France SAS Savoie Technolac, BP 352 73377 Le Bourget du Lac, Cedex Tel : 00 33 4 79 44 44 96 Mail : [email protected] http://www.camptocamp.com _______________________________________________ Users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/openlayers-users
