GithubHelp home page GithubHelp logo

Comments (4)

drolbr avatar drolbr commented on August 24, 2024

I suggested to the community in Dorsten, see
http://wiki.osm.org/wiki/Dorsten#Übersichtskarten
to use links of the form

    ([http://overpass-turbo.eu/map.html?Q={{urlencode:area[name="Dorsten"];node(area)["memorial:type"=stolperstein];out;}} Übersichtskarte])

While this is not a replacement for parametrized templates, it has two interesting aspects:

  • It goes directly to the map, thus being simple to use for first-time users.
  • It tells explicitly what it does, hence being simpler to manage.

I would suggest to go forward with parametrized links in general and include the option to share the map view instead of the query console, but I would ask you to keep nonetheless the "map.html?Q=" feature operational.

from overpass-turbo.

tyrasd avatar tyrasd commented on August 24, 2024

Thanks for the suggestion. It's certainly a nice idea, but there are some technical and conceptual design issues with this approach. So it's likely a won't-fix, I'm afraid.

Short-links simply get redirected to ordinary URLs with GET parameters. That means that those additional shortlink parameters could clash with ordinary existing (or future) GET parameters. That's my main concern.

Generally, I guess that one should probably use non-short URLs in such a documentation or wiki page. Those are easily changeable without the need to recreate all the shortlinks again. ps: here is how one can construct these URLs manually.

I also like @drolbr's idea to use the fullscreen map.html endpoint for such use-cases. The map.html view will "soon" also support the full repertoire overpass turbo's features (mapcss, extended queries, etc.), thus being a 1-to-1 replacement for the currently linked pages.

from overpass-turbo.

tyrasd avatar tyrasd commented on August 24, 2024

I'm closing this because of the above mentioned concerns and current work which enabled the usage of custom (public or private, external or internal) URL-shortener services. Those services could in no way know what to do with those extra GET-parameters.

Instead, consider to use the new wizard-query API (#50, docu). Example: http://overpass-turbo.eu/?w=memorial%3Atype%3Dstolperstein%20in%20%22Dachau%22&R

from overpass-turbo.

Klumbumbus avatar Klumbumbus commented on August 24, 2024

I created a Wiki template for these links, which is used now in the mentioned list. The template has also some optional parameters for customizing the link. However it is still a bit limited due to #23.

from overpass-turbo.

Related Issues (20)

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.