OpenLayers OpenLayers

Changeset 6726

Show
Ignore:
Timestamp:
03/31/08 01:37:39 (5 months ago)
Author:
crschmidt
Message:

Use framedcloud popups, because they're awesome.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/openlayers/examples/select-feature-openpopup.html

    r6145 r6726  
    33    <title>Open Popup on Layer.Vector</title>  
    44    <link rel="stylesheet" href="../theme/default/style.css" type="text/css" /> 
     5    <link rel="stylesheet" href="../theme/default/framedCloud.css" type="text/css" /> 
    56    <style type="text/css"> 
    67        #map { 
     
    2122        function onFeatureSelect(feature) { 
    2223            selectedFeature = feature; 
    23             popup = new OpenLayers.Popup.Anchored("chicken",  
     24            popup = new OpenLayers.Popup.FramedCloud("chicken",  
    2425                                     feature.geometry.getBounds().getCenterLonLat(), 
    25                                      new OpenLayers.Size(250,75)
     26                                     null
    2627                                     "<div style='font-size:.8em'>Feature: " + feature.id +"<br />Area: " + feature.geometry.getArea()+"</div>", 
    2728                                     null, true, onPopupClose);