A link to your map would help instead of posting the code. Chad Killingsworth
On Sep 13, 8:25 am, Martin Matysiak <[email protected]> wrote: > Hello everybody, > > I have a problem with using the MarkerImages in Google Maps API V3. > Please take a look at this picture: > > http://k621.de/Files/anchorProb.png > > The MarkerImage (the red circle) should be positioned with the center > on the end of the blue path. The black outline is the size of the > MarkerImage-graphic used. Although I set the anchor point when > creating the image, the maps application still uses the bottom middle > as an anchor point. > > Here is the code used when generating the Marker: > > ----------- > > function getDeviceIcon(online) { > return new google.maps.MarkerImage("./images/device/device_"+ > (online? "0" : "off") +".png", > new google.maps.Size(32, 32), > new google.maps.Point(0, 0), > new google.maps.Point(12, 15) // These are the coordinates > of the > circle's center > ); > > } > > [...] > > markerOptions = { icon : getDeviceIcon(<?php echo $dev->isOnline() ? > 'true' : 'false'; ?>), > title : "<?php echo $dev->name; ?>", > map : map, > position : new google.maps.LatLng(<?php echo $dev->getPosition()- > > >latitude.', '.$dev->getPosition()->longitude; ?>) > }; > > marker = new google.maps.Marker(markerOptions); > > ----------- > > Any ideas? -- 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.
