Update farmOS-map library to v0.9.1 and add weights to behaviors.

This commit is contained in:
Michael Stenta 2020-02-03 14:08:04 -05:00
parent c80436607e
commit 9f6bbb8253
5 changed files with 8 additions and 4 deletions

View File

@ -204,7 +204,7 @@ libraries[easy-responsive-tabs][download][type] = "get"
libraries[easy-responsive-tabs][download][url] = "https://github.com/samsono/Easy-Responsive-Tabs-to-Accordion/archive/1.2.2.zip"
libraries[farmOS-map][download][type] = "get"
libraries[farmOS-map][download][url] = "http://github.com/farmOS/farmOS-map/releases/download/v0.9.0/v0.9.0-dist.zip"
libraries[farmOS-map][download][url] = "http://github.com/farmOS/farmOS-map/releases/download/v0.9.1/v0.9.1-dist.zip"
libraries[modernizr][download][type] = "get"
libraries[modernizr][download][url] = "http://github.com/Modernizr/Modernizr/archive/v2.8.3.zip"

View File

@ -17,6 +17,7 @@
instance.zoomToLayer(layer);
});
};
}
},
weight: -50,
};
}());

View File

@ -5,5 +5,6 @@
$('#' + instance.target).parents('.field-widget-farm-map-geofield').find('textarea').val(wkt);
});
},
weight: 100,
};
}(jQuery));

View File

@ -35,6 +35,7 @@
if (Drupal.settings.farm_map.behaviors.wkt.zoom && layer !== undefined) {
instance.zoomToLayer(layer);
}
}
},
weight: 100,
};
}());

View File

@ -11,6 +11,7 @@
visible: false,
};
instance.addLayer('wms', options);
}
},
weight: -100,
};
}());