Viewing 15 replies - 1 through 15 (of 18 total)
  • Plugin Author hupe13

    (@hupe13)

    I have read the question in Leaflet Map support forum, but now you mention the corresponding Leaflet plugin. It should be possible to use this plugin with Leaflet Map. But making it available for all seems complicated. I will test it.

    Thread Starter turen009

    (@turen009)

    Thank you, this plugin is very useful. If it can be integrated with the Extension, that will be very helpful!

    Plugin Author hupe13

    (@hupe13)

    It should be possible to use this plugin with Leaflet Map.

    It is possible.

    But making it available for all seems complicated.

    Todo.

    Thread Starter turen009

    (@turen009)

    Great! I will look forward to the production version.

    Thread Starter turen009

    (@turen009)

    I see the test map, looks great. One comment: can it have a address search bar at the top?

    Any estimate of when you can publish?

    Plugin Author hupe13

    (@hupe13)

    One comment: can it have a address search bar at the top?

    Like this?

    Any estimate of when you can publish?

    You can test the Github version if you like.

    Thread Starter turen009

    (@turen009)

    Yes, address bar like that. Similar to an address search bar in googlemaps.

    I was not able to test the GiiHub version. I did not find documentation about how to implement it in the Github version.

    Plugin Author hupe13

    (@hupe13)

    I wrote a documentation how to install the Github version.

    Thread Starter turen009

    (@turen009)

    Great! I will test today.

    Thread Starter turen009

    (@turen009)

    The choropleth map works! Did you find a solution to adding an address search bar? Similar to this https://smeijer.github.io/leaflet-geosearch/

    Plugin Author hupe13

    (@hupe13)

    I have found a solution, but I will not include it in the plugin. I will provide it as an example on my website.

    Thread Starter turen009

    (@turen009)

    That is great. Will look forward to the example link.

    Plugin Author hupe13

    (@hupe13)

    Thread Starter turen009

    (@turen009)

    Need one more help on the geosearch code, if possible. I am receiving this following error after I followed your procedure from the link above:

    Fatal error: Cannot redeclare leafext_enqueue_geosearch() (previously declared in /home/bariscop/public_html/wp-content/plugins/insert-headers-and-footers/includes/class-wpcode-snippet-execute.php(268) : eval()’d code:2) in?/home/bariscop/public_html/wp-content/plugins/insert-headers-and-footers/includes/class-wpcode-snippet-execute.php(268) : eval()’d code?on line?1

    I have placed the geosearch.umd.js and geosearch.css in the upload directory, public_html/wp-content/uploads/geosearch. Then I installed WPcode, added a PHP snippet with your code and named the snippet geosearch, activated it, and used it as a shortcode under leaflet map, as such:

    [leaflet-map height=1000 width=1500 scrollwheel=true doubleClickzoom=true]

    [wpcode id=”195″]

    Do you know what needs to be changed to mitigate the error? Thank you so much!

    Plugin Author hupe13

    (@hupe13)

    Then I installed WPcode, added a PHP snippet with your code and named the snippet geosearch, activated it, and used it as a shortcode under leaflet map, as such:

    Configure the Code Type as PHP snippet, Insert Method as Auto Insert and Location Frontend Only. I need to add this to the page. Sorry and thank you.

Viewing 15 replies - 1 through 15 (of 18 total)
  • The topic ‘How to add this choropleth plugin’ is closed to new replies.