On Jun 6, 8:29 pm, fenacol <[email protected]> wrote:
> Hello again :-),
>
> Right now it is 05:10 local time in holland, and allready daylite.
>
> Have made a barebone pagehttp://zeelandwijzer.nl/ajaxtest2.htmlwith
> just a ajax call to a html page.
> 2 days ago i tought with the help of you great people and a js error
> console i was going to solve this problem.
>
> How wrong that was.
>
> Error console is blank.
> I do have markers.
> But, clicking a marker makes the map pan to the right?
What browser? It seems to work OK in Chrome.
In IE6 I get an error and a grey map because IE6 has problems if you
don't declare a variable with the same name as a div. It gets
confused and tries to use the div.
Declare your map variable in the global context. Add:
var map;
just before (but outside of your load function.
-- Larry
>
> If a get rid of the:
>
> ---------------------------------------------------------------------------
> --------------------------------------------
> GDownloadUrl("test.xml", function(data) {
> var xml = GXml.parse(data);
> var markers = xml.documentElement.getElementsByTagName
> ("marker");
> for (var i = 0; i < markers.length; i++) {
> plaats = markers[i].getAttribute("plaats");
> point = new GLatLng(parseFloat(markers[i].getAttribute
> ("lat")),
> parseFloat(markers[i].getAttribute
> ("lng")));
> marker = createMarker(point, plaats);
> map.addOverlay(marker);
> }
> });
> }
> }
> ---------------------------------------------------------------------------
> --------------------------------------
> part and replace it with a static marker(lat/lng) it wil function.
>
> If i was lost a couple of days ago, right now i have no idee where to
> start :-{
>
> Thanks (again) for your time.
>
> Erwin
>
> On 3 jun, 14:43, Andrew Leach <[email protected]> wrote:
>
> > On Jun 3, 1:31 pm, fenacol <[email protected]> wrote:
>
> > > Error console says "plaats" is not defined.
> > > Is this the same issue as with the "map" (local instead of global).
> > > I allready have a php script"evenementen2.php" that wil process
> > > "plaats"
>
> > plaats is a Javascript variable in the client browser. Just because
> > your php script also calls the value passed to it "plaats" doesn't
> > make it the same thing. I'm sure you can work out whether your
> > Javascript variable needs to be global (if only by trying it and
> > seeing what happens).
>
> > > Second problem is, there out to be about 220 markers via camping.php .
> > > It works onhttp://www.zeelandwijzer.nl/camping.html.
> > > Are there known issues between Clusterer2.js and extInfoWindow?
> > > Because i only see 1 marker, andhttp://zeelandwijzer.nl/ajaxtest.html
> > > is a copy of
> > > http://www.zeelandwijzer.nl/camping.htmlwiththeonly diference
> > > being extinfowindow.js.
>
> > These two lines (68-69):
> > var marker = createMarker(point, Naam, Adres, Postcode, Plaats,
> > Telefoon, Webpagina);
> > clusterer.AddMarker(marker, Naam);
>
> > are an issue. Firefox runs the createMarker function which immediately
> > follows them -- do you have another one somewhere? Every function
> > needs to have a unique name. The function it runs doesn't return
> > anything, so "marker" in line 69 is null. That causes the clusterer to
> > crash.
>
> > Andrew
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---