I have a database results page which loads markers into a map.
I have had to add a settimeout to prevent the markers trying to load
before the map has loaded. On slow browsers this can be a long time.

Is there any way I can get my markers to wait until the map has loaded
without using settimeout?

Following posting guidelines for this I'm afraid this is a bit
awkward.
My problem page is a results page from a search so first you have to
search to get to the results page.(my settimeout at the moment is
50000 so the markers don't load for ages).

Use this as the search page:
http://www.roomtobreathesl.com/propdetails6zzzmaptest.asp?yscon=Corralejo&type=Holiday&ysbed=%25&Submit=Search&ID=325
and search in the navbar for eg Corralejo and Holidays
you should end up here:
http://www.roomtobreathesl.com/roomasp3map.asp

The markers are created as the page loads a repeat area:

var thingy<%=(rsResults.Fields.Item("ID").Value)%> = '<p><strong><%=
(rsResults.Fields.Item("name").Value)%></strong></p><img src="<%=
(rsResults.Fields.Item("mainpic").Value)%>" alt=" " name="main"
width="125" height="100" border="0" align="left" /><p><a href="#a<%=
(rsResults.Fields.Item("ID").Value)%>"> &nbsp;Click for
&nbsp;summary<br /> &nbsp;(This Page)</a></p> <p><a
href="propdetails6zzz.asp?<%= Server.HTMLEncode(MM_keepBoth) &
MM_joinChar(MM_keepBoth) & "ID=" & rsResults.Fields.Item("ID").Value
%>" > &nbsp;Click for Full &nbsp;Details<br /> &nbsp;(New Page)</a></
p>'
setTimeout("Func1(<%=(rsResults.Fields.Item("Latitude").Value)%>,<%=
(rsResults.Fields.Item("Longitude").Value)%>,thingy<%=
(rsResults.Fields.Item("ID").Value)%>)", 50000);

This references the function:
function Func1(one,two,three,flop)
{

  var point = new GLatLng(one,two);

      var marker = createMarker(point,three,flop)
      map.addOverlay(marker);
}

I'm limited in my db knowledge so I've probably gone about this the
wrong way - any help will be much appreciated.

Regards
--~--~---------~--~----~------------~-------~--~----~
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