My favorites | Sign in
Project Home Wiki Issues Source
New issue   Search
  Advanced search   Search tips   Subscriptions
Issue 1364: Feature Request; v3 version of GDownloadUrl
30 people starred this issue and may be notified of changes. Back to list
Status:  WontFix
Closed:  Nov 2010

Sign in to add a comment
Reported by, Jun 4, 2009
I don't see a Maps API v3 equivalent of GDownloadUrl(). I would love to see
one, as I populate my maps via calls to JSON files that contain all my
marker information.

I want to keep using API v3 because I have seen spectacular speed
increases. Please expand the API! :)

Thanks in advance.
Jun 5, 2009
Hi Robert-

If we do add this, it will probably be in an open source library extension. Most 
developers use Javascript libraries for XMLHttpRequest and would not that functionality 
in the core library. You can use this JS in the meantime, as it's based on the 
GDownloadUrl code:
Status: Acknowledged
Labels: Internal-1901540
Jun 10, 2009
I normally use the jQuery AJAX functions, but I have run into issues using Google
Maps API v.3 and jQuery together:

Thanks for the comments,
- Rob
Jun 21, 2009
 Issue 1405  has been merged into this issue.
Jul 2, 2009
Hi Pamela, 

Would this apply as a rule of thumb (potential support via open source lib 
extension) for all the APIs available in version 2 that are not necesarily "Map" 
specific?  For example GXslt or GXml..

Jul 5, 2009
Hi Joe - Yes, most likely.
Jul 10, 2009
Pretty useful function to get map data. Otherwise I have to use JQuery's 
Jul 11, 2009
Hi all-

I've posted two examples of how to do XML parsing. One uses a function that's basically 
a copy/paste of the GDownloadUrl function from v2, but open sourced.

The other uses the AJAX Common Loader and the jQuery get() function:
Dec 14, 2009
Hello Pamela (or anyone), dont know if this issue is still alive, but I wonder if 
there is any way to do this so that XML parsing is dynamic - i.e. if you click 
refresh then the xml file is parsed again and any new data is read. 

As this works at the moment, once the page is first loaded and the xml file parsed - 
e.g. with three marker tags - if then the xml file gets a 4th marker added to the 
file the only way (that I can see) to get the forth marker on the map is to close the 
page and load the page again. A page refresh does not reread the xml file or at least 
not the updated one. Any ideas how to do this?
Dec 14, 2009
Hi jphilbrow,

Look at the no-cache pragma meta-tag. If you set this correctly, a page refresh WILL
reread the XML file.
Dec 15, 2009
Thanks for your fast response! I will check this out.
Jan 6, 2010
We'll soon be porting this functionality over to the v3 utility library:
Jun 29, 2010
(No comment was entered for this change.)
Owner: thor.mitchell
Jul 1, 2010
(No comment was entered for this change.)
Jul 28, 2010
Hi all,
I've downloaded all the necessary files for the xml parsing (downloadurl.html, util.js and data.xml)from here but it doesn't work.
The 3 markers don't appear on the map.

Many thanks in advance for your help.
Oct 14, 2010
Yes, I encountered the same issue, I can't open the downloaded html successfully in IE
Nov 10, 2010
Project Member #17
There are many ajax javascript libraries that can do this for you so we do not intend to add this to the API.

Google hosts quite a few of these libraries and you can get a list of them here:
Status: WontFix
Nov 10, 2010
Aha. Further to my last comment, I see that this functionality is going to be ported to the google-maps-utility-library-v3. I just checked it and didn't see anything. I guess I will watch that code-base. Thanks.
Nov 16, 2010
@ barangolasok and bonnie.lfj (Comments 15 and 16). I got the same result as you (XML points didn't appear) when working on files downloaded to a local folder. However, when I tried it on a live server, it worked. 
May 17, 2011
Project Member #21
BTW - we won't be porting this to the utility library.

One tiny library I've made great use of is microAjax:
May 17, 2011
#22 chaoley
Nice function :)

So a find (GDownloadUrl) and replace (microAjax) should do the trick?
May 24, 2011
Project Member #23
Yeah, from my understanding, that *should* work!
Sign in to add a comment

Powered by Google Project Hosting