Going to do my best at describing what I am looking to do. I have created a content type for Physicians and a content type for Office Locations. I have populated the Office Locations with 4 locations currently. I am then using Entity Reference in Views to pull those locations in. Then in Physicians I am created a Field with a check box interface where the Physician can select what Offices they work at of those four.
So now I want to create a Map that shows on one Map the locations they selected. So I have created a Block View pulling in the information from the content type of Physician. I have changed the Format to Map and brought in the fields that hold the location data. I have also added a Contextual Filter so for the NID so that it will only show the locations that were selected in Physicians. So 2 of the 4 locations were selected in my example. However I cannot get the map to show up with just those 2 locations.
What am I doing wrong? Is what I want to do possible?
Comment | File | Size | Author |
---|---|---|---|
#4 | IPGVM config.png | 178.66 KB | RdeBoer |
#1 | Views formats.png | 116.86 KB | RdeBoer |
Comments
Comment #1
RdeBoerHi ryanfc78,
Thank you for your inquiry. Yes I believe this is possible.
But first things first... Based on your experience in #2467695: Phone Number in Bubble?, can you please make sure that this issue is posted in the correct queue? So in the Views UI, when you click on "Format", do you see radio buttons like shown below? And have you checked one of the IPGV&M options, not some other module?
Comment #2
ryanfc78 CreditAttribution: ryanfc78 commentedI am using that option and below is my current code for the View. Currently no Map is showing up in the block I created for it.
Comment #3
ryanfc78 CreditAttribution: ryanfc78 commentedSo I am using IPGV&M with GetLocation for the locate storage information. I have been messing with the view most of today and I think I am a bit closer. I am getting the view to bring in the correct information and display only the info on the physicians page and for only the info they elected in the Entity Reference field. Currently the Format is set as Grid so that I can see that the correct info is coming in and working the way I want. However when I change the Format to the IPGV&M Map or the GetLocation map it does not display the map or does not bring in the information and display markers for the addresses. The updated view is below.
Comment #4
RdeBoerHi ryanfc78,
So nearly there! Getting the right information in the View is usually the hardest, especially when entity references are involved. So well done on that.
Note: thanks for the Views exports, but they are of little use to me. I don't have your content and content types, so cannot import them.
I'm not sure why you're not seeing any markers -- not through IPGV&M and not through Getlocations.
Suggest you flick on the debug option in IPGV&M, under "Advanced options", "Detail execution progress with status messages", admin/config/system/ip_geoloc. This may reveal something, give you a hint.
So what made you go for Getlocations for storage, when you were considering Geofield here: https://www.drupal.org/node/2467695#comment-9807085 ?
Someone else asked a similar question (w.r.t. the Location module). My reply may be relevant to you too: #2460707: Decisions Decisions this or Location module
Getlocations in combination with IPGV&M should work though. I just haven't used it for a while. Maybe the Getlocations maintainer changed code and we have a regression. Did you read this configuration section carefully?