Active
Project:
GMap Addons
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
22 Dec 2011 at 01:02 UTC
Updated:
11 May 2016 at 12:04 UTC
Jump to comment: Most recent
GMap version: 7.x-1.x-dev
GMap addons version: 7.x-1.x-dev
Drupal core 7.9
1. I have viewed the kml file in Google Earth.
2. I have no issues with GMap macros (user since Drupal 6).
My kml does not display. There are no error messages. I just get the base map driven by the macro without the overlay. I followed the syntax in the subcomponent README and here as well: How to insert overlays into Nodes and Views
Could I get confirmation that the above combination should work for displaying kml overlays? How about tiles? Thank you.
Comments
Comment #1
torgormack commentedI have just move my site from D6 to D7 and I am getting the same problem.
Comment #2
kniekel commentedIt used to work for me with gmap 7.x.something-dev from April 2012. Stopped working when I switched to gmap 7.x.2.2. and it seems that the old Gmap version is no longer available, so I can't switch back. :-/
Now, when I use overlay=kml:, the map displays without any markers.
Comment #3
kniekel commentedThe 1.x versions of Gmap work for me, eg http://drupal.org/node/1831410#comment-6693082
See an example at http://test.schweinfurt-evangelisch.de/karte
The gmap macro for this map is [gmap height=800px||overlay=kml:http://test.schweinfurt-evangelisch.de/alle27b.kml]
Comment #4
sirtettook me forever to find this post!
after downgrading gmap to
7.x-1.x-dev - 2013-Mar-01i see my kml files!(gmap_addons
7.x-1.x-dev - 2011-Mar-30)Comment #5
sirtetComment #6
swiftarf commentedI'm having the same problem as Kniekel with GMap 7.x-2.6
It was working ok with previous version of GMap, but an upgrade to 7.x-2.6 broke it.
Comment #7
kniekel commentedAnybody still working on this module?
Here ist the javascript error I get with KML overlay activated:
[12:38:32.367] ReferenceError: GGeoXml is not defined @ https://www.schweinfurt-evangelisch.de/sites/all/modules/gmap_addons/gma...
(This was with GMap 7.x.2.6 I think)
There is some more discussion about this in https://drupal.org/node/1831410
Still no KML overlay possible with Gmap 2.7.
Comment #8
ErikJanVens commentedSame here. On http://ejvens.net/trekvogelpad/alkmaar-purmerend the maps show but the KML doesn't.
The error message is: Timestamp: 06/25/2013 08:46:41 AM
Error: ReferenceError: GGeoXml is not defined
Source File: http://ejvens.net/sites/all/modules/gmap_addons/gmap_overlays/js/overlay...
Line: 15
Drupal version : 7.22
Location GMap (gmap) Module Enabled 7.x-2.7
Location GMap Overlays (gmap_overlays) Module Enabled 7.x-1.x -dev
Comment #9
detran commentedTested with newest version today. No luck!
Comment #10
greenskunkIf you are using the Google Maps API v3 & gmap_addons 6.x-1.x-dev then you'll want to update the file overlay_geoxml.js in gmap_addons/gmap_overlays/js/ as parts of the Google Maps API v2 have been deprecated. You'll want to use KmlLayer now instead of GGeoXML
Copy over line 15 with the following:
One small change and your KML maps should work again.
Patching & Testing
Testing and patching requested
Comment #11
farlap commentedHello, I applied the code changes (#10) to overlay_geoxml.js (gmap_addons) and it works!
If you still can't see your KML it might be due to the format of the KML file itself.
I had a look at some examples that work, eg:
http://www.ancientforestnationalpark.org/AncientForestParkGoogleEarth.kml
http://jmfriedt.free.fr/060416.kml
Comment #12
NAIZ commentedWhen the load KML layer, then to the Google map covers all of the objects on this site, and I need that in the initial field of vision was a station where there is a marker. Those. I do not know how to do Zoom is a marker rather than objects.
How to make what would be the opening of the default map was on the marker, not the entire map?
help me please