Adding a CCK field of type OpenLayers WKT to my custom content type doesn't show the map neither on "manage fields" page nor on "create content" page for that type. Firefox 3.6.8 shows error "Error during map rendering: TypeError: maxExtent is null" in the place where map should appear.

Using default Openlayers preset works fine as it has maxExtent set correctly but creating a new preset or cloning the default one doesn't have maxExtent value set. Where can I set maxExtent parameter manually?

Comments

tmcw’s picture

What's the default base layer of the custom preset?

tmcw’s picture

Status: Active » Postponed (maintainer needs more info)
geraldito’s picture

default base layer of the custom preset is osm_mapnik.

zzolo’s picture

Category: bug » support
Status: Postponed (maintainer needs more info) » Active

So, this is a straight clone of the default preset? You sure you did not change anything?

tnfno’s picture

subscribe, got the same error. Believe it came after one of the latest updates.

cajmcmahon’s picture

I'm getting the same thing - custom layer map doesn't display.

Did a straight clone of layer "OSM Mapnik (Default) - XYZ" (which still works with another map).

I don't know what to put in for the "Base URL (template)" field. Perhaps that's the issue. Any suggestions?

Thanks for any help.

Drupal 6.19
OpenLayers 6.x-2.0-alpha10

tmcw’s picture

cajmcmahon: that's probably a separate issue. You can put a template in the base URL field: like http://www.url.com/${x}/{$y}/{$z}.png. Of course, the server is something that you should know already, if you're cloning the layer to customize it. Otherwise, just use the OSM Mapnik layer if that's the desired layer.

cajmcmahon’s picture

Thanks for the assist. I've got the server details - just wasn't sure which template file to be targeting as I didn't see any ref in the original layer.

For the record the error msg I'm seeing in Firefox is: "Error during map rendering: TypeError: template is null"

I'll keep hunting...

tmcw’s picture

It's not a Drupal template, it's a template string, like http://www.url.com/${x}/{$y}/{$z}.png.

cajmcmahon’s picture

Thanks. I thought I had it but am still a bit stuck. Opening a new ticket here: http://drupal.org/node/926326

tmcw’s picture

Status: Active » Closed (works as designed)

Closing; need more information if this bug is to be debugged, and the thread's a little derailed.

Marko B’s picture

i had this max extent error when in layers section i had no "Base layers" selected, when i selected on, it was gone.