the problem is my site white screens when i select the openlayers input widget on a geofield. the site also white screens when i try to add new content with this configuration. if i set the widget to lat/long i can enter data on the form but the node view displays a map and no location graphic.

i've also raised this issue in the openlayers issue queue: https://www.drupal.org/node/2673220

CommentFileSizeAuthor
#4 2673268-Cleaning-Openlayer-Code.patch13.14 KBjmary

Comments

laurencefass created an issue. See original summary.

row015’s picture

Same problem. Probably you can see PHP errors in your web server logs.
Also the problem exists when I select "geocode from another field" widget from geocoder module.

geek-merlin’s picture

I get this on a node view:
PHP Fatal error: Call to undefined function openlayers_preset_load() in /var/www/virtual/clsysdev/html/live/docroot/sites/all/modules/geofield/geofield.formatters.inc on line 405

jmary’s picture

StatusFileSize
new13.14 KB

Actually, the integration between geofield and openlayers is now doen in a submodule of openlayers.

Until now, the code in geofield was not cleaned up leading to confusion.

You can use openlayers 3.x but apply the provided patch here to geofield 2.3 and enable the module openlayers_geofield.

Don't forget to clear the cache and eventually a registry rebuild. Then you can go to edit your display again or whatever.

socialnicheguru’s picture

Status: Active » Needs review
biarr’s picture

This cleaning is working for me. Thanks. +1 for RTBC