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.

CommentFileSizeAuthor
#2 fond.kml_.txt10.18 KBnico_ekito
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

zzolo’s picture

Version: 7.x-2.0-beta1 » 7.x-2.x-dev
Category: bug » support
Status: Active » Postponed (maintainer needs more info)

What is the URL of your KML file, or can you attach it here? Have you tried the Dev version of 7.x-2.x?

nico_ekito’s picture

FileSize
10.18 KB

Same issue here.

I attached a faulty KML file.

Anonymous’s picture

Status: Postponed (maintainer needs more info) » Active

As 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.

Anonymous’s picture

Category: support » bug
Pol’s picture

Status: Active » Fixed

This should be fixed now, see #1817400: Add baselayers first.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.