OpenLayers Geocoder tutorial
Last updated on
30 April 2025
You are browsing documentation for an older version of Drupal, which is not supported any longer, and the information may not be correct. See current documentation for Contributed modules
Tutorial goal
- Display both map and address using the OpenLayers Geocoder module
Requirements
- Geocoder module http://drupal.org/project/openlayers_geocoder
- Token module http://drupal.org/project/token
Steps
- Create a content type at admin/content/types/add
- Add the following Text field
Label:Address
Field name:geocoder_address

- Add the following OpenLayers Geocoder field
Label:Map
Field name:geocoder_map

- Configure the OpenLayers Geocoder field
Under the Autocompletion section
Check the Enable box next to the Address Field
Under Content, type in the following token:[formatted_address]

- That's it you're done. To test go to
/node/addto create a content.
Source: JoshuaBud at http://drupal.org/node/951378#comment-3739308
Help improve this page
Page status: Not set
You can:
You can:
- Log in, click Edit, and edit this page
- Log in, click Discuss, update the Page status value, and suggest an improvement
- Log in and create a Documentation issue with your suggestion