This isn't really a function of Yahoo Maps but rather whatever coding
system you are using. If you are pulling your addresses from an
array (like I do) then you can have a multi-dimensional array where
the 2nd element would have the custom text you want. I mix PHP with
var map = new YMap(document.getElementById('map'));
map.drawZoomAndCenter("Butler Park, Cottonwood Heights, UT", 5);
for ( $i = 1; $i < count($data); $i++ )
var myType =" <? echo $data[$i]; ?> ";
var myAdd =" <? echo substr($data[$i], 6, strlen($data
[$i])) ; ?> ";
var myDate =" <? echo $data[$i]; ?> ";
currentGeoPoint = new YGeoPoint( <? echo $y.",".$x; ?>);
In my example, $data[$i] holds the Type of address I am adding.
Data is a large array featuring all sorts of extra data. As you can
see, the mouseover and click event will have very distinct
information appear per address.
Hope that helps!
--- In firstname.lastname@example.org
, "dalelarsen22" <dalelarsen22@...>
> Okay, so you know how you can add multiple markers on a map right?
> You do it with an array like this:
> var addresses = new Array("Pleasant View, UT" , "North Ogden, UT");
> That is great and all but all the markers say the same thing after
> mouseover and on a click. Look at my code below.
> var marker = new CustomPOIMarker(addresses[i], '~ Come
> us', 'This is where I live', '0x6C84DB', '0xFFFFFF');
> map.addMarkerByAddress( marker, addresses[i] );
> When I add multiple markers all of them have the same description
> them when you mouseover or click on them.
> How can you customize it so that each one has a different
> Thanks in advance!
> [Non-text portions of this message have been removed]