When I adjust the "Title Field" option in Leaflet Views settings ($form['name_field']), nothing happens. Instead, the term name linked to the taxonomy term page is always displayed as the popup title.

In the render() function, each $point['label'] is correctly set to the View field selected in "Title Field" (see line 263 of leaflet_views_plugin_style.inc). When I dump out the value of $point['label'], it is correctly set to the View field's output there. However, I haven't followed this up further. Do others see this problem?

Thanks! David

Comments

csc4’s picture

Same problem here with latest dev... has anyone else got this?

chrsnlsn’s picture

I'm having an issue where the title or description content can't load fields that are not in the same entity as the coordinates. Even though they are related and show fine in any other display format, like when I switch to html list they all show, but they don't show up with the Leaflet Map format. Is that what was causing it for you?

[edit]
My issue was because I was including fields from multiple different user profiles (location from one profile data from another on the same user) I just needed to add the two relationships to link the fields from the different profiles of the same user.
Profile: User uid
User) User: Profile

as stated here:
https://www.drupal.org/node/2027157

RdeBoer’s picture

Shameless plug:

Adding IP Geolocation Views and Maps to the mix may help.
You can continue to use Leaflet and re-use your existing View -- you just get more options to configure your map.

RdeBoer’s picture

Assigned: Unassigned » RdeBoer
Status: Active » Fixed

Status: Fixed » Closed (fixed)

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