Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Views AJAX issue #16

Open
emkolekdi opened this issue Jan 19, 2018 · 5 comments
Open

Views AJAX issue #16

emkolekdi opened this issue Jan 19, 2018 · 5 comments

Comments

@emkolekdi
Copy link

emkolekdi commented Jan 19, 2018

Hi,
When using this module with Views with exposed filters and AJAX = on, then the map disappears when selecting a filter. Is there an easy fix / workaround for this?

@LOBsTerr
Copy link
Member

@fab01 Can you check this ?

@fab01
Copy link
Collaborator

fab01 commented Jan 19, 2018

Hi,
this is a well known annoying issue.
The problem comes from the Map provided by the Webtools library.
Actually one of the guys in charge of WT development and maintenance suggested to use the method
$wt.refresh();
within the ajax callback.
We already tried this workaround but without success so, this is still an open issue.

I will make another test myself just in order to be sure and will return with a feedback (and maybe a fix) asap!

@emkolekdi
Copy link
Author

I can also confirm the $wt.refresh method will not work. The map is refreshed but the markers are not filtered, so all results are shown.

@fab01
Copy link
Collaborator

fab01 commented Jan 26, 2018

Yes,
and in my case I also noticed that, after the second ajax reload the view produce an incremental number of map instances.. See the image attached.
I'm currently investigating if it's related to webtools library or something else on Drupal side...
schermata 2018-01-26 alle 16 43 53

@emkolekdi
Copy link
Author

Hi, are there news on the AJAX issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants