Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
We are using Leaflet Views with IPGV&M and Views exposed filter with AJAX.
After the a filter value is changed and an AJAX request was made the leaflet loads a second control for the reset button and the scale ruler (those are activated through leaflet views). Best workaround?
<a title="Återställ" class="leafet-control-reset leaflet-bar leaflet-control">R</a>
<a title="Återställ" class="leafet-control-reset leaflet-bar leaflet-control">R</a>
<div class="leaflet-control-scale leaflet-control"><div style="width: 70px;" class="leaflet-control-scale-line">50 km</div></div>
<div class="leaflet-control-scale leaflet-control"><div style="width: 70px;" class="leaflet-control-scale-line">50 km</div></div>
Update: The problem is still there after I have updated Leaflet from version 1.1 to 1.3
Comment | File | Size | Author |
---|---|---|---|
leaflet multiple controls.png | 284.73 KB | kebne |
Comments
Comment #2
kebne CreditAttribution: kebne commentedComment #3
kebne CreditAttribution: kebne commentedComment #4
kebne CreditAttribution: kebne commentedComment #5
kebne CreditAttribution: kebne commentedComment #6
robertwb CreditAttribution: robertwb commentedCan hou verify that this is Leaflet, not an IPGVM issue? I don't recognize the controls.
Comment #7
robertwb CreditAttribution: robertwb commentedComment #8
kebne CreditAttribution: kebne commentedI dont know but It seems like you have found that out?
Comment #9
robertwb CreditAttribution: robertwb commentedYeah sorry - I should have put a comment in with the re-assignment. There is no reset control in Leaflet, this is something that is added by IPGV&M. See: ./views/ip_geoloc_plugin_style_leaflet.inc