Hi Arothian,
you are right, I want to have something like this. I tried to call the
map but the error scared me away.
In case of:
public function createMarker(latlng:LatLng, name:String):Marker
{
var marker:Marker=new Marker(latlng);
var html:String="<b>" + name + "</b>"
marker.addEventListener(MapMouseEvent.CLICK,
function(e:MapMouseEvent):void {
googleMap.setCenter({mapMarker:latlng,
opt_zoom:7});
});
return marker;
}
I get the following error message:
Error: Implicit coercion of a value with static type Object to a
possibly unrelated type com.google.maps:LatLng.
and I have no clue what to do with this message. It is clear that this
is pure Flex but I just started again to struggle my way thrue.
Cheers,
Thomas
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---