Changeset 6726
- Timestamp:
- 03/31/08 01:37:39 (5 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/openlayers/examples/select-feature-openpopup.html
r6145 r6726 3 3 <title>Open Popup on Layer.Vector</title> 4 4 <link rel="stylesheet" href="../theme/default/style.css" type="text/css" /> 5 <link rel="stylesheet" href="../theme/default/framedCloud.css" type="text/css" /> 5 6 <style type="text/css"> 6 7 #map { … … 21 22 function onFeatureSelect(feature) { 22 23 selectedFeature = feature; 23 popup = new OpenLayers.Popup. Anchored("chicken",24 popup = new OpenLayers.Popup.FramedCloud("chicken", 24 25 feature.geometry.getBounds().getCenterLonLat(), 25 n ew OpenLayers.Size(250,75),26 null, 26 27 "<div style='font-size:.8em'>Feature: " + feature.id +"<br />Area: " + feature.geometry.getArea()+"</div>", 27 28 null, true, onPopupClose);
