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

Add reference link for 'Enter a tile URL template. Valid tokens are {zoom}, {x}, {y} for Z/X/Y scheme and {u} for quadtile scheme.' #3887

Closed
jidanni opened this issue Mar 11, 2017 · 12 comments
Labels
documentation Improvements to the iD documentation

Comments

@jidanni
Copy link
Contributor

jidanni commented Mar 11, 2017

User sees Enter a tile URL template. Valid tokens are {zoom}, {x}, {y} for Z/X/Y scheme and {u} for quadtile scheme.
User searches Google for the definition of what you want.
User doesn't find it.
Please add a link to that message saying exactly what you want in detail.

@jidanni
Copy link
Contributor Author

jidanni commented Mar 11, 2017

Need a link to a list of examples, like http://wmts.nlsc.gov.tw/wmts/PHOTO2/default/EPSG:3857/{z}/{y}/{x}

@bhousel
Copy link
Member

bhousel commented Mar 12, 2017

Can you suggest a good page to link to?
I found https://wiki.openstreetmap.org/wiki/Slippy_map_tilenames but I don't think it's very good.

@Abbe98
Copy link
Contributor

Abbe98 commented Mar 12, 2017

It would be nice if the iD help pages could contain this information, but they are as far as I know not linkable.

@bhousel bhousel added the documentation Improvements to the iD documentation label Mar 14, 2017
@bhousel
Copy link
Member

bhousel commented Jun 20, 2017

I couldn't find a good resource to link to, so I just added an example url to the prompt.

screenshot 2017-06-20 00 37 18

@jidanni
Copy link
Contributor Author

jidanni commented Jun 20, 2017

OK but I think you need to explain there also what "switch" does.

@pnorman
Copy link
Contributor

pnorman commented Jun 20, 2017

Let's use tile.openstreetmap.org fot the example. It shows the format, isn't tied to any company, and doesn't contain provider-specific patterns which people might think are generally required (e.g. username.id in the URL)

@bhousel
Copy link
Member

bhousel commented Jun 20, 2017

Let's use tile.openstreetmap.org fot the example. It shows the format, isn't tied to any company, and doesn't contain provider-specific patterns which people might think are generally required (e.g. username.id in the URL)

Yes, this is a good idea..

I think most people seeing this message are just there to paste the tile url, so we should keep it simple.

screenshot 2017-06-20 15 06 02

@jidanni
Copy link
Contributor Author

jidanni commented Jun 22, 2017

Still do be sure to list and explain all "macros" available., e.g., "switch".

@bhousel
Copy link
Member

bhousel commented Jun 22, 2017

@jidanni I'll see if I can add some more info without making the message too long. I found that we unfortunately can't add a link in a window.prompt().

BTW we do also document the custom URL parameters here: https://github.com/openstreetmap/iD/blob/master/API.md#id-standalone

@jidanni
Copy link
Contributor Author

jidanni commented Jun 22, 2017 via email

@bhousel
Copy link
Member

bhousel commented Jun 23, 2017

which even if not hyperlinked, the user can (hopefully?!) copy with the
mouse and then browse in another window.

Unfortunately I'm not able to copy the dialog text in Chrome.
Instead I just added some more words describing the other replacement tokens:

screenshot 2017-06-22 21 42 28

I think it's ok for all of the supported tokens should be mentioned here, just so that nobody gets confused if they are given a url with a {switch:a,b,c} in it and they don't see it in the list.

@jidanni
Copy link
Contributor Author

jidanni commented Jun 23, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements to the iD documentation
Projects
None yet
Development

No branches or pull requests

4 participants