Just to clarify...I'm importing the markers from the rss feed of an
existing google map. The markers work fine when testing locally but
fail to appear after uploading to the server. Does anyone know of an
issue that might be causing this?
Some code snippets (although i suspect the problem is elsewhere)
private static function parseMarkerInfo(feed:XML):void
{
for(var i:int = 0; i< feed.channel.item.length(); i++)
{
var point:String =
feed.channel.item[i].geoNs::point.toString();
var latLngTemp:Array = point.split(" ");
latLngArray.push(new
LatLng(parseFloat(latLngTemp[0]),
parseFloat(latLngTemp[1])));
FbiGmap.createMarker(latLngArray[i], i,
feed.channel.item[i].title);
}
}
public static function createMarker(latlng:LatLng, number:Number,
tip):void
{
var markerOptions = new MarkerOptions();
markerOptions.icon = new fbiIcon();
markerOptions.draggable = false;
markerOptions.hasShadow = true;
markerOptions.tooltip = tip;
var marker:Marker = new Marker(latlng, markerOptions);
marker.addEventListener(MapMouseEvent.CLICK,
loadInfoPane);
map.addOverlay(marker);
}
--
You received this message because you are subscribed to the Google Groups
"Google Maps API For Flash" 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-for-flash?hl=en.