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

CommentFileSizeAuthor
leaflet multiple controls.png284.73 KBkebne
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

kebne created an issue. See original summary.

kebne’s picture

Component: User interface » Code
kebne’s picture

Issue summary: View changes
kebne’s picture

Version: 7.x-1.1 » 7.x-1.3
Issue summary: View changes
kebne’s picture

Issue summary: View changes
robertwb’s picture

Can hou verify that this is Leaflet, not an IPGVM issue? I don't recognize the controls.

robertwb’s picture

Project: Leaflet » IP Geolocation Views & Maps
kebne’s picture

Can hou verify that this is Leaflet, not an IPGVM issue? I don't recognize the controls.

I dont know but It seems like you have found that out?

robertwb’s picture

Yeah 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