Leaflet.Storage icon indicating copy to clipboard operation
Leaflet.Storage copied to clipboard

prototype for easier overpass integration

Open datendelphin opened this issue 7 years ago • 7 comments

screenshot from 2017-11-01 09-30-33

There are open issues:

  • as soon as the settings screen is left, the overpass query disappears
  • the turbo usual {{bbox}} is not yet supported

datendelphin avatar Nov 01 '17 08:11 datendelphin

Also, right now one could enter both, remote data and overpass, and only one of both would be displayed.

datendelphin avatar Nov 01 '17 08:11 datendelphin

Okay, I see it a bit better now, thanks :)

IMHO, having a new dedicated form parallel to "remote data' is not the best move: as you mention yourself, this will conflict, and it will not work for a one short import (through the import panel).

What I suggest instead is to have a form on top the URL field that helps generating the final URL, both from remote data and import panel.

So, roughly, something like an "overpass wizard" button that open a new modal box, with at least the following fields:

  • feature (text input)
  • limit to current bbox? (check box)

With those infos, we would generate the final overpass URL we'd then put in the URL field the wizard was attached to.

yohanboniface avatar Nov 01 '17 09:11 yohanboniface

Oh, nice, the Overpass Turbo wizard is now a separate module, yay!

https://github.com/tyrasd/overpass-wizard

So in my above description, the new modal would expose the wizard.

yohanboniface avatar Nov 01 '17 09:11 yohanboniface

Ref https://github.com/tyrasd/overpass-turbo/issues/95

yohanboniface avatar Nov 01 '17 09:11 yohanboniface

Thank you for the input. Do you have anything in mind which is already in umap and similar? Something like the advanced action buttons? Or more like the User interface options toggles?

Also for the modal box, are there any examples I could use as a starting point? Something like the confirmation dialogue when one deletes the map? Or more like the question mark info boxes?

datendelphin avatar Nov 01 '17 09:11 datendelphin

I think you can start simple: just add a new form below the remote data URL input with the needed fields and a "generate" button that will call the wizard and populate the URL input. Later we'll make this form more generic (so it can be attached to any URL input), and togglable or in a modal (so it's displayed only on request).

yohanboniface avatar Nov 01 '17 09:11 yohanboniface

Sorry for the long delay. Here is the wizard like approach.

overpass-wizard-like

It takes the overpass query, optionally replaces {{bbox}} with the umap flavoured parameters, and sets the url, the format and the dynamic option of the remote data. So far so good?

datendelphin avatar Feb 03 '18 21:02 datendelphin