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.phpi have following code autorefresh content chkincludes.phpin #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.phpin body of index.php.

in main.phpi 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!


Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -