This has sent me down the right path, but I'm still lost. I am trying to
modify this script to work for a polygon that was already drawn, and doesn't
require the radio buttons.
I tried just adding this to my script:
map.addControl(new OpenLayers.Control.SelectFeature(polygonLayer,
{onSelect: onFeatureSelect, onUnselect:
onFeatureUnselect}));
Along with the onPopupClose, onFeatureSelect, and and onFeatureUnselect
functions, but nothing happens when I click on the polygon. I tried just
changing it to:
map.addControl(new OpenLayers.Control.SelectFeature(polygonLayer,
{onSelect: alert("popup test")}));
However, the alert shows up when the page loads, and not when I click on the
polygon...
Arnd Wippermann wrote:
>
> Hi, try this
> http://openlayers.org/dev/examples/select-feature-openpopup.html
>
> Arnd Wippermann
>
--
View this message in context:
http://www.nabble.com/Launch-a-Popup-for-a-Polygon-object-tp19807459p19841224.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users