You are not logged in.
Pages: 1
Hello ppl,
I have a problem with displaying correctly the markers on IE8 (in all other browsers the markers looks normal. ).
A preview:
I've tried with new google.maps.Size(x,y) but it's not helping.
A part of the code where I specified the markers:
{ action: 'addMarkers',
markers:[{latLng:[mylat,mylng], data:'<a href="http://" target="_blank"><img src="thumb_infowindow.jpg" width="150" height="100" alt="" /></a><br /><p>Text in infoWindow</p>', options:{icon: "../template/img/gmap/gmap-marker-2.png"}},
marker:{
options:{
draggable: false
}, Thanks in advance for the help guys!
Last edited by joe.moJito (2012-06-16 16:29:33)
Offline
I use MarkerImage class to create new icons and never have issues since size is part of the class
Example:
var myIcon=new google.maps.MarkerImage(url, new google.maps.Size(32,64));
Then in your options replace the url string with the variable myIcon
Google MAPS API reference:
https://developers.google.com/maps/docu … arkerImage
Offline
OMG it was a problem with margins and paddings ... Problem solved
Thanks for the answer charlietfl.
Offline
Pages: 1