Closed (fixed)
Project:
Openlayers
Version:
6.x-2.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
19 May 2011 at 18:21 UTC
Updated:
13 Jul 2012 at 15:22 UTC
I have followed this tutorial exactly http://drupal.org/node/1002852 to create a node type with geocoding. I have a default install of openlayers, openlayers_geocoder. Geocoding appears to be working when editing/saving the node, however the marker (or polygons) do not appear on the node's map.
Comments
Comment #1
zzolo commentedHi @nigel.waters. Can you describe more of what you are doing? There's not really enough information to help out with.
Comment #2
pixelsweatshop commentedSorry. I should have been more descriptive.
I have installed both the Geocoder and openlayers modules as per the installation instructions. I have not touched any of the settings, so everything is defaulted to out of the box.
1. Created a content type called Location
2. Added Text field
Label: Address
Field name: geocoder_address
2. Added 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]
When creating a node, I can use the field above the map to search for an address (works fine). Shows marker on map, then it automatically replicates the searched address into the "address" text field (as described above). After I click save, it displays the address and the map, but doesn't show the markers.
I am hoping that there is a general setting that I missed after installing the two modules (as I have kept them defaulted), but I have searched all over and do not see anything that would indicate this.
Your help is greatly appreciated. Thanks for your time in advance.
Comment #3
zzolo commentedHi @nigel.waters. This issue is probably more for the OpenLayers Geocoder module. Or at least that is the first place to look. I have updated the project for this issue.
Comment #4
steinmb commentedThis issue is getting old, I know. As long as WKT field is getting populated the marker should show. Just make sure that you have the 'Zoom to Layer' turned on the field (content type manage). Make sure to turn off 'Zoom to location' in your OL (admin/build/openlayers) preset.
Comment #5
pixelsweatshop commentedThis was fixed a long, long time ago. IIRC, it had to do with something like making sure my OL map was enabled for "Placeholder for Geofield Formatter". Or something silly like that, that I missed. Back when I was trying to get a grasp on OL. We can go ahead and close this.