I've added a KML layer using the interface. However, when I go to my preset and to the 'Layer & Style' tab, the newly created KML layer doesn't show up (while other non-KML layers like a Mapbox layer, does).

Any idea why not? I've tested various KML layers but no success. I'm using the latest dev snapshot of the module.

Comments

tmcw’s picture

Bizarrely, I can confirm this behavior, and it's really bizarre. I'll check this out today.

tmcw’s picture

Status: Active » Fixed

I've fixed this - turns out that the problem cropped up when I restricted the projections on which KML layers were shown. Update to the newer dev and resave the layer, and it'll work. There's a better solution for this, so I'll create a task ticket for that.

tmcw’s picture

pvhee’s picture

Thanks, this indeed solved the problem.

One more question about KML integration: while my KML while was correctly loaded on top of the map, the name/description tags of the Placemark were all ignored and the icons itself were not clickable. Is it correct that loading the KML does not do anything else than placing the Points but doesn't have support for eg popup windows etc?

tmcw’s picture

Category: bug » support
Status: Fixed » Active

Support for popup windows and tooltips is contained in those behaviors, rather than in the KML layer type, since other layers support those behaviors as well. Try enabling popup windows - depending on the specific KML file, the popup may contain exactly what you want. Otherwise, you can check out how the popup behavior works (includes/behaviors/js/openlayers_behavior_popup.js) - in that it lets you override the function that populates the popup box, allowing you to pull any attributes necessary into the popup.

tmcw’s picture

Title: KML Layer doesn't show up in Preset's 'Layer & Style' » Support for displaying complex information in popups
Status: Active » Fixed

Status: Fixed » Closed (fixed)

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

pvhee’s picture

Thanks, I've tried out several behaviors but none of them got actually triggered when clicking on the map icons (while they do get triggered on non-KML layers). I've figured out how to change / create new behaviors, but for some reason with the KML I don't succeed in this. Any help?