[OpenLayers-Users] Launch a Popup for a Polygon object
Transmatrix
prime at transmatrix.net
Fri Oct 3 20:46:30 EDT 2008
Any help here is appreciated. I am a fairly novice OpenLayers user, but I am
already really impressed by the power and capability of this product.
However, I am having a problem. I have successfully generated a circle using
the following format:
var polygonLayer = new OpenLayers.Layer.Vector(name, {styleMap: new
OpenLayers.StyleMap({fillOpacity: 0.6, fillColor: color})});
var circle = new OpenLayers.Geometry.Polygon.createRegularPolygon(origin,
radius, 100, 0);
var drawcircle = new OpenLayers.Feature.Vector(circle);
polygonLayer.addFeatures(drawcircle);
map.addLayers([polygonLayer]);
What I would like to do is add an onClick event to the circle that launches
a popup with text in it.
However, this is done, I just want to add the functionality of clicking in
the area where the circle is and have a popup show up. Is this possible?
Thanks!
--
View this message in context: http://www.nabble.com/Launch-a-Popup-for-a-Polygon-object-tp19807459p19807459.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
More information about the Users
mailing list