Skip to content
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

Closed
wants to merge 6 commits into from
Closed

[WEB] JS Fixes #1456

wants to merge 6 commits into from

Conversation

DevScyu
Copy link

@DevScyu DevScyu commented May 20, 2018

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

overviewer.util.ready(function(){
    // do stuff
});

See the changes in action: http://wynndata.tk/map/

@DevScyu DevScyu changed the title Markers, Polygons, Polylines and fixed Zooming past minZoom in config. [WEB] JS Fixes May 21, 2018
@r15ch13
Copy link
Contributor

r15ch13 commented Jun 12, 2018

👍 for the overviewer.util.ready(); fix

@CounterPillow
Copy link
Member

Sorry that I haven't gotten around to reviewing this yet, I'll try to get it done within the next 7 days.

@DevScyu
Copy link
Author

DevScyu commented Jun 18, 2018

I have been working on the Leaflet map for a while so any questions or changes feel free to ask.

@SkyLicks
Copy link

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.

Copy link
Member

@CounterPillow CounterPillow left a 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;
Copy link
Member

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,
/**
Copy link
Member

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;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

random tab indented thing

deltaidea added a commit to deltaidea/Minecraft-Overviewer that referenced this pull request Sep 25, 2019
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.
deltaidea added a commit to deltaidea/Minecraft-Overviewer that referenced this pull request Sep 25, 2019
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.
deltaidea added a commit to deltaidea/Minecraft-Overviewer that referenced this pull request Sep 25, 2019
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.
deltaidea added a commit to deltaidea/Minecraft-Overviewer that referenced this pull request Nov 1, 2019
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants