New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WEB] JS Fixes #1456
[WEB] JS Fixes #1456
Conversation
Was removed for my custom map
Groups that have checked: true will be enabled when page loads.
This can be done using Leaflet Popups. https://leafletjs.com/reference-1.3.0.html#popup
👍 for the |
Sorry that I haven't gotten around to reviewing this yet, I'll try to get it done within the next 7 days. |
I have been working on the Leaflet map for a while so any questions or changes feel free to ask. |
In reference to the bug where you could zoom past the number set in the config, though now it is fixed for the most part, still if you switch to another world, the world loads so it IS zoomed past the min zoom. You have to zoom back in to fix it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On first look, indentation is all wrong, so I can't merge it in its current state. Please adjust your editor settings.
if ((typeof markers !== 'undefined') && (obj.path in markers)) { | ||
console.log("haveSigns = true"); | ||
console.log(obj); | ||
test = obj; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is this and why is it here?
* there is only one open at a time. | ||
*/ | ||
'infoWindow': null, | ||
/** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please indent with 4 spaces to keep it consistent
let new_marker = new L.marker(latlng, {icon: m_icon}); | ||
new_marker.bindPopup(db.text); | ||
marker_group.addLayer(new_marker); | ||
var entity = markersDB[marker_entry.groupName].raw; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
random tab indented thing
Add support for polyline POIs just like in the good ol' Google Maps days. See overviewer#883. The format after this commit is: { id, x, y, z, text, color, polyline/polygon: [{ x, y, z }, ...] } Optional properties: - common ones like "icon" and "hovertext" - "strokeColor" (string), - "fill" (boolean) - "weight" (integer) Docs not included. Largely based on PR overviewer#1536 by @jsmienk. Closes overviewer#1456, closes overviewer#1536, closes overviewer#1643.
Add support for polyline POIs just like in the good ol' Google Maps days. See overviewer#883. The format after this commit is: { id, x, y, z, text, color, polyline/polygon: [{ x, y, z }, ...] } Optional properties: - common ones like "icon" and "hovertext" - "strokeColor" (string), - "fill" (boolean) - "weight" (integer) Docs not included. Largely based on PR overviewer#1536 by @jsmienk. Closes overviewer#1456, closes overviewer#1536, closes overviewer#1643.
Add support for polyline POIs just like in the good ol' Google Maps days. See overviewer#883. The format after this commit is: { id, x, y, z, text, color, polyline/polygon: [{ x, y, z }, ...] } Optional properties: - common ones like "icon" and "hovertext" - "strokeColor" (string), - "fill" (boolean) - "weight" (integer) Docs not included. Largely based on PR overviewer#1536 by @jsmienk. Closes overviewer#1456, closes overviewer#1536, closes overviewer#1643.
Add support for polyline POIs just like in the good ol' Google Maps days. See overviewer#883. The format after this commit is: { id, x, y, z, text, color, polyline/polygon: [{ x, y, z }, ...] } Optional properties: - common ones like "icon" and "hovertext" - "strokeColor" (string), - "fill" (boolean) - "weight" (integer) Docs not included. Largely based on PR overviewer#1536 by @jsmienk. Closes overviewer#1456, closes overviewer#1536, closes overviewer#1643.
Added support for Polygons, Polylines and Fixed a bug where you could scroll to a minimum zoom level of 0, even if in the config it was set at a higher number.
Fixed the code for
See the changes in action: http://wynndata.tk/map/