forked from v222008/PonControl
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaddmark.php
More file actions
33 lines (19 loc) · 977 Bytes
/
Copy pathaddmark.php
File metadata and controls
33 lines (19 loc) · 977 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?php
$olt_mark = str_replace('.','_',$olt);
$mac_mark = str_replace(':','_',$mac);
$mark = $olt_mark.$mac_mark;
if ($twirl_color == NULL) {
$twirl_color = "black";
} else {
}
?>
var myPlacemark<?php echo $mark; ?> = new ym.Placemark(
// Координаты метки
[<?php echo "$lat, $lon"?>], {
iconContent:'<font size="2"><?php echo $nameint; ?></font>',
balloonContent: '<font size="3" color="#6B002B"><br/><b><?php echo $nameint; ?></b><br/><?php echo $comments; ?><br/><?php echo $pwr; ?><br/><?php echo $mac; ?><br/><a href="index.php?page=onu&olt=<?php echo $olt; ?>&iface=<?php echo $iface; ?>">Карточка ONU</a></font>'
}, {
preset: 'twirl#<?php echo $twirl_color; ?>StretchyIcon'
});
// Добавление метки на карту
map.geoObjects.add(myPlacemark<?php echo $mark; ?>);