Fix .photoUrl property to match docs
To close #7 Thanks @edwin-oetelaar for spotting the mistake
This commit is contained in:
parent
63b1ed4156
commit
e6ae60068b
@ -7,6 +7,7 @@ map web page for plotting "things" on.
|
|||||||
![Map Image](https://dceejay.github.io/pages/images/redmap.png)
|
![Map Image](https://dceejay.github.io/pages/images/redmap.png)
|
||||||
|
|
||||||
### Changes
|
### Changes
|
||||||
|
- v1.0.18 - Correct .photourl property to match .photoUrl as per docs
|
||||||
- v1.0.17 - Removed Mapquest maps. Bug fixes - reduced leakage of listeners being added.
|
- v1.0.17 - Removed Mapquest maps. Bug fixes - reduced leakage of listeners being added.
|
||||||
- v1.0.12 - Added ability to set initial start position, zoom level and base map layer.
|
- v1.0.12 - Added ability to set initial start position, zoom level and base map layer.
|
||||||
- v1.0.x - now uses socket.io to connect to backend - means this node now has an input connection
|
- v1.0.x - now uses socket.io to connect to backend - means this node now has an input connection
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name" : "node-red-contrib-web-worldmap",
|
"name" : "node-red-contrib-web-worldmap",
|
||||||
"version" : "1.0.17",
|
"version" : "1.0.18",
|
||||||
"description" : "A Node-RED node to provide a web page of a world map for plotting things on.",
|
"description" : "A Node-RED node to provide a web page of a world map for plotting things on.",
|
||||||
"dependencies" : {
|
"dependencies" : {
|
||||||
"express": "4.*",
|
"express": "4.*",
|
||||||
|
@ -843,6 +843,9 @@ function setMarker(data) {
|
|||||||
if (data.hasOwnProperty("photourl")) {
|
if (data.hasOwnProperty("photourl")) {
|
||||||
words += "<img src=\"" + data.photourl + "\" style=\"width:100%; margin-top:10px;\">";
|
words += "<img src=\"" + data.photourl + "\" style=\"width:100%; margin-top:10px;\">";
|
||||||
}
|
}
|
||||||
|
if (data.hasOwnProperty("photoUrl")) {
|
||||||
|
words += "<img src=\"" + data.photoUrl + "\" style=\"width:100%; margin-top:10px;\">";
|
||||||
|
}
|
||||||
marker.bindPopup(words);
|
marker.bindPopup(words);
|
||||||
marker._popup.dname = data.name;
|
marker._popup.dname = data.name;
|
||||||
marker.ts = parseInt(Date.now()/1000); // save time we got this marker
|
marker.ts = parseInt(Date.now()/1000); // save time we got this marker
|
||||||
|
Loading…
Reference in New Issue
Block a user