php - External links to location on leafletjs-map -
i'm trying external links navigate given coordinates on leafletjs-map.
i tried approach described here: leaflet zoom on locations using multiple links
this works when have links in same file map-div. need create links in external file include in div gets automatically reloaded every 30 seconds.
i've pasted files in plunker: http://plnkr.co/edit/qlhhnv3edxxfr0pt1cds
in index.php
i have following code autorefresh content chkincludes.php
in #results
-div:
<script type="text/javascript">// <![cdata[ $(document).ready(function() { $.ajaxsetup({ cache: false }); // part addresses ie bug. without it, ie load first number , never refresh setinterval(function() { $('#results').load('chkincludes.php'); //#results-div located in main.php }, 30000); // "30000" here refers time refresh div. in milliseconds. }); // ]]> </script>
then include main.php
in body of index.php
.
in main.php
i have #results
-div gets autoloaded content chkincludes.php
.
chkincludes.php
php file include lot of ping-scripts.
i want make output of each ping-script link pointing location on map.
any getting work appreciated! thanks!