Reading kml from "my places" at maps.google.com

711 views
Skip to first unread message

Bob Torzynski

unread,
Aug 28, 2012, 9:56:56 PM8/28/12
to google-map...@googlegroups.com
Greetings,
 
Until recently (the last few days), I have been able to read from "my places" at maps.google.com using this format:
 
rtEditLayer_url = "http://maps.google.com/maps/ms?msid=212925685488873680953.0004b6f5861b51720b824&msa=0&z=17&ie=UTF8&output=nl";
rtEditLayer = new google.maps.KmlLayer(rtEditLayer_url, {preserveViewport: true});
rtEditLayer.setMap(map);
 
This was useful because the map at maps.google.com was set to allow anyone to edit it and could then be shown along with Fusion Table Layers, etc., at http://bike.zgroks.com/index.html.  When the map was updated at maps.google.com it would show up at the bike site (from a few minutes to an hour later which was ok). But it has stopped working.
 
Does anyone have any suggestions on how to do this? (Read a kml layer from maps.google.com). I know that I can export the kml but this removes it from maps.google.com and makes it difficult to edit on the fly.
 
I've tried the suggestion to change the output to "kml" instead of "nl" but this doesn't work.
 
Any tips would be much appreciated.
 
Bob

Joseph Elfelt

unread,
Aug 28, 2012, 10:57:40 PM8/28/12
to google-map...@googlegroups.com
Bob,

Thanks for posting.  

I have produced software (http://www.mappingsupport.com/p/gmap4.html) that also displays "My Places" files.
Several of my users have reported the same problem that you describe.

kmlLayer status returns FETCH_ERROR.

I have posted on stackoverflow:

and filed a bug report (which you can 'star'):

Curiously, my Gmap4 software begins by running code on my server which can read the MyPlaces KML file just fine and extract any <title>.  Since my PHP code can read the file it is odd that Google's API code is having problems.

Joseph

Barry Hunter

unread,
Aug 29, 2012, 9:57:44 AM8/29/12
to google-map...@googlegroups.com
The is currently an ongoing issue with Google Maps at the moment. Google are aware and investigating. 

For the moment suggest


or can try


It depends on what data center your query happens to hit. so need to arrange for the query to hit a currently unaffected location. 


(also changed the links to KML rather than NetworkLinks. going via a NL is not needed, and just (marginly!) slows down your map) 


(It only affects when Maps tries to load KML from its own servers, which is why Josephs  Gmap4's server can read the file) 


 
Bob

--
You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-maps-js-api-v3/-/5svbYzgKWcMJ.
To post to this group, send email to google-map...@googlegroups.com.
To unsubscribe from this group, send email to google-maps-js-a...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.

Barry Hunter

unread,
Aug 29, 2012, 10:02:57 AM8/29/12
to google-map...@googlegroups.com
Sorry the URL appears broken in the group. Try this:

rtEditLayer_url =
"http://173.194.34.96/maps/ms?msid=212925685488873680953.0004b6f5861b51720b824&msa=0&output=kml"

Joseph Elfelt

unread,
Aug 29, 2012, 10:16:05 AM8/29/12
to google-map...@googlegroups.com
Barry,

Do you have any insight whether we should be using https (instead of http) to read the MyPLaces KML file?
I have tried doing so but that seems to make things worse.

Also, can you point me  to a thread in the Google Maps community with chatter about this?  I took a look there but nothing jumped out.

Barry Hunter

unread,
Aug 29, 2012, 10:51:25 AM8/29/12
to google-map...@googlegroups.com
On Wed, Aug 29, 2012 at 3:16 PM, Joseph Elfelt <joseph...@gmail.com> wrote:
>> Barry,
>
>
> Do you have any insight whether we should be using https (instead of http)
> to read the MyPLaces KML file?
> I have tried doing so but that seems to make things worse.

In theory it shouldnt make a difference, can be used interchangably.
In general not much point in https, because the content of the map is
publically visible anyway.

In the context of this issue, it doesnt seem to matter, it affects
both http and https.

>
> Also, can you point me to a thread in the Google Maps community with
> chatter about this? I took a look there but nothing jumped out.

Well the first thread to note this is here:
https://productforums.google.com/d/topic/maps/so_pZCg4b34/discussion
And a fresh report today as the problem has resurfaced a few times.
https://productforums.google.com/d/topic/maps/70uooPrHkxs/discussion

but have been in contact privately with Google about it.

>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Maps JavaScript API v3" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-maps-js-api-v3/-/nqlZQ0RKvukJ.
Reply all
Reply to author
Forward
0 new messages