fixup weblink example in readme

This commit is contained in:
Dave Conway-Jones 2018-11-09 17:26:53 +00:00
parent 28da7948d9
commit f8c9a71230
No known key found for this signature in database
GPG Key ID: 9E7F9C73F5168CD4
3 changed files with 2 additions and 3 deletions

View File

@ -24,7 +24,7 @@
- v1.3.2 - Bugfix for inline svg icons - v1.3.2 - Bugfix for inline svg icons
- v1.3.1 - Allow `msg.payload.popped = true` to auto open the info popup. - v1.3.1 - Allow `msg.payload.popped = true` to auto open the info popup.
- v1.3.0 - Add initial 3D page (worldmap/index3d.html), Add ability to add KML, GPX and TOPOJSON overlay layers and optional zoom to fit. Change all http: links to https: - v1.3.0 - Add initial 3D page (worldmap/index3d.html), Add ability to add KML, GPX and TOPOJSON overlay layers and optional zoom to fit. Change all http: links to https:
- v1.2.4 - Let weblink also specify target page. eg `msg.payload.weblink = {name:"BBC News", url:"news.bbc.co.uk", target:"_new"}` - v1.2.4 - Let weblink also specify target page. eg `msg.payload.weblink = {name:"BBC News", url:"http://news.bbc.co.uk", target:"_new"}`
- v1.2.3 - Add higher maxZoom values for some layers - v1.2.3 - Add higher maxZoom values for some layers
- v1.2.2 - Re-fix simultaneous command plus payload - v1.2.2 - Re-fix simultaneous command plus payload
- v1.2.1 - Sort out map initialisation - especially clusterAt values - v1.2.1 - Sort out map initialisation - especially clusterAt values

View File

@ -64,7 +64,7 @@ Optional properties include
- **ttl** : time to live, how long an individual marker stays on map in seconds (overrides general maxage setting) - **ttl** : time to live, how long an individual marker stays on map in seconds (overrides general maxage setting)
- **photoUrl** : adds an image pointed at by the url to the popup box. - **photoUrl** : adds an image pointed at by the url to the popup box.
- **videoUrl** : adds an mp4 video pointed at by the url to the popup box. Ideally 320x240 in size. - **videoUrl** : adds an mp4 video pointed at by the url to the popup box. Ideally 320x240 in size.
- **weblink** : adds a link to an external page for more information. Either set a url as a *string*, or an *object* like `{name:"BBC News", url:"news.bbc.co.uk", target:"_new"}` - **weblink** : adds a link to an external page for more information. Either set a url as a *string*, or an *object* like `{name:"BBC News", url:"http://news.bbc.co.uk", target:"_new"}`
- **addtoheatmap** : set to <i>false</i> to exclude point from contributing to heatmap layer. (default true) - **addtoheatmap** : set to <i>false</i> to exclude point from contributing to heatmap layer. (default true)
- **intensity** : set to a value of 0.1 - 1.0 to set the intensity of the point on heatmap layer. (default 1.0) - **intensity** : set to a value of 0.1 - 1.0 to set the intensity of the point on heatmap layer. (default 1.0)
- **popped** : set to true to automatically open the popup info box, set to false to close it. - **popped** : set to true to automatically open the popup info box, set to false to close it.

View File

@ -1211,7 +1211,6 @@ function setMarker(data) {
} }
delete data.weblink; delete data.weblink;
} }
if (data.hasOwnProperty("popped") && (data.popped === true)) { if (data.hasOwnProperty("popped") && (data.popped === true)) {
popped = true; popped = true;
popid = data.name; popid = data.name;