Active
Project:
GMap Module
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
21 Feb 2012 at 15:03 UTC
Updated:
21 Feb 2012 at 15:03 UTC
I have the following snippet of javascript, which opens an info window from a dropdown list (a views attachment that returns the same list of nodes that the gmap does).
$(".map-jump-menu").change(function () {
var index = $(".map-jump-menu option").index($(".map-jump-menu option:selected"));
GEvent.trigger(Drupal.settings.gmap.auto1map.markers[index].marker, "click");
return false;
});I'm trying to take my map one step further, and add ajax exposed filters (using better exposed filters) so you can filter out nodes by a particular criteria.
Drupal.behaviors.bef_live_filter = function(context) {
if (context.nodeName == '#document') {
$('.views-exposed-form input:submit').hide();
}
$('.views-exposed-form input').change(function(event) {
$(this).parents('form').submit();
});
}Once, i have set a filter, the dropdown list no longer works. So, I'm looking for some guidance on what I may need to add to my $(".map-jump-menu").change function to possibly reset or reload the map to respond to those events again.
Hope this makes sense.