Re: [OSM-dev] ID presets problem

2018-03-01 Thread NopMap

I was testing the option to include GPX tracks in the map and I noted that
the layer is shown* in front of the* OSM data.

I would have expected the GPX track to be behind the OSM data so it is not
obscured and you can easily draw your ways on top of the GPX track.
Potlatch2 does it this way.

Is this a bug or a feature?
Is there a way to get the GPX track in the background?




--
Sent from: http://gis.19327.n8.nabble.com/Developer-Discussion-f5233107.html

___
dev mailing list
dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] ID presets problem

2018-03-01 Thread NopMap
Bryan Housel wrote
> Somebody made:
> https://github.com/openstreetmap/iD/pull/3140
> https://github.com/openstreetmap/iD/pull/3140;
> which I probably would have just accepted if it didn’t conflict with the
> existing "selected" style.
> (whatever we do needs to look and feel different than how it looks when
> the user selects things)

I agree that this is not really a solution. Ways in relations need to have
relation-specific attributes wich are completely independent of the select
status so you can add CSS rules for those types of relations which are of
interest.


Bryan Housel wrote
>> I also noted that the route relation presets seem to be rather generic.
>> Is
>> there something to know about there history/making?
> 
> It’s pretty much driven by whatever people want to edit/show here, as long
> as we can make it easy for an untrained user to figure out. 

I have upgraded the hiking relation preset in my version to the established
standard tagging.

Are you interested in those extensions which are generic? I could make a PR
with the general stuff after I am finished.


Bryan Housel wrote
>> On the other hand, for route=horse there is a field for network_horse. I
>> am
>> very much into horseback riding and the use of OSM for it, but I have
>> never
>> heard of such a network definition for horse routes. The tag is mentioned
>> in
>> the Wiki but it appears to be a simple copy & paste from hiking routes.
>> 
>> Is there some more information and a definition behind this preset?
> 
> It was requested here:
> https://github.com/openstreetmap/iD/issues/3057
> https://github.com/openstreetmap/iD/issues/3057;
> The requesting user mentioned the `network` values and it seems fine. I
> don’t dig too much into requests like this - if it’s a reasonable request,
> we’d probably just add it.

There are very few marked riding routes in Germany.

I am regularly analyzing the riding routes from most of europe for my riding
map and from that I am sure that there is no such thing as the national,
international etc. networks indicated in the presets. Country riding is much
more of a niche activity than hiking or bicycing and just copying their
presets over is not adequate.




--
Sent from: http://gis.19327.n8.nabble.com/Developer-Discussion-f5233107.html

___
dev mailing list
dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] ID presets problem

2018-02-25 Thread Jo
In Belgium and The Netherlands (and maybe in Germany too) there are
numbered node networks for horseback riding. I have no idea if they are
very popular. I don't have any near to where I can go do horseback riding.

Polyglot

2018-02-25 23:15 GMT+01:00 Bryan Housel :

> The taginfo service and the nominatim service still don't work. A mystery
> as
> the osm service works just fine. But I did not have a closer look yet. Does
> iD have some helpful means for debugging the services?
>
>
> I don’t have any helpful tips other than to just use the debugging
> features already built into your browser.  I mostly just use Chrome Dev
> tools to step through and debug the iD code.  (If you are more familiar
> with Firefox, Safari, Edge, their dev tools are fine too).
>
>
> It appears that iD is not capable at the moment of rendering route
> relations
> on the map with some highligting/casing/shadow etc. Is this correct?
> If so, is there already a ticket for such a rendering? It is a very useful
> feature of Potlatch2.
>
>
> There are some discussions on:
> https://github.com/openstreetmap/iD/issues/1575
> https://github.com/openstreetmap/iD/issues/659
>
> Somebody made:
> https://github.com/openstreetmap/iD/pull/3140
> which I probably would have just accepted if it didn’t conflict with the
> existing "selected" style.
> (whatever we do needs to look and feel different than how it looks when
> the user selects things)
>
>
> I also noted that the route relation presets seem to be rather generic. Is
> there something to know about there history/making?
>
>
> It’s pretty much driven by whatever people want to edit/show here, as long
> as we can make it easy for an untrained user to figure out.
>
>
> On the other hand, for route=horse there is a field for network_horse. I am
> very much into horseback riding and the use of OSM for it, but I have never
> heard of such a network definition for horse routes. The tag is mentioned
> in
> the Wiki but it appears to be a simple copy & paste from hiking routes.
>
> Is there some more information and a definition behind this preset?
>
>
> It was requested here:
> https://github.com/openstreetmap/iD/issues/3057
> The requesting user mentioned the `network` values and it seems fine. I
> don’t dig too much into requests like this - if it’s a reasonable request,
> we’d probably just add it.
>
>
> Thanks Bryan
>
>
> ___
> dev mailing list
> dev@openstreetmap.org
> https://lists.openstreetmap.org/listinfo/dev
>
>
___
dev mailing list
dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] ID presets problem

2018-02-25 Thread Bryan Housel
> The taginfo service and the nominatim service still don't work. A mystery as
> the osm service works just fine. But I did not have a closer look yet. Does
> iD have some helpful means for debugging the services?

I don’t have any helpful tips other than to just use the debugging features 
already built into your browser.  I mostly just use Chrome Dev tools to step 
through and debug the iD code.  (If you are more familiar with Firefox, Safari, 
Edge, their dev tools are fine too).


> It appears that iD is not capable at the moment of rendering route relations
> on the map with some highligting/casing/shadow etc. Is this correct?
> If so, is there already a ticket for such a rendering? It is a very useful
> feature of Potlatch2.

There are some discussions on:
https://github.com/openstreetmap/iD/issues/1575 

https://github.com/openstreetmap/iD/issues/659 


Somebody made:
https://github.com/openstreetmap/iD/pull/3140 

which I probably would have just accepted if it didn’t conflict with the 
existing "selected" style.
(whatever we do needs to look and feel different than how it looks when the 
user selects things)


> I also noted that the route relation presets seem to be rather generic. Is
> there something to know about there history/making?

It’s pretty much driven by whatever people want to edit/show here, as long as 
we can make it easy for an untrained user to figure out. 


> On the other hand, for route=horse there is a field for network_horse. I am
> very much into horseback riding and the use of OSM for it, but I have never
> heard of such a network definition for horse routes. The tag is mentioned in
> the Wiki but it appears to be a simple copy & paste from hiking routes.
> 
> Is there some more information and a definition behind this preset?

It was requested here:
https://github.com/openstreetmap/iD/issues/3057 

The requesting user mentioned the `network` values and it seems fine. I don’t 
dig too much into requests like this - if it’s a reasonable request, we’d 
probably just add it.


Thanks Bryan

___
dev mailing list
dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] ID presets problem

2018-02-25 Thread NopMap
Eventually I managed to persuade iD to use my own icon images instead of the
maki library. Actually it took less than a dozen lines of code to implement
the patch - it just was very difficult to find those lines.

The taginfo service and the nominatim service still don't work. A mystery as
the osm service works just fine. But I did not have a closer look yet. Does
iD have some helpful means for debugging the services?


I am currently working on route relatins, for hiking and riding in
particular, and have two more questions:

It appears that iD is not capable at the moment of rendering route relations
on the map with some highligting/casing/shadow etc. Is this correct?

If so, is there already a ticket for such a rendering? It is a very useful
feature of Potlatch2.


I also noted that the route relation presets seem to be rather generic. Is
there something to know about there history/making?

For hiking routes many of the standard tags are missing from the presets.
E.g. description (17000 uses), distance (18000 uses) and osmc:symbol (63000
uses).

On the other hand, for route=horse there is a field for network_horse. I am
very much into horseback riding and the use of OSM for it, but I have never
heard of such a network definition for horse routes. The tag is mentioned in
the Wiki but it appears to be a simple copy & paste from hiking routes.

Is there some more information and a definition behind this preset?


bye,
 Nop




--
Sent from: http://gis.19327.n8.nabble.com/Developer-Discussion-f5233107.html

___
dev mailing list
dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] ID presets problem

2018-02-13 Thread NopMap


Bryan Housel wrote
>> I am not quite sure why the nominatim service does not work. It also
>> appears
>> that the taginfo service does not work either. Those fields which are
>> supposed to get their values from taginfo also remain empty. I assume
>> that
>> is has something to do with the test instance running on localhost. Or is
>> there additional configuration work required for those services?
> 
> It should just work - I run iD on localhost all the time.   ¯\_(ツ)_/¯

Well unfortunately you are right. I uploaded everything to my life server
and nominatim and taginfo services still refuse to work. No error messages.

Maybe its because the local site is http and the OSM links are https? I
experienced some such problems since OSM changed to https.


Bryan Housel wrote
>> 3. Custom icons
>> 
>> I have already successfully changed the whole map CSS setup to mimick the
>> map design of my site. The only thing that remains is to exchange the
>> maki
>> icons for my own POI icons. At the moment I am at a loss on how to do
>> that.
>> All icon handling is geared toward SVG and the maki library.
>> 
>> How can I get my own .PNG icons into the presets? Any hints?
> 
> Ah, sorry - iD only supports SVG for the preset icons.  There are just a
> lot of benefits to doing it that way.

Well, I understand the theoretical benefits of vector graphics. But as it
happens my icons are only available as bitmaps :-) And the whole idea of the
work is to make the items in the editor immediately recognizable so you
don't have to learn a different look of everything in the editor.

Well, I noted that ID actually uses quite a number of .PNG icons for the
cursors and the patterns. So the library definitely supports it. I just
couldn't figure out how to modify the code to use .PNG icons instead of SVG
graphics as I am completely unfamiliar with the technology. Can you maybe
point me to a suitable tutorial?

thanks, Nop



--
Sent from: http://gis.19327.n8.nabble.com/Developer-Discussion-f5233107.html

___
dev mailing list
dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] ID presets problem

2018-02-11 Thread Bryan Housel
> On Feb 11, 2018, at 3:47 AM, NopMap  wrote:
> 
> 1. tourist attraction
> 
> Bryan Housel wrote
>> The “Tourism” field will appear in the sidebar because that field has been
>> set up recently as a “universal” field that defaults to “attraction"
> 
> Thank you, that is it. I missed the "universal" attribute completely. I had
> removed the field altogether to avoid the problem, but removing the
> universal should suffice.


Great!


> 2. no address input
> 
> I have figured out part of the address problem. For some reason, the
> geocoding service is unavailable and in that case ID silently disappears all
> address input fields instead of showing an error and/or falling back to a
> default locale. As a workaround I am setting a default locale. Maybe I
> should create an issue for that silent failing?

We’re tracking that on 
https://github.com/openstreetmap/iD/issues/4198 




> I am not quite sure why the nominatim service does not work. It also appears
> that the taginfo service does not work either. Those fields which are
> supposed to get their values from taginfo also remain empty. I assume that
> is has something to do with the test instance running on localhost. Or is
> there additional configuration work required for those services?

It should just work - I run iD on localhost all the time.   ¯\_(ツ)_/¯



> 3. Custom icons
> 
> I have already successfully changed the whole map CSS setup to mimick the
> map design of my site. The only thing that remains is to exchange the maki
> icons for my own POI icons. At the moment I am at a loss on how to do that.
> All icon handling is geared toward SVG and the maki library.
> 
> How can I get my own .PNG icons into the presets? Any hints?

Ah, sorry - iD only supports SVG for the preset icons.  There are just a lot of 
benefits to doing it that way.



Thanks, Bryan


___
dev mailing list
dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] ID presets problem

2018-02-10 Thread Bryan Housel
Hi, can you share your code?  It would be useful to see how you set up the 
`trail_riding_station` preset.

The “Tourism” field will appear in the sidebar because that field has been set 
up recently as a “universal” field that defaults to “attraction"

see: 
https://github.com/openstreetmap/iD/blob/aa34a055f6e83667899a24ad329d97c883b6a632/data/presets/fields/tourism_attraction.json#L5
 

closes this issue:
https://github.com/openstreetmap/iD/issues/4323 



This means that,
- if `tourism=*` has a value, it will be shown in the sidebar fields list below 
other things
- if the user chooses `Tourism` from the “add field” dropdown, the tag will be 
added with the value `tourism=attraction`
- it works somewhat like `address`, `phone`, `wheelchair`, and other fields 
that can be added to anything


Hope this helps,
Bryan



> On Feb 10, 2018, at 4:09 AM, NopMap  > wrote:
> 
> Hi,
> 
> I have been trying to add a missing preset to id, for
> tourism=trail_riding_station.
> It is defined with "fields": [ "name", "address", "phone", "website",
> "description" ]
> 
> There are two problems:
> 
> 1. below the expected fields, there is an additional field appearing
> "tourism = attraction", which does not make any sense. It is not referenced
> in the preset and there is no tag for "attraction" on the node.
> 
> 2. The special input area for address remains empty. In the HTML the section
> is just empty: . I have not made any
> modifications to the address preset or code. Does this special input section
> need additional dependencies?
> 
> The same problems also occur with the unmodified standard preset for
> tourism=hotel.
> 
> I use a fork of ID 2.6.1 locally with XAMPP. Do those problems sound
> familiar?
> 
> bye, Nop
> 
> 
> 
> 
> --
> Sent from: http://gis.19327.n8.nabble.com/Developer-Discussion-f5233107.html 
> 
> 
> ___
> dev mailing list
> dev@openstreetmap.org 
> https://lists.openstreetmap.org/listinfo/dev 
> 

___
dev mailing list
dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/dev