Code Monkey home page Code Monkey logo

fsmap's Introduction

fsmap

A simple fullscreen map wit various layers and features.

Used libraries

Some of these libraries were slightly modified to improve the integration in fsmap or to change the behavior.

License

The fsmap itself is licensed under the WTFPL v2 but the libraries might be licensed under a different license.

fsmap's People

Contributors

sammyshp avatar tilmanb avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

fsmap's Issues

Update to Leaflet 1.x

Biggest problem will be the extensions. Some of them are old and were not updated for years.

Request - Dirty tile greyed out and no notice

I would like the "Mark tile as dirty" feature to mark the tile with grey opacity to show it as marked dirty, not a popup notice that tells me that the tile is submitted for rendering.

For some years ago, it was a userscript where i press alt-button + mouse click and the tile was faded out to grey, then it was marked as dirty and submitted for rendering. This userscript doesn't work anymore. But may help understand a little what i mean. :)

// ==UserScript==
// @name click n' dirt
// @Version 0.1
// @description Alt-click to mark tiles as dirty on openstreetmap.org
// @include http://www.openstreetmap.org/*
// @include https://www.openstreetmap.org/*
// @copyright vax 2014
// ==/UserScript==

var code = '
$("#map").on("click", ".leaflet-tile", function(e) {
if (e.altKey) {
$.ajax({
url: this.src+"/dirty",
context: this
}).done(function() {
$(this).fadeTo("fast", .2);
});
}
});';

var script = document.createElement("script");
script.textContent = code;
document.body.appendChild(script);

https://gist.github.com/Malmis/307956089c553b698bbe429ce4cc4400

Remove OSM tile status

Since the OSM tiles were moved to a CDN, their status and dirty methods aren't available anymore.

Can't "Share this location"

Can't "Share this location", because the URL is just stuffed in an uncopyable Alert:
20211222T082150

Also the other menu item, "Show coordinates", has the same problem.

Share marker

Markers already have a context menu. Add a new item that shows/copies an URL that points to this marker. This can/must be further extended by adding the marker again when the URL is called (another parameter for the restore view addon).

Upload GPX files

"Upload" GPX files and show the contents (waypoints, tracks โ€ฆ) on the map. This should be done only in the browser.

IIRC I already tried this some time ago and maybe have some code somewhere.

leaflet-hash error

Error: Permission denied to access object

When moving the map, although the hash is updated in the urlbar. Using Firefox 115.

Move marker

It should be possible to move markers (maybe not always so that they cannot be moved by accident).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.