Set actual user location
-
Hi Camille.
Some time ago I was developing my website but I stopped it. (but I wrote all the steps I did, so it would be easy to re-create the website). Now I am trying to set the actual user location, but I am unable…
I copied this before the </head> tag in the header.php
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css"> <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/L.Control.Locate.min.css" />
And tried to copy this before the </body> tag in the footer.php
<script src="https://cdn.jsdelivr.net/npm/[email protected]/src/L.Control.Locate.min.js" charset="utf-8"></script> <script> document.addEventListener('cttm_map_loaded', function (e) { for (var i = 0; i < cttm_map.length; i++) { L.control.locate().addTo(cttm_map[i]); } }, false); </script>
But the </body> tag is not there!…. the footer.php doesn’t have that tag anymore…
What should I do?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Set actual user location’ is closed to new replies.