Map markers completed!
This commit is contained in:
@ -42,7 +42,7 @@
|
||||
<script src="/socket.io/socket.io.js"></script>
|
||||
|
||||
<script>
|
||||
var socket = io();//
|
||||
var socket = io();
|
||||
|
||||
// Stuff for the map
|
||||
//map = new OpenLayers.Map("demoMap");//.setView([59.4370, 24.7536], 12);
|
||||
|
BIN
client/marker.png
Normal file
BIN
client/marker.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 294 B |
6
main.js
6
main.js
@ -31,6 +31,12 @@ app.get('/tltmap', (req, res) => {
|
||||
res.sendFile(__dirname + '/client/index.html');
|
||||
});
|
||||
|
||||
app.get('/img/marker.png', (req, res) => {
|
||||
var img = fs.readFileSync('./client/marker.png');
|
||||
res.writeHead(200, {'Content-Type': 'image/png'});
|
||||
res.end(img, 'binary');
|
||||
});
|
||||
|
||||
server.listen(serverPort, () => {
|
||||
console.log("Apache server initalized...");
|
||||
console.log('Server started on port', serverPort);
|
||||
|
Reference in New Issue
Block a user