Advertisement
Guest User

Untitled

a guest
Jun 20th, 2019
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.12 KB | None | 0 0
  1. var rIcon = L.icon({
  2. iconUrl: 'marcadores/marker-icon-blue.png',
  3. })
  4.  
  5. for ( var i=0; i < markers.length; ++i )
  6. {
  7. L.marker( [markers[i].lat, markers[i].lng], {icon: rIcon} )
  8. .bindPopup( '<a href="' + markers[i].url + '" target="_blank">' + markers[i].name + '</a>' ).addTo( cities );
  9. }
  10.  
  11. [{"date":"2019/05/09","hour":"16:36:01","lat":"-33.4381056","lon":"-70.639616","ot":"95","otname":"EVASION CONTROL","qctrl":"10","qfault":"25","idstate":"1","obs":"esto es una observacion!!!!"},{"date":"2019/05/09","hour":"16:36:01","lat":"-33.4415939","lon":"-70.6606995","ot":"98","otname":"EMISIONES DIESEL","qctrl":"10","qfault":"25","idstate":"1","obs":"esto es una observacion!!!!"},{"date":"2019/05/09","hour":"16:36:01","lat":"-33.448326","lon":"-70.6728874","ot":"102","otname":"INSPECCION TAXIMETROS","qctrl":"10","qfault":"25","idstate":"1","obs":"esto es una observacion!!!!"}]
  12.  
  13. <?php
  14.  
  15. function callWS(){
  16. $url="172.25.150.171:8080/TestDummy/webresources/test/data";
  17. $ch=curl_init();
  18. curl_setopt($ch, CURLOPT_RETURNTRANSFER,true);
  19. curl_setopt($ch, CURLOPT_URL,$url);
  20. echo curl_exec($ch);
  21. curl_close($ch);
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement