Closed (fixed)
Project:
IP Geolocation Views & Maps
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
31 Dec 2013 at 03:06 UTC
Updated:
29 Aug 2014 at 22:26 UTC
Jump to comment: Most recent
Comments
Comment #1
syawillim commentedI've looked at this a little more and the problem appears to be more with Views. The issue is this, you cannot include a field from the current node in a view along with fields from related nodes, such as in the case of a map?
Content type A has a Geofield which holds a Linestring, content type B has a Geofield that holds a single Point. Content type B also has a Node Reference field which may hold a Reference from URL back to a node of content type A.
What is required is that when a node of content type A is loaded the Linestring is plotted on a map view and if there are any referenced nodes of content type B the corresponding Point data it is also plotted on the same map view.
This will work fine so long as no filtering is applied i.e. the Geofields from all nodes of both content types are fed into the view. As soon as the view is filtered to the current node and nodes referencing the current node only the geo-data from one node type or the other can be plotted on the map view.
Basically it appears that it is not possible to filter node A by NID and node B by relation to node A and return both.
Comment #2
rdeboerThat's a fine analysis syawillim!
How strange that it all falls apart the moment you switch filtering on.
You are right in that when Views cannot get its results out in the proper way, then IPGV&M has nothing to plot on the map!
So I'm going to have to close your particular issue as impossible until Views cleans up its act.
However, there may still be a need for some to have multiple lat/lon fields. I'll leave this open until there is such a need.
Rik
Comment #3
ConradFlashback commentedsub
I have two geolocation field in a content type.
The first takes lat/long from html5, the second from google map.
I have to get in ip views a conditional result. If first field = null get second field.
Any idea (also with php views module)?
Comment #4
rdeboer7.x-1.x-dev supports multiple lat/lon fields on one or more content types.
To deal with sorting have a look at module Views Merge-Sort.
Rik
Comment #5
rdeboerComment #7
sirtetI can't see a multi-select box for the lat/long. I that really in? (1.25)
Or maybe i am misunderstanding the topic here...
I try to show a hotel with recommended restaurants nearby, see #2330013: Option to show porximity-origin-point on map
Comment #8
rdeboerHi Sirtet,
It is in IPGV&M 7.x-1.x-dev
See https://www.drupal.org/node/1941264#comment-9106195 for a screenshot.
Rik