Boundaries broken in Leaflet 10.2.11 (in Views only)

Created on 13 February 2024, 5 months ago
Updated 19 February 2024, 4 months ago

I'm rebuilding a dev site for deployment and I've found that a View that's working fine in 10.2.4 is broken in 10.2.11.

Here's the working view in 10.2.4:

https://scdc.icrmedia.com/scdc-maps

Note that the boundaries work fine. (There's an issue with the Congressional boundaries and it has to do with a Geofield issue reported here 💬 Data too long for location field Active .)

Here's the identical View in 10.2.11:

https://d1024.suffolkcountydems.com/scdc-maps

The settings for the two Views are identical; note that in 10.2.11 the boundaries don't work.

I suppose I could try to roll back, but I'm not sure exactly how that might work. Any suggestions greatly appreciated... thanks in advance and for Leaflet in general!

🐛 Bug report
Status

Closed: cannot reproduce

Version

10.2

Component

Miscellaneous

Created by

🇺🇸United States bcobin

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @bcobin
  • Status changed to Closed: cannot reproduce 4 months ago
  • 🇮🇹Italy itamair

    thanks for reporting this ...
    BUT I can see a js console error appearing when I check the "Congressional" option ...

    SyntaxError: JSON Parse error: Unrecognized token '/'

    It indicates (might give the clue) that something could be wrong in that specific source data of you, or the way it is being parsed by the Drupal process. And that makes sense, as the bounding box is working fine on the "Democratic Club", isn't it?

    Also please note that this Leaflet Demo page: https://www.geodemocracy.com/drupal_geofield_stack_demo/web/geoplaces-ma...
    is using Leaflet module version 10.2.11 and its bounding boxing is working apparently fine (@see and check the "Content type" exposed filter on top left under the Leaflet View title ... ).

    Please properly check on your specific project settings.
    I couldn't reproduce your issue on the 10.2.11 version.

  • 🇺🇸United States bcobin

    Thank you so much for looking into this - much appreciated.

    When I mention the Congressional boundaries - and only the Congressional boundaries - in View 1 (the working example) it’s to explain why they look odd; it’s an entirely different issue than what I’m reporting here. I know what it is, how to fix it and will open a separate thread.

    In View 2, the view fails on any and all boundary views; the Democratic Clubs are points, not polygons.

    The data for both views is identical, so there’s something else going on that’s causing the polygons in View 2 to fail.

    Would you mind verifying what I’m saying here and reopening? Thanks in advance…

  • Status changed to Active 4 months ago
  • 🇮🇹Italy itamair

    Okay. May be some regression might have been introduced in bounding box on polygons.
    Re-opening this ... will better check this out asap.

  • Status changed to Closed: cannot reproduce 4 months ago
  • 🇮🇹Italy itamair

    The "geometry" option was added to this demo Leaflet map: https://www.geodemocracy.com/drupal_geofield_stack_demo/web/geoplaces-ma...
    on the Content Type exposed filter options, and all looking good also on that, that is just filtering and extending the Map bounds only to polygons geometries ...

    It means to me that all is looking good in the bounding box extension also with geometries (not points).
    Re-closing this as "cannot reproduce".

  • 🇺🇸United States bcobin

    Figured it out. I created a "fill color" field that uses a taxonomy. In referencing the field from the View (as a label), the field defaults to "link label to the referenced entity". If that's not turned off, when the {{ field_fill_color }} token is invoked in the Leaflet Path Geometries in Leaflet settings, it borks the boundaries views. Turning it off solves the problem.

    Perhaps this will help someone else... thanks for following up!

Production build 0.69.0 2024