Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var rIcon = L.icon({
- iconUrl: 'marcadores/marker-icon-blue.png',
- })
- for ( var i=0; i < markers.length; ++i )
- {
- L.marker( [markers[i].lat, markers[i].lng], {icon: rIcon} )
- .bindPopup( '<a href="' + markers[i].url + '" target="_blank">' + markers[i].name + '</a>' ).addTo( cities );
- }
- [{"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!!!!"}]
- <?php
- function callWS(){
- $url="172.25.150.171:8080/TestDummy/webresources/test/data";
- $ch=curl_init();
- curl_setopt($ch, CURLOPT_RETURNTRANSFER,true);
- curl_setopt($ch, CURLOPT_URL,$url);
- echo curl_exec($ch);
- curl_close($ch);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement