-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Leaflet-Ruler plugin #1992
Comments
Do you have a code example? |
this is html of the map with the plugin : |
this one i reformed of the link |
<title>Leaflet Map with Ruler</title>
<style>
#map { height: 600px; }
</style>
<script src="https://unpkg.com/leaflet@1.7.1/dist/leaflet.js"></script>
<script
src="https://cdn.rawgit.com/gokertanrisever/leaflet-ruler/master/src/leaflet-ruler.js"
></script>
<script>
// Create a map centered around Cairo, Egypt
var map = L.map('map').setView([30.0444, 31.2357], 8);
|
def initialize_map(self):
this is my try in folium to add the plugin |
Best to create new |
thanks for guiding me , it was easier to add the plugin to my folium library than adding it directly to my code |
Great! If you are open to it, you can share the plugin back to Folium. |
I've already linked the code to this txt file and edited the init.py inside plugins folder |
If you want could you make it into a pull request on GitHub? It will be easier for the maintainers to include it. For details see: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/creating-a-pull-request |
i used all possible functions to add leaflet ruler plugin but it gives me errors like :
js: Uncaught ReferenceError: map is not defined
Add Leaflet-Ruler plugin
i got all links from here: https://github.com/gokertanrisever/leaflet-ruler
The text was updated successfully, but these errors were encountered: