Title: Enhancing with plugins
Last modified: November 10, 2019

---

# Enhancing with plugins

 *  [heneart](https://wordpress.org/support/users/heneart/)
 * (@heneart)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/enhancing-with-plugins/)
 * Hi , first thanx for the really great plugin 🙂
 * I’m trying to add 2 plugin for leaflet ,and I’ve read already the part of github
   docu “How Can I Add another Leaflet Plugin?”, but can´t make it work…
 * 1. Gesture Control ([https://github.com/elmarquis/Leaflet.GestureHandling/](https://github.com/elmarquis/Leaflet.GestureHandling/))
   
   and 2. Marker Clustering plugin for Leaflet ([https://github.com/Leaflet/Leaflet.markercluster](https://github.com/Leaflet/Leaflet.markercluster))
 * 1.
    I’ve added this part to functions.php add_action(‘leaflet_map_loaded’, ‘fs_leaflet_loaded’);
   function fs_leaflet_loaded() { wp_enqueue_script( ‘xyz-leafgesthand-js’, get_template_directory_uri().‘/
   js/LeafletGestureHandling/leaflet-gesture-handling.min.js’, Array(‘wp_leaflet_map’),‘
   1.0’, true); wp_enqueue_style( ‘xyz-leafgesthand-css’, get_template_directory_uri().‘/
   js/LeafletGestureHandling/leaflet-gesture-handling.min.css’, false, ‘1.1.8’ );
 * —-> till now the gesture control works, if I add in class.map-shortcode.php
    
   in options gestureHandling: true. but is hardcoded, so with the next update get
   lost….
 * But if I try this way including the script in functions.php
    // custom js //wp_enqueue_script(‘
   xyz-leafgesthand-custom’, get_template_directory_uri() . ‘js/leaflet-plugins.
   js’, Array(‘gesture_control’), ‘1.0’, true); }
 * I dont know, what to put in leaflet-plugins.js to make it work?
 * the same way i would like to try with the option2 , clusterer, any idea how?
 * Thanx in advance

Viewing 1 replies (of 1 total)

 *  Plugin Author [bozdoz](https://wordpress.org/support/users/bozdoz/)
 * (@bozdoz)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/enhancing-with-plugins/#post-12586869)
 * New post on Gesture Handling recently solved:
    [https://wordpress.org/support/topic/gesture-handling-2/](https://wordpress.org/support/topic/gesture-handling-2/)

Viewing 1 replies (of 1 total)

The topic ‘Enhancing with plugins’ is closed to new replies.

 * ![](https://ps.w.org/leaflet-map/assets/icon-256x256.png?rev=1693083)
 * [Leaflet Map](https://wordpress.org/plugins/leaflet-map/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/leaflet-map/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/leaflet-map/)
 * [Active Topics](https://wordpress.org/support/plugin/leaflet-map/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/leaflet-map/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/leaflet-map/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [bozdoz](https://wordpress.org/support/users/bozdoz/)
 * Last activity: [6 years, 2 months ago](https://wordpress.org/support/topic/enhancing-with-plugins/#post-12586869)
 * Status: not resolved