I would look at the MarkerCluster Demo.  I tried the MarkerManager and
had issues with it.  Stuff if hard to locate in all these Groups, but
if you peruse the SVN Repository:  
http://code.google.com/p/gmaps-utility-library-flash/source/browse/
then you can browse and look at the libraries.  If you want to include
the Libraries then click here for the SVN Link:
http://code.google.com/p/gmaps-utility-library-flash/source/checkout.
It took me about an hour to get my map populated from the database
using this demo.  There is also a demo for MarkerManager.  Also I am
doing exactly what you are doing and would be happy to work privately
with you.  Mainly because I find these forums time consuming and would
rather work one-on-one with collaborators.  I can be reached at curtis
dot fisher at procontent dot net.  procontent.net is our URL.

Have a great day...

Curtis Fisher

On Jan 26, 6:38 am, mediagrin <[email protected]> wrote:
> Hello all,
>
> Sometime ago I got help off here in building my Flash XML Google map
> with geocoding, which I am very grateful for.
> However now I need to use something like Markermanager in order to
> control the number of markers that keep clustering together.
>
> To be honest I havn't a clue where to start with Markermanager, I have
> looked over various web articles but can't seam to find any that
> helps.
> Basically I want to be able to add a Markermanger facility to my code
> in order to stop markers clustering together and so show a single
> marker with say a number on it displaying the number of markers
> clustered within. Also I would like to be able to click on this new
> marker to zoom the map and display the markers within.
>
> Is there anyone who can help?
>
> Here is my code snippet: -
>
> function runPropertyXML(myXMLlink, myLink) {
>         /*var url:String = "http://www.bbc.co.uk";;
>         var request:URLRequest = new URLRequest(url);
>         navigateToURL(request, '_blank');*/ // second argument is target
>
>         function loadXML2(e:Event):void{
>         XML.ignoreWhitespace = true;
>         var prop_xml:XML = new XML(e.target.data);
>
>         var myTimer2:Timer = new Timer(200, prop_xml.property.length()); //
> Timer duration = the number for nodes in XML
>         myTimer2.addEventListener(TimerEvent.TIMER, onTick);
>         myTimer2.addEventListener(TimerEvent.TIMER_COMPLETE,
> onTimerComplete);
>         myTimer2.start();
>
>         function onTick(event:TimerEvent):void {
>
>                 var myLatLon:String = prop_xml.property[j].propAddress;
>                 var myPropPrice:String = prop_xml.property[j].propPrice
>                 var myTitle:String = prop_xml.property[j].titleText;
>                 //var myAgentLink:String = prop_xml.property[j].intLink;
>                 var myAgentLink:String = myLink;
>                 var myFullDetailsLink:String = 
> prop_xml.property[j].fullDetailsURL;
>                 var myPropImage:String = prop_xml.property[j].propImageURL;
>                 var myTip = prop_xml.property[j].title_tip;
>                 //var myTip:String = myLatLon +" - "+myPropPrice;
>                 var myImageWidth:String = prop_xml.property[j].imageWidth;
>                 var myImageHeight:String = prop_xml.property[j].imageHeight;
>
>                 doGeocode2(e, myLatLon, myTitle, myAgentLink, 
> myFullDetailsLink,
> myTip, myPropImage, myImageWidth, myImageHeight, myPropPrice);
>                 j++;
>     }
>
>         function onTimerComplete(event:TimerEvent):void {
>          trace("Time's Up!");
>     }
>  }
>
>  var xmlLoader2:URLLoader = new URLLoader();
>  xmlLoader2.addEventListener(Event.COMPLETE, loadXML2);
>  xmlLoader2.load(new URLRequest(myXMLlink));
>  //xmlLoader2.load(new URLRequest("xml/propertySullivan.xml"));
>
> }
>
> function doGeocode2(e, myLatLon, myTitle, myAgentLink,
> myFullDetailsLink, myTip, myPropImage, myImageWidth, myImageHeight,
> myPropPrice){
>         // Geocoding example
>     var geocoder2:ClientGeocoder = new ClientGeocoder();
>     geocoder2.addEventListener(GeocodingEvent.GEOCODING_SUCCESS,
> function(event:GeocodingEvent):void {
>
>         var placemarks:Array = event.response.placemarks;
>         if (placemarks.length > 0) {
>                 //map.setCenter(placemarks[0].point);
>
>                 var mc2Icon = new houseIcon;
>                 //trace(placemarks[0].point);
>
>                 var titleStyleSheet:StyleSheet = new StyleSheet();
>         var h1:Object = {color: "#000000",  fontWeight: "bold",
> fontFamily: "Arial", fontSize: "12pt", textAlign: "left"};  //,
> paddingTop: "10pt"
>                 titleStyleSheet.setStyle("h1", h1);
>
>                 var contentStyleSheet:StyleSheet = new StyleSheet();
>         var body:Object = {color: "#000000", fontWeight: "normal",
> fontFamily: "Arial", fontSize: "12pt", textAlign: "left"};
>         contentStyleSheet.setStyle("body", body);
>
>                 var marker:Marker = new Marker(placemarks[0].point, new 
> MarkerOptions
> ({hasShadow: true, tooltip: ""+myTip, icon:mc2Icon}));  //,
> iconAlignment:0x20
>                 marker.addEventListener(MapMouseEvent.CLICK, function
> (event:MapMouseEvent):void {
>                 marker.openInfoWindow(new InfoWindowOptions({
>
>                         strokeStyle: { color: 0x000000  },
>             fillStyle: { color: 0xFFFFFF,    alpha: 1  },
>             titleStyleSheet: titleStyleSheet,
>             contentStyleSheet: contentStyleSheet,
>
>                         titleHTML: '<h1>&nbsp;&nbsp;<a href="'+myAgentLink+'"
> target="_self"><u>'+myTitle+'</u></a></h1>',
>                         contentHTML: '<body><a href="'+myFullDetailsLink
> +'"target="blank"><img src="'+myPropImage+'" width="'+myImageWidth+'"
> height="'+myImageHeight+'" align="bottom"/></a><br>'+myLatLon
> +'<br><br>'+myPropPrice+'<br><br><u><a href="'+myFullDetailsLink+'"
> target="_blank">Click here</a></u> for property details</body>',
>
>                         cornerRadius: 12,
>             padding: 10,
>             hasCloseButton: true,
>             hasTail: true,
>             tailWidth: 20,
>             tailHeight: 20,
>             tailOffset: 0,
>             tailAlign: InfoWindowOptions.ALIGN_LEFT,
>             //pointOffset: new Point(3, 8),
>             hasShadow: true,
>             width: 320,
>                         height: myImageHeight + 10
>                 }));
>         });
>
>         map.addOverlay(marker);
>         }});
>
>     geocoder2.addEventListener(GeocodingEvent.GEOCODING_FAILURE,
> function(event:GeocodingEvent):void {
>         trace("Geocoding failed");
>                 trace(event);
>         trace(event.status);
>     }
> );
>
> geocoder2.geocode(myLatLon);
>
> }
>
> Any help would be truly appreciated.

-- 
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.

Reply via email to