Hi All, <br><br>Want your two cents on the prospect on adding the "OpenLayers.Layer.Markers" class into trunk/lib//lib/OpenLayers/OpenLayers.js <br><br>Adding a markers layer is quite easy as long as that class is loaded (obviously ;) <br>
<br>Here's a very basic implementation of adding a OL marker in a Fusion app.<br><br>function addMarker(iLon,iLat){<br><br> // get the map and map widget<br> var mapWidget = Fusion.getMapById('mapArea');<br>
var maps = mapWidget.getAllMaps();<br> var map = maps[0];<br><br> // create a markers layer called "Markers"<br> var markers = new OpenLayers.Layer.Markers( "Markers" );<br><br> // add the marker layer to the OL Map. <br>
mapWidget.oMapOL.addLayer(markers);<br><br> // OL Image related stuff. <br> var size = new OpenLayers.Size(10,17);<br> var offset = new OpenLayers.Pixel(-(size.w/2), -size.h);<br> var icon = new OpenLayers.Icon('<a href="http://boston.openguides.org/markers/AQUA.png">http://boston.openguides.org/markers/AQUA.png</a>',size,offset);<br>
<br> // add the marker. <br> markers.addMarker(new OpenLayers.Marker(new OpenLayers.LonLat(iLon,iLat),icon));<br>}<br><br>Do we want to add the OpenLayers.Layer.Markers class in 1.1?<br><br>Cheers<br><br>Paul D. <br>
<br>