On Jan 9, 11:13 pm, Ilrodri <[email protected]> wrote: > Hi, i'm new here and I need help with the code of a map please! I > need to place an image (An arrow) in the map, and I need to be able to > turn this image. The first thing works but then I don't know how to > call the function for apply the changes. Here's the line code I need > to modify : > > onload=function(){ > rotate.call(document.getElementById('im'),50); > > } > > As you can see I'm colling this line :
See where? Was there supposed to be a link to your map? > > <img id="im" src="http://www.sl2o.com/tc/picture/Fleche.PNG" > width="97" height="100" /> > > but that I realy need it's to modify the marker who contains the > image, here: > > sURL = 'Image.jpg'; > iWidth = 97; > iHeight = 100; > > mImage = new google.maps.MarkerImage(sURL, new > google.maps.Size(iWidth,iHeight), new google.maps.Point(0,0), new > google.maps.Point(Math.round(iWidth/2),Math.round(iHeight/2))); > > var oMarker = new google.maps.Marker({ > 'position': new google.maps.LatLng(iStartLat,iStartLon), > 'map': map, > 'title': 'mon point', > 'icon': mImage > > Thank you in avance !! > > PS: And sory for my bad english xD This (v2) example may help: Car Trip 3 Using <canvas> to rotate the icon (HTML5 capable browsers only) http://econym.org.uk/gmap/example_cartrip3.htm -- Larry -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.
