Answers.Body: <p>New release with the bug fix drupal.org/project/civicrm_entity_leaflet/releases/2.0.0-alpha2</p>
  <p><a href="https://git.drupalcode.org/project/civicrm_entity_leaflet/-/merge_requests/1" rel="nofollow noreferrer">https://git.drupalcode.org/project/civicrm_entity_leaflet/-/merge_requests/1</a></p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2024-05-23T21:25:42.047Z
Answers.LastActivityDate: 2024-05-23T21:25:42.047Z
Answers.UserDisplayName: jackrabbithanna
Body: <p>I have built a map in Drupal Views using Leaflet and it's worked fine but seems to have stopped recently. I didn't check it on the recent update so it may have been then.</p>
  <ul>
  <li>CiviCRM v5.73.1</li>
  <li>Drupal v10.2.6</li>
  <li>Leaflet v10.2.14</li>
  <li>CiviCRM Entity v4.0.0-beta2</li>
  <li>CiviCRM Leaflet Entity v2.0.0-alpha1</li>
  <li>PHP 8.1</li>
  </ul>
  <p>When I check the settings for the Format (top left), in the pop-up window there's a message in red:</p>
  <blockquote>
  <p>Please add at least one Geofield to the View and come back here to set it as Data Source.</p>
  </blockquote>
  <p>The View contains the Longitude and Latitude fields and they have data in them.</p>
  <p>Is it possible that a recent update has changed the way Drupal would recognise the lon/lat fields so that it no longer regards them as geofields?</p>
  <p>I can't find anything similar in any online searches or in the issues logs for the Drupal modules.</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2024-05-15T12:52:48.083Z
Comments.Text: Not that I'm aware of. FYI there is now a mapping extension for SearchKit so you can do maps natively in Civi without Views.
Comments.UserDisplayName: Coleman
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2024-05-17T08:35:38.487Z
Comments.Text: Ah, I did not know this. Thank you, I will take a look!
Comments.UserDisplayName: Rose Lanigan
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2024-05-21T09:21:27.397Z
Comments.Text: I've hit the same issue too. Unsure when this broke to be honest.
Comments.UserDisplayName: Nick Perkins
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2024-05-21T09:29:07.000Z
Comments.Text: @RoseLanigan I can confim that downgrading drupal/leaflet to 10.2.13 get this working again.
Comments.UserDisplayName: Nick Perkins
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2024-05-21T20:15:13.697Z
Comments.Text: Nick - you can add this as an Answer and get some + points
Comments.UserDisplayName: petednz - fuzion
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2024-05-21T21:33:34.713Z
Comments.Text: Created issue in module queue: https://www.drupal.org/project/civicrm_entity_leaflet/issues/3448917
  created MR for at least temporary fix: https://git.drupalcode.org/project/civicrm_entity_leaflet/-/merge_requests/1
Comments.UserDisplayName: jackrabbithanna
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2024-05-23T21:25:00.817Z
Comments.Text: New release with the bug fix https://www.drupal.org/project/civicrm_entity_leaflet/releases/2.0.0-alpha2
Comments.UserDisplayName: jackrabbithanna
Tags: <drupal><drupal-views><geocoding>
Title: Leaflet Map has just stopped working
ThreadText: # Leaflet Map has just stopped working
  
  (Asked by: username_0 on 2024-05-15)
  
  I have built a map in Drupal Views using Leaflet and it's worked fine but seems to have stopped recently. I didn't check it on the recent update so it may have been then.
  
  * CiviCRM v5.73.1
  * Drupal v10.2.6
  * Leaflet v10.2.14
  * CiviCRM Entity v4.0.0-beta2
  * CiviCRM Leaflet Entity v2.0.0-alpha1
  * PHP 8.1
  
  When I check the settings for the Format (top left), in the pop-up window there's a message in red:
  
  > Please add at least one Geofield to the View and come back here to set it as Data Source.
  
  The View contains the Longitude and Latitude fields and they have data in them.
  
  Is it possible that a recent update has changed the way Drupal would recognise the lon/lat fields so that it no longer regards them as geofields?
  
  I can't find anything similar in any online searches or in the issues logs for the Drupal modules.
  
  **Tags:** drupal, drupal-views, geocoding
  
  > **Comments:**
  > **username_1**: Not that I'm aware of. FYI there is now a mapping extension for SearchKit so you can do maps natively in Civi without Views.  
  > **username_0**: Ah, I did not know this. Thank you, I will take a look!  
  > **username_2**: I've hit the same issue too. Unsure when this broke to be honest.  
  > **username_2**: @username_0 I can confim that downgrading drupal/leaflet to 10.2.13 get this working again.  
  > **username_3**: username_2 - you can add this as an Answer and get some + points  
  > **username_4**: Created issue in module queue: https://www.drupal.org/project/civicrm_entity_leaflet/issues/3448917 created MR for at least temporary fix: https://git.drupalcode.org/project/civicrm_entity_leaflet/-/merge_requests/1  
  > **username_4**: New release with the bug fix https://www.drupal.org/project/civicrm_entity_leaflet/releases/2.0.0-alpha2  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_4 on 2024-05-23. Score: 4
  
  New release with the bug fix drupal.org/project/civicrm\_entity\_leaflet/releases/2.0.0-alpha2
  
  <https://git.drupalcode.org/project/civicrm_entity_leaflet/-/merge_requests/1>
  
  
  ---
  
  