Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I'm having trouble with the locations module. For openlayers views, it will display locations if "non-cck" location fields is used but if I have a location cck on a node, it won't display the location. Has anyone gotten location cck fields to work with openlayer views?
Comment | File | Size | Author |
---|---|---|---|
#13 | Location Current Coordinates.jpg | 29.46 KB | itserich |
Comments
Comment #1
Summit CreditAttribution: Summit commentedSubscribing, greetings, Martijn
Comment #2
phayes CreditAttribution: phayes commentedComment #3
phayes CreditAttribution: phayes commentedI would say this is a bug / feature request for location CCK. I couldn't even manage to save a lat / lon field using location CCK, so it seems pretty broken.
On the views side, it does not appear that location CCK exposes individual data pieces individually (lat, lon, city, country etc.) - so we have nothing to map on. Once location CCK has these exposed individually, you should be able to add lat and lon as fields, then map on those. In the mean time, you could use node location (no-cck), which does expose lat / lon individually to views.
Comment #4
phayes CreditAttribution: phayes commentedMy apologies. I see we have Location CCK field as an option to map from.. This is left-over functionality that was never implemented and should be removed. The way forward is to map to individual lat / lon fields that need to be exposed as fields explicitly..
Comment #5
phayes CreditAttribution: phayes commentedCommited - I've removed the dangling confusing user-interface: http://drupal.org/cvs?commit=326610
Comment #6
phayes CreditAttribution: phayes commentedAnd the relevant location issue that needs to be fixed: http://drupal.org/node/698240
Comment #7
zzolo CreditAttribution: zzolo commentedMArking as postponed. This would be a good feature to have, but don't want it to stop the 1.0.
Comment #8
zzolo CreditAttribution: zzolo commentedIn theory, if Location add support to use individual piece of data, then we already have support for arbitrary lat and lon, so there is nothing really for us to do?
Comment #9
phayes CreditAttribution: phayes commentedzzolo,
yes exactly, so marking as won't fix as this is really a location issue.
Comment #10
phayes CreditAttribution: phayes commentedHere is a workaround until the location issue is addressed: http://geomemes.com/node/78
Comment #11
kbk CreditAttribution: kbk commentedJust curious. Has the issue with Location CCK Fields been resolved?
Comment #12
tmcw CreditAttribution: tmcw commentedIt looks like the issue that this refers to is not fixed (and the 1.x branch is abandoned), so no.
Comment #13
itserich CreditAttribution: itserich commented@: phayes # 10
That is an interesting article you cite.
I am trying to follow it but for computed wkt this is not displayed during the node data output:
I can see Current coordinates with latitude and longitude when the node is edited but I don't see the field output. Attached is a screen shot of the node edit.
Any help is appreciated, I have spent so much time on location modules.
Comment #14
itserich CreditAttribution: itserich commentedOkay I figured it out.
Openlayers Geocoder meets my needs. Took me 12 hours to think of it and 10 minutes to find it works.