Skip to content

Commit

Permalink
different markers for different security settings
Browse files Browse the repository at this point in the history
  • Loading branch information
MasterEx committed Apr 21, 2012
1 parent 40ed8f0 commit 03c54d9
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
Binary file added img/1.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/2.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/3.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 6 additions & 5 deletions map.php
Expand Up @@ -33,15 +33,16 @@
$("#map").goMap({
markers: [';
$g = '';
$i = '';
foreach($results->getResults(8,-1,0) as $result) {
switch($result->getCapabilities()) {
case "[open]": $g = 'g1';break;
case "[WEP]": $g = 'g2';break;
default: $g = 'g3';break;
case "[open]": $g = 'g1';$i='1.png';break;
case "[WEP]": $g = 'g2';$i='2.png';break;
default: $g = 'g3';$i='3.png';break;
}
$script .= '{latitude:'.$result->getLatitude()
.',longitude:'.$result->getLongitude()
.',title:\''.$result->getSsid().'\',group:\''.$g.'\'},';
.',title:\''.$result->getSsid().'\',group:\''.$g.'\',icon:\'img/'.$i.'\'},';
}
$script .= '],
mapTypeControl: false,
Expand Down Expand Up @@ -83,7 +84,7 @@
$out = Template::header("Map",$script);
$out .= '<div id="map-box"><div id="map"></div></div>';
$out .= '<select id="group">
<option value="all">Show all wifi</option>
<option value="all">Show all wifi spots</option>
<option value="g1">Show only open</option>
<option value="g2">Show only wep</option>
<option value="g3">Show only the rest</option>
Expand Down

0 comments on commit 03c54d9

Please sign in to comment.