[Google Maps API v3] Re: Having troubles with path

2011-03-07 Thread Rick Donohoe
Thankyou, thats all sorted! Another issue I've had is when I first started developing this I put the map div inside a table as that was the only way it worked. I've now removed it from the table, added the 'function detectBrowser() {' property inside initialize, and within my style sheet I have

[Google Maps API v3] Re: Having troubles with path

2011-03-05 Thread Rossko
> Did you manage to see anything? I see the javascript error, don't you? It would pay to find out how to use the basic tools your browser provides, while you are developing. I get "pathArray[i].setMap is not a function" in pathArray[i].setMap(null); You have made pathArray[] as

[Google Maps API v3] Re: Having troubles with path

2011-03-05 Thread Rick Donohoe
Did you manage to see anything? Rick -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group. To post to this group, send email to google-maps-js-api-v3@googlegroups.com. To unsubscribe from this group, send email to google-maps-js-api

[Google Maps API v3] Re: Having troubles with path

2011-03-04 Thread Rick Donohoe
Oh apologies!! Try it now... Rick -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group. To post to this group, send email to google-maps-js-api-v3@googlegroups.com. To unsubscribe from this group, send email to google-maps-js-api-v3

[Google Maps API v3] Re: Having troubles with path

2011-03-04 Thread Rossko
No idea what you've done now, can't view source in the browser here, but this might help with the previous problem http://www.google.com/search?q=javascript+iterate+sparse+array -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group. To

[Google Maps API v3] Re: Having troubles with path

2011-03-04 Thread Rick Donohoe
Ok so i assume you have seen the behaviour when it is commented out, Ive uncommented it and now nothing is shown at all on the map. You may notice Ive still comented out where I add to the array at numbers 16, 32, 33, 34 as that was still causing an issue. Annoyingly... When this is finalised I

[Google Maps API v3] Re: Having troubles with path

2011-03-04 Thread Rossko
> Any other suggestions? Show us an example with the behaviour you describe ; the removal code you are on about is currently commented out at http://www.my-walk.com/index.php You might like to think about the consequences of using what we could call sparse arrays, where only some indexes are popu

[Google Maps API v3] Re: Having troubles with path

2011-03-04 Thread Rick Donohoe
I want to keep all the lines saved in pathArray, so I don't want to clear it at any time. I just want to distinguish between when to show the poly lines within pathArray, and when not to (conditional to their bounds). Does that make sense Rossko? I figured this method would cycle through and

[Google Maps API v3] Re: Having troubles with path

2011-03-04 Thread Rossko
> for (i=0; i     { >         pathArray[i].setMap(null);                             >     } That should work. Don't forget that you need to clear pathArray[] afterwards, else you will add all the old lines back on to the map again when you add the new ones. -- You received this message because

[Google Maps API v3] Re: Having troubles with path

2011-03-03 Thread Rick Donohoe
Yeah, just changed it to this and it worked: var coordinates = ""; :D The issue I have now is that if the user moves the map (Google Maps 'idle' event), the code will draw any routes of which have a center within the current bounds. The issue here is if I move the tiniest bit, the routes are

[Google Maps API v3] Re: Having troubles with path

2011-03-02 Thread Rossko
I've tried to look at www.my-walk.com/index.php yesterday and today, it seems to go into an endless loop on my browsers. > Ive put an alert inside the for loop in the code above, and it is not > showing. The path error must be because the path only contaisn one > latlng value. Last that I could l

[Google Maps API v3] Re: Having troubles with path

2011-03-01 Thread Rick Donohoe
Good to hear that wont be an issue. Ive put an alert inside the for loop in the code above, and it is not showing. The path error must be because the path only contaisn one latlng value. Why isn't it getting inside?? For my addRoutes method (Once map is idle), ive put an alert before the poly.s

[Google Maps API v3] Re: Having troubles with path

2011-03-01 Thread Rossko
> Why does that link go to google 404?? It's just the group interface ; it works better with the http prefix. > At the moment im just pushing them on, but I want to store them by > route['id']. So far there is only 3 routes with ids like 29, 32, 36, > as these are auto increment ones. This means

[Google Maps API v3] Re: Having troubles with path

2011-03-01 Thread Rick Donohoe
Why does that link go to google 404?? www.my-walk.com/index.php That should hopefuly be better. With Larrys help a few days ago I got the paths fine. Below it is created with path.push(latlng); var coordinates = '.$row["coordinates"].' coordinates = coordinates

[Google Maps API v3] Re: Having troubles with path

2011-02-28 Thread geocode...@gmail.com
On Feb 28, 4:32 pm, Rossko wrote: > > Map:www.my-walk.com/index.php > > Doesn't seem to be any path data in that page > > > Inside the addRoute method I would like some code that says if the > > path is within the bounds of the map, draw its polyline and add it to > > the map. > > See the > refer

[Google Maps API v3] Re: Having troubles with path

2011-02-28 Thread Rossko
> Map:www.my-walk.com/index.php Doesn't seem to be any path data in that page > Inside the addRoute method I would like some code that says if the > path is within the bounds of the map, draw its polyline and add it to > the map. See the reference http://code.google.com/apis/maps/documentation/j