????JFIF??x?x????'
| Server IP : 79.136.114.73 / Your IP : 216.73.216.191 Web Server : Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.29 OpenSSL/1.0.1f System : Linux b8009 3.13.0-170-generic #220-Ubuntu SMP Thu May 9 12:40:49 UTC 2019 x86_64 User : www-data ( 33) PHP Version : 5.5.9-1ubuntu4.29 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /proc/self/root/var/www/appsrv.astacus.se/digitaltwin/ |
Upload File : |
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title>Astaucs Digital Twin Portal</title>
<meta name="viewport" content="initial-scale=1,maximum-scale=1,user-scalable=no">
<link href="https://api.mapbox.com/mapbox-gl-js/v2.4.1/mapbox-gl.css" rel="stylesheet">
<script src="https://api.mapbox.com/mapbox-gl-js/v2.4.1/mapbox-gl.js"></script>
<style>
#map {
position: absolute;
top: 400px;
bottom: 0;
width: 90%;
height: 90%;
left: 255px;
}
.marker7 {
background-image: url('images/BILD7.png');
background-size: cover;
width: 100px;
height: 90px;
border-radius: 10%;
cursor: pointer;
}
.marker11 {
background-image: url('images/BILD11.png');
background-size: cover;
width: 100px;
height: 90px;
border-radius: 10%;
cursor: pointer;
}
.marker19 {
background-image: url('images/BILD19.png');
background-size: cover;
width: 100px;
height: 90px;
border-radius: 10%;
cursor: pointer;
}
.marker23 {
background-image: url('images/BILD23.png');
background-size: cover;
width: 100px;
height: 90px;
border-radius: 10%;
cursor: pointer;
}
.mapboxgl-popup {
max-width: 200px;
}
.mapboxgl-popup-content {
text-align: center;
font-family: 'Open Sans', sans-serif;
color: #FFFFFF;
background: #0063b5;
}
.rcorners { border-radius: 10px;
background: #0063b5;
padding: 10px;
height: 30px;
}
.rcorners_inactive { border-radius: 10px;
background: #eeeeee;
padding: 10px;
height: 30px;
}
</style>
</head>
<body leftmargin="0" marginheight="0" topmargin="0">
<table width="100%" border="0" style="position: absolute; top: 0; bottom: 0; left: 0; right: 0; font-family: 'Gill Sans', 'Gill Sans MT', 'Myriad Pro', 'DejaVu Sans Condensed', Helvetica, Arial, sans-serif; color: #FFFFFF;">
<tbody>
<tr>
<td width="250" rowspan="2" align="left" valign="top" bgcolor="#2F2F2F" ><a href="start.php"><img src="images/astacus_wide_original.png" width="200" style="margin-top: 10px;" alt=""/></a>
<hr color="#6B6B6B">
<table width="100%" border="0">
<tbody>
<tr>
<td align="center" valign="middle"> </td>
<td align="left" valign="middle"><strong><span style="font-family: 'Gill Sans', 'Gill Sans MT', 'Myriad Pro', 'DejaVu Sans Condensed', Helvetica, Arial, sans-serif; color: #FFFFFF">PROFIL</span></strong></td>
</tr>
<tr>
<td height="34" align="center" valign="middle"><img src="images/icon_profil.png" width="20" height="20" alt=""/></td>
<td align="left" valign="middle"><span style="font-family: 'Gill Sans', 'Gill Sans MT', 'Myriad Pro', 'DejaVu Sans Condensed', Helvetica, Arial, sans-serif; color: #CECECE"><a href="profil.php" style="font-family: 'Gill Sans', 'Gill Sans MT', 'Myriad Pro', 'DejaVu Sans Condensed', Helvetica, Arial, sans-serif; color: #CECECE;">Visa profil</a></span></td>
</tr>
<tr>
<td height="31" align="center" valign="middle"><img src="images/icon_exit.png" width="20" height="20" alt=""/></td>
<td align="left" valign="middle"><span style="font-family: 'Gill Sans', 'Gill Sans MT', 'Myriad Pro', 'DejaVu Sans Condensed', Helvetica, Arial, sans-serif; color: #CECECE;"><a href="exit.php" style="font-family: 'Gill Sans', 'Gill Sans MT', 'Myriad Pro', 'DejaVu Sans Condensed', Helvetica, Arial, sans-serif; color: #CECECE;">Logga ut </a></span></td>
</tr>
<tr>
<td width="21%" align="center" valign="top"><br>
<br>
<br>
<br></td>
<td width="79%"><p style="font-family: 'Gill Sans', 'Gill Sans MT', 'Myriad Pro', 'DejaVu Sans Condensed', Helvetica, Arial, sans-serif; color: #CECECE;"> </p>
<p style="font-family: 'Gill Sans', 'Gill Sans MT', 'Myriad Pro', 'DejaVu Sans Condensed', Helvetica, Arial, sans-serif; color: #CECECE;"><br>
<br>
</p></td>
</tr>
</tbody>
</table>
<hr color="#6B6B6B">
<table width="100%" border="0" height="200">
<tbody>
<tr>
<td align="center" valign="top"> </td>
<td><strong>FASTIGHETER</strong></td>
</tr>
<tr>
<td height="37" align="center" valign="middle"><img src="images/icon_list.png" width="20" height="20" alt=""/></td>
<td valign="middle"><span style="font-family: 'Gill Sans', 'Gill Sans MT', 'Myriad Pro', 'DejaVu Sans Condensed', Helvetica, Arial, sans-serif; color: #CECECE;"><span style="font-family: 'Gill Sans', 'Gill Sans MT', 'Myriad Pro', 'DejaVu Sans Condensed', Helvetica, Arial, sans-serif; color: #CECECE"><a href="list.php" style="font-family: 'Gill Sans', 'Gill Sans MT', 'Myriad Pro', 'DejaVu Sans Condensed', Helvetica, Arial, sans-serif; color: #CECECE;">Visa lista</a></span><br>
</span></td>
</tr>
<tr>
<td height="32" align="center" valign="middle"><img src="images/icon_clobe.png" width="20" height="20" alt=""/></td>
<td valign="middle"><span style="font-family: 'Gill Sans', 'Gill Sans MT', 'Myriad Pro', 'DejaVu Sans Condensed', Helvetica, Arial, sans-serif; color: #CECECE;"><a href="map.php" style="font-family: 'Gill Sans', 'Gill Sans MT', 'Myriad Pro', 'DejaVu Sans Condensed', Helvetica, Arial, sans-serif; color: #CECECE;">Visa karta</a></span></td>
</tr>
<tr>
<td height="39" align="center" valign="middle"> </td>
<td valign="middle"> </td>
</tr>
<tr>
<td width="21%" height="135" align="center" valign="top"> </td>
<td width="79%"></td>
</tr>
</tbody>
</table>
<hr color="#6B6B6B">
<p>
<center>
</center>
</p>
<p> </p>
<p></p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p></td>
<td width="*" height="45" align="center">
<p><span style="font-size: 36px; color: #000000">Digital Twin - Start</span></p></td>
</tr>
<tr style="height: 25%; font-size: 12px;">
<td align="left" valign="top" bgcolor="#ECECEC">
<br>
<br>
<table width="90%" border="0" align="center">
<tbody>
<tr>
<td><table width="100%" border="0" class="rcorners">
<tbody>
<tr>
<td valign="middle" ><table width="91%" border="0" align="left">
<tbody>
<tr>
<td width="6%" rowspan="2" align="center" valign="middle"><img src="images/house.png" width="50" height="50" alt=""/></td>
<td width="29%" rowspan="2" align="center" valign="top" style="font-size: 18px"><h2>Skänninge</h2></td>
<td width="10%" height="18" style="font-size: 14px">Fastighet: </td>
<td width="20%" style="font-size: 14px">Manegen 1</td>
<td width="9%" style="font-size: 14px">Adress:</td>
<td width="26%" style="font-size: 14px">Mjölbygatan 32</td>
</tr>
<tr>
<td style="font-size: 14px">Tjänster:</td>
<td style="font-size: 14px">Energy Viewer, Termisk filmning</td>
<td style="font-size: 14px">Typ:</td>
<td style="font-size: 14px">Butik</td>
</tr>
</tbody>
</table>
<a href="object.php?id=1"><img src="images/continue.png" alt="" width="50" height="50" border="0"/></a></td>
</tr>
</tbody>
</table>
<br>
<br>
<table width="100%" border="0" class="rcorners">
<tbody>
<tr>
<td><table width="91%" border="0" align="left">
<tbody>
<tr>
<td width="6%" rowspan="2" align="center" valign="middle"><img src="images/house.png" width="50" height="50" alt=""/></td>
<td width="29%" rowspan="2" align="center" valign="top" style="font-size: 18px"><h2>Borensberg</h2></td>
<td width="10%" height="18" style="font-size: 14px">Fastighet: </td>
<td width="20%" style="font-size: 14px">Brunneby-hälla 1:287</td>
<td width="9%" style="font-size: 14px">Adress:</td>
<td width="26%" style="font-size: 14px">Hamnvägen 1</td>
</tr>
<tr>
<td style="font-size: 14px">Tjänster:</td>
<td style="font-size: 14px">Energy Viewer, Termisk filmning</td>
<td style="font-size: 14px">Typ:</td>
<td style="font-size: 14px">Butik</td>
</tr>
</tbody>
</table>
<a href="object.php?id=2"><img src="images/continue.png" alt="" width="50" height="50" border="0"/></a></td>
</tr>
</tbody>
</table>
<br></td>
</tr>
</tbody>
</table>
<div id="map" ></div>
<p> </p>
<p> </p>
<p> </p>
<p> </p><p> </p>
<p> </p>
<p> </p>
<p> </p><p> </p>
<p> </p>
<p> </p>
<p> </p><p> </p>
<p> </p>
<p> </p>
<p> </p><p> </p>
<p> </p>
<p> </p>
<p> </p><p> </p>
<p> </p>
<p> </p>
<p> </p><p> </p>
<p> </p>
<p> </p>
<p> </p><p> </p>
<p> </p>
<p> </p>
<p> </p><p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p></td>
</tr>
</tbody>
</table>
</body>
</html>
<script>
var geojson = {
type: 'FeatureCollection',
features: [{
type: 'Feature',
geometry: {
type: 'Point',
coordinates: [15.088145,58.387616]
},
properties: {
title: 'Skänninge',
description: 'Fastighet: Managen 1<br>Adress: Mjölbygatan 32 <br>Typ: Butik <br> <br> <a href="object.php?id=1"><img src="images/continue.png" alt="" width="50" height="50" border="0"/></a>'
}
},
{
type: 'Feature',
geometry: {
type: 'Point',
coordinates: [15.277176,58.562478]
},
properties: {
title: 'Borensberg',
description: 'Fastighet: Brunneby-hälla 1:287<br>Adress: Hamnvägen 1 32 <br>Typ: Butik <br> <br> <a href="object.php?id=2"><img src="images/continue.png" alt="" width="50" height="50" border="0"/></a>'
}
},
{
type: 'Feature',
geometry: {
type: 'Point',
coordinates: [15.036871,58.536101]
},
properties: {
title: 'Motala City',
description: 'Ännu inte uppmätt. Inga tjänster finns påkopplade.'
}
},{
type: 'Feature',
geometry: {
type: 'Point',
coordinates: [15.003408,58.535311]
},
properties: {
title: 'Motala Väster',
description: 'Ännu inte uppmätt. Inga tjänster finns påkopplade.'
}
},{
type: 'Feature',
geometry: {
type: 'Point',
coordinates: [15.058726,58.548491]
},
properties: {
title: 'Motala Verkstan',
description: 'Ännu inte uppmätt. Inga tjänster finns påkopplade.'
}
},{
type: 'Feature',
geometry: {
type: 'Point',
coordinates: [15.033256,58.54494]
},
properties: {
title: 'Motala Ekön',
description: 'Ännu inte uppmätt. Inga tjänster finns påkopplade.'
}
},{
type: 'Feature',
geometry: {
type: 'Point',
coordinates: [14.881003,58.440831 ]
},
properties: {
title: 'Vadstena Starby',
description: 'Ännu inte uppmätt. Inga tjänster finns påkopplade.'
}
},{
type: 'Feature',
geometry: {
type: 'Point',
coordinates: [14.90141,58.449984]
},
properties: {
title: 'Vadstena Mima',
description: 'Ännu inte uppmätt. Inga tjänster finns påkopplade.'
}
},{
type: 'Feature',
geometry: {
type: 'Point',
coordinates: [15.693302,58.366983]
},
properties: {
title: 'Linköping Ullstämma',
description: 'Ännu inte uppmätt. Inga tjänster finns påkopplade.'
}
},{
type: 'Feature',
geometry: {
type: 'Point',
coordinates: [16.16974,58.560212]
},
properties: {
title: 'Norrköping',
description: 'Ännu inte uppmätt. Inga tjänster finns påkopplade.'
}
}]
};
mapboxgl.accessToken = 'pk.eyJ1IjoiY2FybGhvZmZzdGVkdCIsImEiOiJja3NqYmw2aTcwMzk2MnludTNjbXkzcm05In0.u--lhyuyU9aOy2zfKzxMgQ';
const map = new mapboxgl.Map({
container: 'map', // container ID
style: 'mapbox://styles/carlhoffstedt/cksjbnm7u1p1t18s0mogbysow', // style URL
center: [15.57312,58.483645], // starting position [lng, lat]
zoom: 9 // starting zoom
});
// add markers to map
geojson.features.forEach(function (marker) {
// create a HTML element for each feature
var el = document.createElement('div');
var rand = getRandomIntInclusive(1,5)
if(rand == 1){
el.className = 'marker7';
}else if (rand == 2){
el.className = 'marker11';
}else if (rand == 3){
el.className = 'marker19';
}else if (rand == 4){
el.className = 'marker23';
}else if (rand == 5){
el.className = 'marker23';
}
//el.className = 'marker7';
// make a marker for each feature and add it to the map
new mapboxgl.Marker(el)
.setLngLat(marker.geometry.coordinates)
.setPopup(
new mapboxgl.Popup({ offset: 25 }) // add popups
.setHTML(
'<h3>' +
marker.properties.title +
'</h3><p>' +
marker.properties.description +
'</p>'
)
)
.addTo(map);
});
function getRandomIntInclusive(min, max) {
const minCeiled = Math.ceil(min);
const maxFloored = Math.floor(max);
return Math.floor(Math.random() * (maxFloored - minCeiled + 1) + minCeiled); // The maximum is inclusive and the minimum is inclusive
}
</script>