Hi I did this tutorial http://drupal.org/node/627816

First, I cant enable the cck part as it needs "content" but content is missing in D7. Installing cck 7 does not help. But I am able to create a longitude and latitude numeric fields.
Step 1 and 2 goes well.
In step 3 "make a map preset" when saving the map preset I get.

Notice: Undefined index: wkt in openlayers_views_style_data->reduce_features() (line 314 of www\drupal-7.x-dev\sites\all\modules\openlayers\modules\openlayers_views\views\openlayers_views_style_data.inc).

Then I create a view to show the map and on the map path I get this error.

Notice: Undefined index: wkt in openlayers_views_style_data->reduce_features() (line 314 of www\drupal-7.x-dev\sites\all\modules\openlayers\modules\openlayers_views\views\openlayers_views_style_data.inc).

This is on line 214 'wkt' => $feature['wkt'],

I have even made the grouping to Just 1 base layer but no success.

My Nodes is also not showing on the map, but the do show in the default view request, so they are there.

O

Comments

tmcw’s picture

Category: bug » support

As noted in the Drupal 7 port thread and the release notes, OpenLayers CCK is not and will not be ported to Drupal 7, because it no longer meshes with the fields architecture, and shouldn't be in the scope of this module. You can try the geofield module or bare lat/lon fields in the meantime.

b0r7’s picture

I can confirm the bug. I am having the exact same error on a clean d7 install.

i'm not sure where to start debugging.

I tried using bare "float" fields and i tried using "text" fields for storing the geodata but i think this isn't the issue. I am not sure what else to try?

thank you

cnolle’s picture

I am not sure how helpful this is, but I am experiencing the same issue. One notice per node that's suppose to appear on the map:

Notice: Undefined index: wkt in openlayers_views_style_data->reduce_features() (line 314 of /dev/map/sites/all/modules/openlayers/modules/openlayers_views/views/openlayers_views_style_data.inc).
Notice: Undefined index: wkt in openlayers_views_style_data->reduce_features() (line 314 of /dev/map/sites/all/modules/openlayers/modules/openlayers_views/views/openlayers_views_style_data.inc).

and so forth ...

joates’s picture

also getting this 'notice' and no maps displayed :(

this is the first time that i have used this OpenLayers module and therefore i cannot be certain that i have configured everything correctly but i am using fresh D7 install and i am very experienced with views and have tried following this: Getting Started with OpenLayers, i am using a single GeoLocation entity field added to the User object to capture the lat/long pairs needed for mapping (user locations).

joates’s picture

Status: Active » Closed (fixed)
Issue tags: +openlayers, +wkt warning notice

fixed in the latest dev release

so if you are getting these warning notices, upgrade module to latest dev..

7.x-2.x-dev 2011-Mar-01
tar.gz (85.25 KB) | zip (144.23 KB)

..closing -> fixed

Countzero’s picture

I can confirm the bug is solved in latest dev. Thanks.