Closed (fixed)
Project:
Openlayers
Version:
7.x-3.x-dev
Component:
OL API
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
1 Apr 2013 at 02:05 UTC
Updated:
18 Apr 2013 at 01:50 UTC
When trying to render any map with the current 3.x branch in chrome (maybe others), I get the following error.
TypeError: Cannot read property 'wrapDateLine' of null.
It's happening in the module's openlayers.js file, but error reporting is only pointing me to the console logger lines, not the actual source.
Comments
Comment #1
polHello,
Mmh weird, on which map ?
Thanks
Comment #2
Brandonian commentedAll of the example maps, along with a custom one built from the UI don't render. I did a clean install, and I'm still seeing the same issue.
My stack is pretty basic at this point. Drupal 7.21, latest Openlayers 7.x-3.x branch, current versions of ctools (7.x-1.2), Libraries API (7.x-2.1) and proj4js (7.x-1.2). PHP 5.3.22.
Update: Firefox/Firebug has better debug info. TypeError: this.baseLayer is null. In every case, I do have at least one layer selected, and one layer is set as default. Running the unit tests bundled with Openlayers currently has 91 fails, mostly in the "Openlayers Layers" section. I suspect the error can be traced there.
Comment #3
polHello,
I just tried to reproduce the bug, I cannot reproduce it.
Here's an export of a simple map I just did:
Could you post the export of yours ?
Thanks !
Comment #4
Brandonian commentedSure! Also, your test map still fails on my local.
One place where our environments might be different, are you using a local version of the OL library, or a hosted version? I'm currently using the hosted version, since I did a clean reinstall.
Comment #5
polLocal version also...strange.
I'm not home right now so i can't help you more... Sorry.
I'll be home in 3 hours, i'll look further.
Comment #6
polHello Brandonian,
I just tested on Simplytest.me and it works pretty good.
Can you test also ?
Comment #7
Brandonian commentedI completely reset my local install, and I can't reproduce. If I had to guess, the problem was probably introduced with the code I added for #1957630: Transfer Geofield integration code into Openlayers submodule.
Kids, don't rage-quit and submit tickets. :-/ Marking as fixed.