Gmap3 - Forum

Gmap3 exchange platform

You are not logged in.

Ads
(server costs 27.50€ per month)

#1 2012-06-16 16:15:57

joe.moJito
Member
Registered: 2012-06-16
Posts: 2

Gmap3 markers size problem in IE8

Hello ppl,

I have a problem with displaying correctly the markers on IE8 (in all other browsers the markers looks normal. ).

A preview:

http://ge.tt/3gxQvDJ

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

Ads
(server costs 27.50€ per month)

#2 2012-06-16 21:08:36

charlietfl
Moderator
Registered: 2011-11-24
Posts: 201

Re: Gmap3 markers size problem in IE8

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

#3 2012-06-16 21:43:51

joe.moJito
Member
Registered: 2012-06-16
Posts: 2

Re: Gmap3 markers size problem in IE8

OMG it was a problem with margins and paddings ... Problem solved smile Thanks for the answer charlietfl.

Offline

Board footer

Powered by FluxBB