My favorites | Sign in
Project Home Wiki Issues Source
New issue   Search
for
  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
Owner:  t...@google.com
Closed:  Nov 2010


Sign in to add a comment
 
Reported by robertln...@gmail.com, 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
#1 pamela.fox
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:
http://photomunchers.appspot.com/js/util.js
Status: Acknowledged
Labels: Internal-1901540
Jun 10, 2009
#2 robertln...@gmail.com
I normally use the jQuery AJAX functions, but I have run into issues using Google
Maps API v.3 and jQuery together:
http://groups.google.com/group/google-maps-js-api-v3/browse_thread/thread/317c5440b1c1e91a

Thanks for the comments,
- Rob
Jun 21, 2009
#3 pamela.fox
 Issue 1405  has been merged into this issue.
Jul 2, 2009
#4 joeyjmor...@hotmail.com
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..

Thanks 
-Joe
Jul 5, 2009
#5 pamela.fox
Hi Joe - Yes, most likely.
Jul 10, 2009
#6 BVikhans...@gmail.com
Pretty useful function to get map data. Otherwise I have to use JQuery's 
functionality
Jul 11, 2009
#7 pamela.fox
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.
http://gmaps-samples-v3.googlecode.com/svn/trunk/xmlparsing/downloadurl.html

The other uses the AJAX Common Loader and the jQuery get() function:
http://gmaps-samples-v3.googlecode.com/svn/trunk/xmlparsing/jqueryget.html
Dec 14, 2009
#8 jphilb...@gmail.com
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
#9 robertln...@gmail.com
Hi jphilbrow,

Look at the no-cache pragma meta-tag. If you set this correctly, a page refresh WILL
reread the XML file.

http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.9.1
Dec 15, 2009
#10 jphilb...@gmail.com
Thanks for your fast response! I will check this out.
Jan 6, 2010
#11 daniel...@google.com
We'll soon be porting this functionality over to the v3 utility library:
https://code.google.com/p/google-maps-utility-library-v3/
Jun 29, 2010
#12 thor.mit...@gmail.com
(No comment was entered for this change.)
Owner: thor.mitchell
Jul 1, 2010
#13 thor.mit...@gmail.com
(No comment was entered for this change.)
Owner: t...@google.com
Jul 28, 2010
#15 barangol...@gmail.com
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.
http://gmaps-samples-v3.googlecode.com/svn/trunk/xmlparsing/downloadurl.html
The 3 markers don't appear on the map.

Many thanks in advance for your help.
Oct 14, 2010
#16 bonnie....@gmail.com
Yes, I encountered the same issue, I can't open the downloaded html successfully in IE
Nov 10, 2010
Project Member #17 lu...@google.com
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: https://code.google.com/apis/libraries/devguide.html#Libraries
Status: WontFix
Nov 10, 2010
#19 robertln...@gmail.com
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
#20 JohnP...@gmail.com
@ 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 cbro@google.com
BTW - we won't be porting this to the utility library.

One tiny library I've made great use of is microAjax:
https://code.google.com/p/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 cbro@google.com
Yeah, from my understanding, that *should* work!
Sign in to add a comment

Powered by Google Project Hosting