Allow the lat/lon drop-down to become a multi-select box so that different field names can be plotted in the same View, whether these come from the same content type or different content types.

Original request by syawillim.

Comments

syawillim’s picture

I'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.

rdeboer’s picture

Status: Active » Postponed

That'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

ConradFlashback’s picture

Status: Postponed » Active

sub
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)?

rdeboer’s picture

7.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

rdeboer’s picture

Assigned: Unassigned » rdeboer
Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

sirtet’s picture

I 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

rdeboer’s picture

Hi Sirtet,
It is in IPGV&M 7.x-1.x-dev
See https://www.drupal.org/node/1941264#comment-9106195 for a screenshot.
Rik