On Oct 8, 6:33 pm, "St.terk" <[EMAIL PROTECTED]> wrote:
> Larry
>
> The reason why is star zoom level 3, is so people will be able to
> select their location and then zoom in and the marker will show up/be
> display.
> Thank you for your help
> still can't get them to load.

http://www.geocodezip.com/dollarstorhelp_test.asp
To find a marker, try typing this in the address bar:
javascript:map.setCenter(new GLatLng(34.687546,-118.148179),15);

it will center and zoom the map so the marker at that location
appears...

  -- Larry

>
> Peace
> Raul
>
> <markers>
> <Centers Cname="1000 BAXTER AVENUE CENTER" Caddress="1000 Baxter"
> Ccity="Louisville" Cstate="KY" Czip="40204" Ccounty="Jefferson"
> Longitude="-85.723382" Latitude="38.239055"></Centers>
> <Centers Cname="1000 GHENT" Caddress="1000 Ghent Rd" Ccity="Fairlawn"
> Cstate="OH" Czip="44333" Ccounty="Summit" Longitude="-81.633082"
> Latitude="41.152416"></Centers>
> <Centers Cname="1000 VAN NESS" Caddress="1000 Van Ness Ave" Ccity="San
> Francisco" Cstate="CA" Czip="94109" Ccounty="San Francisco"
> Longitude="-122.42109" Latitude="37.784785"></Centers>
> </markers>
>
> On Oct 8, 5:48 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
> wrote:
>
> > On Oct 8, 1:16 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
> > wrote:
>
> > > On Oct 8, 1:03 pm, "St.terk" <[EMAIL PROTECTED]> wrote:
>
> > > > Hi all
> > > > Currently dazed and confused...lol
>
> > > >http://www.dollarstorehelp.com/test.html
>
> > > > Is my code in the proper order?
> > > > Is the use of GMarkerManager correct?
>
> > > Firefox Error console... (or anyother browser)
> > > You have syntax errors. Fix them.
>
> > > Error: syntax error
> > > Source File:http://www.dollarstorehelp.com/test.html
> > > Line: 162, Column: 2
> > > Source Code:
> > >  });
>
> > > Error: load is not defined
> > > Source File:http://www.dollarstorehelp.com/test.html
> > > Line: 1
>
> > >   -- Larry
>
> > 1. you don't have or need a load function, move your script to the
> > bottom of the page, just before the </body> tag
> > 2. you really don't want to destroy the map and recreate it every time
> > you add a marker.
> > 3. GMarkerManager.addMarkers takes an array of markers as an input,
> > you are giving it a single marker
> > 4. your markers are only visible once you zoom in to zoom level 12,
> > the map starts at zoom level 3.
>
> >   -- Larry
>
> > > > I have 50,000 marker to display, and zoom level seems the best way to
> > > > avoid clustering.
>
> > > > After reading  several examples ( thank you in advance Ralph and Mike)
> > > > my code is in this order.
>
> > > >  // A function to create the marker and set up the event window
>
> > > >       function createMarker(point,name) {
> > > >         var marker = new GMarker(point);
> > > >         GEvent.addListener(marker, "click",function() {
> > > >           marker.openInfoWindowHtml(name);
> > > >         });
> > > >                 return marker;
> > > >                 }
>
> > > > // Read the data from Centers.xml
>
> > > >  GDownloadUrl("Centers.xml",function(doc) {
> > > >      var xmlDoc = GXml.parse(doc);
> > > >          var markers =
> > > > xmlDoc.documentElement.getElementsByTagName("Centers");
> > > >      for (var i = 0; i < markers.length; i++) {
>
> > > >                   // obtain the attribues of each marker
> > > >           var lat = parseFloat(markers[i].getAttribute("Latitude"));
> > > >           var lng = parseFloat(markers[i].getAttribute("Longitude"));
> > > >           var point = new GLatLng(lat,lng);
> > > >                   var label='<div>';
> > > >                   var label = markers[i].getAttribute("Cname");
> > > >                   label +='<br>';
> > > >                   label += markers[i].getAttribute("Caddress");
> > > >                   label +='<br>';
> > > >                   label += markers[i].getAttribute("Ccity");
> > > >                   label +='<br>';
> > > >                   label += markers[i].getAttribute("Cstate");
> > > >                   label +='<br>';
> > > >                   label += markers[i].getAttribute("Czip");
> > > >                   label +='<br>';
> > > >                   label += markers[i].getAttribute("Ccounty");
> > > >                    var marker = createMarker(point,label);
>
> > > > // Display Map
>
> > > >         var map= new GMap2(document.getElementById("map"));
> > > >                 map.addControl(new GLargeMapControl());
> > > >                 map.addControl(new GMapTypeControl());
> > > >         map.setCenter(new GLatLng(39.449768, -95.009766), 3);
> > > >                 var lm= new GMarkerManager(map,{borderPadding:1});
> > > >                 lm.addMarkers(marker, 12, 17);
> > > >                 lm.refresh();
> > > >         });
>
> > > > }
>
> > > > Peace
> > > > Raul- Hide quoted text -
>
> > > - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" 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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to