Hi,
I am trying make labeled markers with text from MySQL
database using php arrays , please look this code :
// Create a base icon
var baseIcon = new GIcon();
baseIcon.image = "hotel.png";
baseIcon.shadow = "shadow.png";
baseIcon.iconSize = new GSize(55, 45);
baseIcon.shadowSize = new GSize(85, 54);
baseIcon.iconAnchor = new GPoint(9, 34);
baseIcon.infoWindowAnchor = new GPoint(9, 2);
baseIcon.infoShadowAnchor = new GPoint(18, 25);
markerOptions = {
icon:letteredIcon,
labelText:'<?php echo "<div style=\"white-space:wrap;width:
55px;height:45px;font-family:Arial, Helvetica, sans-serif;font-
weight:bold; color:#FF0000;\"<strong><h5> $".addslashes($row['2'])." </
h5></strong></div>"; ?>',
labelFont: 'Arial,Verdana,sans-serif',
labelClass: 'glabel',
labelOffset: new GSize(15,-15)
};
This labelOffset above place the text INSIDE markers with
IE however the same new GSize(15 , -15) shows text
OUTSIDE markers in Firefox .
Please verify this link in both browsers and look
differences :
http://trekhotel.com/bina/index.php?r=52
Thank you very much for some help ,
donovan78.
--
You received this message because you are subscribed to the Google Groups
"Google Maps API" 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-api?hl=en.