Hi, i'm searching at google and some list about geolocation and openlayers and i get set lonLat at map and rotation of the image, but can't join the rotated image in the lonLat<div><br><div>i send here my example OpenLayer javascript, if some can see my trouble and help me to fix it!.. </div>
<div>i don't know any of javascript, i'll try to adapt other code into my. so...</div><div>here is.</div><div><br></div><div><br></div><div><div><html><body></div><div> <div id="mapdiv"></div></div>
<div> <script src="<a href="http://www.openlayers.org/api/OpenLayers.js">http://www.openlayers.org/api/OpenLayers.js</a>"></script></div><div> <script></div><div> map = new OpenLayers.Map("mapdiv");</div>
<div> map.addLayer(new OpenLayers.Layer.OSM());</div><div> lon = -81.094400;</div><div> lat = 17.585400;</div><div> var lonLat = new OpenLayers.LonLat( lon, lat )</div><div> .transform(</div><div> new OpenLayers.Projection("EPSG:4326"),</div>
<div> map.getProjectionObject()</div><div> );</div><div> var zoom = 6;</div><div> var markers = new OpenLayers.Layer.Markers( "Markers" );</div><div> var icon = new OpenLayers.Icon("./images/airplane.gif");</div>
<div> var planes=new OpenLayers.Layer.Vector("Planes",</div><div> {</div><div> styleMap: new OpenLayers.StyleMap({</div><div> "default": {</div><div> externalGraphic: "./images/airplane.gif",</div>
<div> graphicWidth: 16,</div><div> graphicHeight: 16,</div><div> graphicYOffset: 0,</div><div> rotation: "${angle}",</div>
<div> fillOpacity: "${opacity}"</div><div> }</div><div> })</div><div> }); </div><div> var feature=new OpenLayers.Feature.Vector(</div>
<div> new OpenLayers.Geometry.Point( lon, lat), {"angle": 45, opacity: 100});</div><div> planes.addFeatures([feature]); </div><div> map.addLayer(planes);</div><div> map.setCenter (lonLat, zoom);</div>
<div> </script></div><div></body></html></div></div><div><br></div><div><div><br></div>-- <br><font color="#888888"><font color="#888888">Antonio Pe</font><span><font color="#888888">ñ</font></span><font color="#888888">a</font><span></span><br>
<font color="#888888">Secure email with PGP 0x8B021001 available at <a href="http://pgp.mit.edu" target="_blank">http://pgp.mit.edu</a><br></font></font><font color="#888888">
<font color="#888888">Fingerprint: 74E6 2974 B090 366D CE71 7BB2 6476 FA09 8B02 1001</font></font><br>
</div></div>