How to render a map from Django with data tool-tip
Problem:
How do I render the India map in Django(Python) with tooltip data having both longitude and latitude values?
Solution:
Since we don't have a built in way to render longitude and latitude values in the tool-tip, we created you a demo displaying Lon/Lat values on a div placed over a map (capturing the mouse) by making use of the generic mousemove event and then using x/y to call a map API which returns lon/lat.
In this demo, we've made the Indian map display on a basic python-django project. If you have python and Django already installed, you just have to navigate to the ZingChartDemo folder and run python3 manage.py runserver then navigate to the http://127.0.0.1:8000/polls URL in your browser.