Changeset 8453 in genesis
- Timestamp:
- Sep 14, 2010, 7:05:35 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
nodes/nodemap.html
r8447 r8453 11 11 <script src="http://maps.google.com/maps?file=api&v=2&sensor=false&key=ABQIAAAAKRiFs2kXKhTkKZkE_ms9rhTdBXm62xfhQU7Dk6ZBFSzYdmSteRQWjLqZhwX8afHvGpd4N3iKql6w8g" type="text/javascript"></script> 12 12 13 <script src=" http://www.openlayers.org/api/OpenLayers.js"></script>14 < !-- <script src="http://openlayers.org/dev/OpenLayers.js"</script> -->13 <script src="../lib/Firebug/firebug.js"></script> 14 <script src="http://openlayers.org/dev/OpenLayers.js"</script> 15 15 16 16 <script> … … 112 112 //alert(OpenLayers.loadURL("./kmlfile.kml", "", null, parseKML)); 113 113 114 function ignoreInterlink(cluster, feature) { 115 if (feature.attributes.name.indexOf('Interlink') != -1) { 116 return(false); 117 } else { 118 return strategy.shouldClusterOrig(cluster, feature); } 119 }; 120 114 121 strategy = new OpenLayers.Strategy.Cluster(); 115 strategy.distance = 2; 116 strategy.threshold = 3; 122 strategy.shouldClusterOrig = strategy.shouldCluster; 123 strategy.shouldCluster = ignoreInterlink; 124 strategy.distance = 10; 125 strategy.threshold = 2; 126 127 var symbolizer = OpenLayers.Util.applyDefaults( 128 {externalGraphic: "http://www.google.com/mapfiles/kml/paddle/grn-stars-lv.png", pointRadius: 8, fillOpacity: 1}, 129 OpenLayers.Feature.Vector.style["default"]); 130 var styleMap = new OpenLayers.StyleMap({"default": symbolizer, "select": {pointRadius: 16,fillOpacity: 1}}); 117 131 118 132 // Hack to get around all kind of caching fails … … 120 134 var kml = new OpenLayers.Layer.GML("KML", "./kmlfile.kml?time=" + epoch, 121 135 { strategies: [strategy], 136 styleMap: styleMap, 122 137 format: OpenLayers.Format.KML, 123 138 formatOptions: {
Note:
See TracChangeset
for help on using the changeset viewer.