[Google Maps API v3] Re: Can I trigger a function AFTER a setMap(map) has fully loaded?

2011-03-05 Thread chat2joe
I got it working! It works with the listener right after the setMap(). so on the initialization function i put... setInterval ( "refreshmap()", 7000 ); Then I toggle between the two files in the refresh function; var toggle = 1; function refreshmap() { if (toggle == 1) {

[Google Maps API v3] Re: Can I trigger a function AFTER a setMap(map) has fully loaded?

2011-03-05 Thread chat2joe
I've tried listened for changed zooms and changed defaultviewports... they work, but on the final map I want to preserve the viewport. Tried that and the preserved viewport prevents the listener from firing. Thanks for the reply Rossko, I've tried using that but can't seem to get it to trigger. S

[Google Maps API v3] Can I trigger a function AFTER a setMap(map) has fully loaded?

2011-03-05 Thread chat2joe
Hi, I want to reload a kml file every few seconds with the latest generated version, this is working fine using setInterval to call the function below. The function is removing the previous kml then loading it again, the refresh variable is just to force the page to download the file again... fun

[Google Maps API v3] Can I trigger a function AFTER a setMap(map) has fully loaded?

2011-03-05 Thread chat2joe
Hi, I want to reload a kml file every few seconds with the latest generated version, this is working fine using setInterval to call the function below. The function is removing the previous kml then loading it again, the refresh variable is just to force the page to download the file again... fun

[Google Maps API v3] Re: Anyone got a KML Network Link to refresh on Google Maps?

2011-02-10 Thread chat2joe
I want to refresh on the map every 10seconds, without refreshing the whole map. Thanks! Joe On Feb 10, 8:07 am, Chris Broadfoot wrote: > On Thu, Feb 10, 2011 at 8:59 AM, chat2joe wrote: > >                onInterval > > We don't support many KML features - refresh

[Google Maps API v3] Re: Anyone got a KML Network Link to refresh on Google Maps?

2011-02-09 Thread chat2joe
On Feb 9, 9:58 pm, chat2joe wrote: > Hi guys, > > Thanks for the replies. > > Firstly appologies for the example above, was tired pasting that in > and it's an example without the refresh tags I was having trouble > with. > > I've used the code from your ex

[Google Maps API v3] Re: Anyone got a KML Network Link to refresh on Google Maps?

2011-02-09 Thread chat2joe
Hi guys, Thanks for the replies. Firstly appologies for the example above, was tired pasting that in and it's an example without the refresh tags I was having trouble with. I've used the code from your example and put together this file; http://earth.google.com/kml/2.2";> Refresh KML

[Google Maps API v3] Re: how to use google api in php pages?

2011-02-09 Thread chat2joe
No expert here but the script must appear client-side and not be processed on the server side... so "echo" out the javascript from the php. I've using this on a current project, the php is changing variables and feeding these into the echo calls for creating the javascript. Joe On Feb 9, 12:19 

[Google Maps API v3] Anyone got a KML Network Link to refresh on Google Maps?

2011-02-09 Thread chat2joe
Hi all, I'm trying to get a set of markers in a kml file to update every few seconds. From what I understand I should be able to import a kml which contains a network link to another kml with the markers. The network link will have an interval refresh. I've tried any example I can find but it sim

[Google Maps API v3] Snap a polyline to the street? Bus Route

2011-01-27 Thread chat2joe
Hey guys, I've seen an example over here which follows the street layout between two points: http://econym.org.uk/gmap/snap.htm Is there a way to do this with a pre-saved route rather than clicking? I want to input bus routes on a map. 7 or 8 markers along the route is enough to show the route ac