Note that there are some explanatory texts on larger screens.

plurals
  1. POParsing data onto google map
    primarykey
    data
    text
    <p>I am trying to parse the latitude and longitude from a json file onto Google map, as well as several other data into the information window. However i think might have screw up somewhere as when i tried to run the file, all i got was a blank screen. Can someone point out what i have done wrong. Any suggestion would be appreciated.</p> <p>I have made use of the earthquake data created by google as my reference point. </p> <pre><code>&gt; window.eqfeed_callback = function(results) { var bounds=new google.maps.LatLngBounds(); for (var i = 0; i &lt; results.features.length; i++) { var accesspoint = results.features[i]; var latitude = accesspoint.3.WifiLatitude; var longtitude = accesspoint.4.WifiLongtitude; var latLng = new google.maps.LatLng(latitude &amp;&amp;longtitude); bounds.extend(latLng); var content ="&lt;div style='height:100px; width:300px; overflow:auto;'&gt;&lt;table&gt;"; content += "&lt;tr&gt;&lt;th align='left'&gt;id&lt;/th&gt;&lt;td&gt;"+accesspoint.id+"&lt;/td&gt;&lt;/tr&gt;"; content += "&lt;tr&gt;&lt;th align='left'&gt;WifiMacAddress&lt;/th&gt;&lt;td&gt;"+accesspoint.4.WifiMacAddress+"&lt;/td&gt;&lt;/tr&gt;"; content += "&lt;tr&gt;&lt;th align='left'&gt;WifiSSID&lt;/th&gt;&lt;td&gt;"+accesspoint.4.WifiSSID+"&lt;/td&gt;&lt;/tr&gt;"; content += "&lt;tr&gt;&lt;th align='left'&gt;WifiFrequency&lt;/th&gt;&lt;td&gt;"+accesspoint.4.WifiFrequency+"&lt;/td&gt;&lt;/tr&gt;"; content += "&lt;tr&gt;&lt;th align='left'&gt;SignalStrength&lt;/th&gt;&lt;td&gt;"+accesspoint.4.SignalStrength+"&lt;/td&gt;&lt;/tr&gt;"; content +="&lt;/table&gt;"; createMarker(latLng,earthquake.id,content); </code></pre> <p>the json file i have been trying to parse data out</p> <pre><code> {"wifin":{"WifiMacAddress":["21-00-00-00-00-00"],"WifiSSID":"Edurom","WifiLatitude":[-27.501008],"WifiLongtitude":[153.011720],"WifiFrequency":"80","SignalStrength":"60"}, "wifin":{"WifiMacAddress":["21-00-00-00-00-00"],"WifiSSID":"Edurom","WifiLatitude":[-27.501541],"WifiLongtitude":[153.005755],"WifiFrequency":"80","SignalStrength":"60"}, "wifin":{"WifiMacAddress":["21-00-00-00-00-00"],"WifiSSID":"Edurom","WifiLatitude":[-27.499142],"WifiLongtitude":[153.008845],"WifiFrequency":"80","SignalStrength":"60"}, "wifin":{"WifiMacAddress":["21-00-00-00-00-00"],"WifiSSID":"Edurom","WifiLatitude":[-27.498000],"WifiLongtitude":[153.015153],"WifiFrequency":"80","SignalStrength":"60"}, "wifin":{"WifiMacAddress":["21-00-00-00-00-00"],"WifiSSID":"Edurom","WifiLatitude":[-27.495069],"WifiLongtitude":[153.011549],"WifiFrequency":"80","SignalStrength":"60"} } </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload