Not sure where this error lies.
I have a map with a kml layer, if I user the recommended Openlayers version 2.11 the kml markers are not displayed initially, a JavaScript error is thrown.
mapProjection is null http://path_to_library/OpenLayers.js?lwx9io Line 1570
The kml is requested first time around but nothing gets displayed. If I zoom the map to cause the kml to be re-fetched then the markers are displayed as expected.
It makes no difference whether I host the Openlayers library locally or fetch it remotely.
I can switch to 2.10 and there is no error, but not sure if that is causing some other issues.
Comment | File | Size | Author |
---|---|---|---|
#2 | fond.kml_.txt | 10.18 KB | nico_ekito |
Comments
Comment #1
zzolo CreditAttribution: zzolo commentedWhat is the URL of your KML file, or can you attach it here? Have you tried the Dev version of 7.x-2.x?
Comment #2
nico_ekito CreditAttribution: nico_ekito commentedSame issue here.
I attached a faulty KML file.
Comment #3
Anonymous (not verified) CreditAttribution: Anonymous commentedAs mentioned in #1817400: Add baselayers first, this is to do with a change in the implementation of the Fixed strategy when merging features into a layer. The map projection is required, but doesn't exist at the point of adding some layers.
The fix in that issue seems to also resolve this issue.
Comment #4
Anonymous (not verified) CreditAttribution: Anonymous commentedComment #5
PolThis should be fixed now, see #1817400: Add baselayers first.