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
Comment #1
tmcw commentedWhat's the default base layer of the custom preset?
Comment #2
tmcw commentedComment #3
geraldito commenteddefault base layer of the custom preset is osm_mapnik.
Comment #4
zzolo commentedSo, this is a straight clone of the default preset? You sure you did not change anything?
Comment #5
tnfno commentedsubscribe, got the same error. Believe it came after one of the latest updates.
Comment #6
cajmcmahon commentedI'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
Comment #7
tmcw commentedcajmcmahon: 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.
Comment #8
cajmcmahon commentedThanks 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...
Comment #9
tmcw commentedIt's not a Drupal template, it's a template string, like
http://www.url.com/${x}/{$y}/{$z}.png.Comment #10
cajmcmahon commentedThanks. I thought I had it but am still a bit stuck. Opening a new ticket here: http://drupal.org/node/926326
Comment #11
tmcw commentedClosing; need more information if this bug is to be debugged, and the thread's a little derailed.
Comment #12
Marko B commentedi had this max extent error when in layers section i had no "Base layers" selected, when i selected on, it was gone.