NOTICE: is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

The data stored in my Database "video" of "shows" collection in mongodb is as this. It has 3 feilds as dose_rate, x, y.

My code for "app.js" is as follows :

var express=require('express');
var MongoClient=require('mongodb').MongoClient;
var engines=require('consolidate');
var assert=require('assert');
var app=express();

app.set('view engine','html');
app.set('views',__dirname+ '/views');

console.log("successfully connect to the MongoDB server");

console.log("connect to the port 4596");

the below code is for "shows.html" :

<!DOCTYPE html>

<title>Plotting points</title>

<ul class="nav navbar-nav">
{%for show in shows%}
<li> {{show.x}}</li>

on running the code of "app.js" and on opening "shows.html" from browser on localhost, the output is that all points (i.e dose_rate, x, y) of my "shows" collection in "video" database is displayed on HTML page as this.

now i did get code for plotting a point on OSM as marker from this link--> independently without app.js running in background as simple HTML page.

I want to plot all my points stored in my collection "shows" as "x" and "y" from that db on OSM map, one by one, at once. I tried finding all reference to this problem but failed to find one. Please help me in doing so as i am new to OSM and nodejs or post any reference which i can read or tag someone who can help. THANK YOU IN ADVANCE

asked 15 Feb '17, 06:19

pnnp's gravatar image

accept rate: 0%

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 15 Feb '17, 06:19

question was seen: 2,745 times

last updated: 15 Feb '17, 06:19

NOTICE: is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum