//////////////////////////////tthese are codes
import com.google.maps.extras.markerclusterer.*;
import com.google.maps.LatLng;
import com.google.maps.LatLngBounds;
import com.google.maps.Map;
import com.google.maps.MapEvent;
import com.google.maps.MapMouseEvent;
import com.google.maps.MapType;
import com.google.maps.overlays.Marker;
import com.google.maps.overlays.MarkerOptions;
import com.google.maps.InfoWindowOptions;
import com.google.maps.styles.FillStyle;
import com.google.maps.controls.ZoomControl;
import com.google.maps.controls.PositionControl;
import com.google.maps.controls.MapTypeControl;
import flash.net.URLRequestMethod;
import flash.events.MouseEvent;
import flash.events.Event;
var map:Map = new Map();map.key =
"ABQIAAAAwQUh6vKR-vr-RTr9rbbbCxTEaPjSDm3EX4-0q7XqaCQSVnRyFhTTru_bNC3GRdpj-dtA_2EMoHAdQA";
map.sensor = "true";
map.setSize(new Point(stage.stageWidth, stage.stageHeight));
map.addEventListener(MapEvent.MAP_READY, onMapReady);this.addChild(map);
function onMapReady(event:Event):void {
map.enableScrollWheelZoom();
map.enableContinuousZoom();
map.setCenter(new LatLng(39.095963, 35.507813), 6,
MapType.NORMAL_MAP_TYPE);
//map.addControl(new ZoomControl());
getXml();
}
////////////////////xmlden markerlar
function getXml():void {
var xmlString:URLRequest = new URLRequest("markers.xml");
var xmlLoader:URLLoader = new URLLoader(xmlString);
xmlLoader.addEventListener("complete", readXml);
}
function readXml(event:Event):void{
var markersXML:XML = new XML(event.target.data);
var markers:XMLList = markersXML..marker;
var markersCount:int = markers.length();
var i:Number;
for (i=0; i < markersCount; i++) {
var markerXml:XML = markers[i];
var id:String = markerXml.@id;
var tura:String = markerXml.@tur;
trace(id);
var latlng:LatLng = new LatLng(markerXml.@lat, markerXml.@lng);
var marker:Marker = createMarker(latlng, id, tura);
map.addOverlay(marker);
}
}
var request:URLRequest;
function createMarker(latlng:LatLng, id:String ,turi:String): Marker {
var markerOptions:MarkerOptions = new MarkerOptions();
//markerOptions.tooltip = "Purple";
markerOptions.iconAlignment = MarkerOptions.ALIGN_HORIZONTAL_CENTER;
markerOptions.iconOffset = new Point(0, 0);
var marker:Marker = new Marker(latlng, markerOptions);
//var html:String = "<b>" + name + "</b> <br/>" + address;
return marker;
}
////////////////////////////////// this is error
Scene 1, Layer 'Layer 1', Frame 1, Line 1 1172: Definition
com.google.maps.extras.markerclusterer could not be found.
/////////////////////////////////this is my message
how i can i use marker clusterer very easy and withusing my code? how can i
apply markerclusterer to my code? i searched google a lot of but i found
nothing easy way to apply. and i can apply the other ways. i hope someone
help to me i dont want to disturb anybody. thanks
////////////////////////////////thanks
--
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.