Hello,

Can anyone tell me that how can we use a field data in map's marker info window same like Gmap module?

I have a location field for address and I want to show that address on marker window but right now when I click on any marker one text "regionBound" showing.

so can anyone help me to show address instead of this regionBound text?

Thanks
Om

Comments

omvaishnav created an issue. See original summary.

rdeboer’s picture

Title: How to show a filed data in marker info window? » How to show Views field data in marker info balloon?
Assigned: Unassigned » rdeboer
Priority: Critical » Normal

Hi Om,

Thank you for your enquiry.

All fields in your View that you haven't explicitly EXCLUDED via the tick box will automatically appear in the info balloon that pops up when you click a marker.

How on earth you managed to get the word "regionbound" in there is beyond me. But maybe there's been a regression in the code.

Can you show us a screenshot?

Also tell us more about your setup. Are you using IPGV&M in combination with Google, Leaflet or OpenLayers?
What module are you using for the address. Addressfield? Or is your address just a textfield?
What module are you using for latitude/longitude storage? Geofield, Getlocations, Location or Geolocation Field?

It sounds like the Location module, especially if you've used it with GMap....

Rik

ANANSFPL’s picture

StatusFileSize
new11.42 KB

I'm having the same issue. Attached is a photo.

Field is Geolocation and also using IPGV&M with Google Maps.
Only local images are allowed.

rdeboer’s picture

Hi ANANSFPL,

Please tell us more about your setup, so we can reproduce the error.

Are you using IPGV&M in combination with Google, Leaflet or OpenLayers?
What module are you using for the address. Addressfield? Or is your address just a textfield?
What module are you using for latitude/longitude storage? Geofield, Getlocations, Location or Geolocation Field?

Rik

ANANSFPL’s picture

Are you using IPGV&M in combination with Google, Leaflet or OpenLayers?
Yes, IP Geolocation Views & Maps - 7.x-1.27+20-dev
What module are you using for the address. Addressfield? Or is your address just a textfield?
Geolocation - 7.x-1.6+5-dev
What module are you using for latitude/longitude storage? Geofield, Getlocations, Location or Geolocation Field?
Geolocation - 7.x-1.6+5-dev

I have four ( including the Title ) fields in the View and the only message I get in the callout/bubble is the "RegionBound" message.

Let me know if you need more information ( or want to see the live thing )

Thanks for the quick responses btw!

ANANSFPL’s picture

StatusFileSize
new50.47 KB

Another screenshot of my grep of the source. I cannot for the life of me, find out where to enable/disable this.

ANANSFPL’s picture

StatusFileSize
new28.03 KB

Last screenshot.

Edit:

Found it: http://cgit.drupalcode.org/ip_geoloc/commit/ip_geoloc_api.inc?id=0c89c1e...

Temporary Fix is to comment out the two lines.

Do you advise we should not be using the DEV version?

rdeboer’s picture

Thanks @ANANSFPL

Can you be a little more specific? Which 2 lines? And when you comment these out, will we lose functionality?

Can you provide a patch of your solution, please?

Thanks so much!

Rik

ANANSFPL’s picture

StatusFileSize
new56.16 KB

RdeBoer,

Unfortunately, I have 0 experience with contemporary programming ( such as how to create patches... lol ), but here are the two one lines that I commented out:

+ $location->balloon_text = 'a href="http://regionbound.com">RegionBound/a';

Once I removed that line, everything worked fine. All of the fields ( text + images ) that I added now show up on the balloon.

Attached is the working balloon text.

Again, thank you for the awesome module work :)

weri’s picture

Category: Support request » Bug report

I have the same problem after upgrading from 1.27 to the latest dev.

weri’s picture

Priority: Normal » Major
Status: Active » Needs review
StatusFileSize
new848 bytes

The following commit added the line ANANSFPL mentioned in #9: http://cgit.drupalcode.org/ip_geoloc/commit/ip_geoloc_api.inc?id=0c89c1e...

This line makes no sense for me, because it overwrites always the $location->balloon_text variable also when a value is set?

Status: Needs review » Needs work

The last submitted patch, 11: ip_geoloc-balloon_shows_RegionBound-2559249-11-D7.patch, failed testing.

weri’s picture

Status: Needs work » Needs review
StatusFileSize
new672 bytes

Fixed the wrong base path in the patch.

  • RdeBoer committed d1d2418 on 7.x-1.x authored by weri
    Issue #2559249 by weri: How to show Views field data in marker info...
rdeboer’s picture

Status: Needs review » Fixed

@weri and everyone above

Looking at this more closely, I have no idea how this offending line got in there.
It's like a temporary test was done and it didn't get removed, but checked into the repository instead!
Ouch!

Thanks everyone for reporting and correcting.

Checked in.

Rik

omvaishnav’s picture

Thank you all,

Now, I am able to sort out the issue by adding the patch.

Om

rdeboer’s picture

@omvaishnav,

You don't have to add the patch. I've done that and checked it into the Git repository.
The new version of the module has already been auto-generated by the system: just download IPGV&M 7.x-1.x-dev from the project page.

Rik

Status: Fixed » Closed (fixed)

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