First of all: Sorry, but I don't speak English well, but I have a
problem.
I have set a marker and an Info Window. How do I get the two
connected? And can I make the text displayed in the Info Window, which
is displayed by default from Google, also display at my Info-Window or
do I have to specify my own content?
Here is the code I used:
function onMapReady(event:MapEvent):void {
googleMap.removeEventListener(MapEvent.MAP_READY, onMapReady);
googleMap.setCenter(new LatLng(12.185939081,9.66781982), 15,
MapType.NORMAL_MAP_TYPE);
googleMap.openInfoWindow(new LatLng(69.18373011,9.57816315), new
InfoWindowOptions({title: "Meine Firma", content: "Straße,
Postleittzahl und Ort"}));
addMarkers();
}
function addMarkers():void {
var marker:Marker = new Marker(new LatLng(69.18373011,9.57816315), new
MarkerOptions({strokeStyle: new StrokeStyle({color: 0x987654}),
fillStyle: new FillStyle({color: 0x223344, alpha: 0.8}), radius:12,
hasShadow:true}));
marker.addEventListener(MapMouseEvent.CLICK, clicked, false, 1, true);
googleMap.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.