Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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 CreditAttribution: 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 CreditAttribution: 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 CreditAttribution: 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.