I got this error:

Notice: Undefined index: raw in leaflet_views_plugin_style->render() (line 207 of leaflet_views_plugin_style.inc).

Couldn't find it elsewhere so wanted to post this here.

Comments

mgifford’s picture

I think I'm getting this information as I'm using WKT rather than raw. I tried to add this, but it didn't work:

          $raw_data = array();
          foreach ($geofield as $item) {
            $raw_data[] = (isset($item['raw'])) ? $item['raw'] : $item['rendered'];
          }

I'm working with geocoder tossing discovered coordinates into a field. It's one that is recognized by Leaflet as a data source "Which field contains geodata" though.

Also, the helper text probably shouldn't have a question like "Which field contains geodata?" but rather a comment like "Choose the field which will appear as a title on tooltips." to be consistent.

joelrosen’s picture

I got this same error. I had installed Leaflet, then disabled it and played around with OpenLayers for a bit, then decided to switch back to Leaflet. The error appeared after I tried to re-enable Leaflet and recreate my Leaflet Map views. I ended up starting over with a fresh install and the errors went away.

rdeboer’s picture

Status: Active » Closed (fixed)