User:ZeLonewolf/TaginfoTest

From OpenStreetMap Wiki
Jump to navigation Jump to search
What it looks like when installed.

Installation Instructions

Copy the contents of the following file into your user directory common.js:

The AJAX taginfo boxes below will not appear until this is done.

Live Side-by-Side Examples

These examples show the AJAX and standard Taginfo boxes side-by-side. The AJAX boxes will only load after the user script is installed as described above.

water=reservoir
Error loading from Taginfo API.
water=foo_bar
Error loading from Taginfo API.
boundary=special_economic_zone
Error loading from Taginfo API.
18em Forced Width
boundary=*
Error loading from Taginfo API.
building=yes
Error loading from Taginfo API.
relationtype=multipolygon
Error loading from Taginfo API.
relationtype=multipolygon (UK Server)
relationtype=multipolygon (Intentional Error)
Error loading from Taginfo API.
relationtype=route_master
Error loading from Taginfo API.
building=yes
Option footer=no
Error loading from Taginfo API.
building=yes (UK Server)
Option footer=no
building=*
Error loading from Taginfo API.
building=* (UK Server)
Option footer=no
building=yes
Options footer=no, percentage=no, width=7.5em
Error loading from Taginfo API.
building=yes
Options footer=no, tagLink=no, percentage=no, width=7.5em
Error loading from Taginfo API.
building=yes
Options footer=no, percentage=no, width=7.5em
Error loading from Taginfo API.
building=yes
Options footer=no, tagLink=no, percentage=no, countNodes=no, countWays=no, countRelations=no, width=7.5em
Error loading from Taginfo API.
building=yes
Options footer=no, tagLink=no, percentage=no, countAll=no, width=7.5em
Error loading from Taginfo API.

Scripts

Noscript

Once installed in the global noscript CSS, this block of code will cause the taginfo block to fall back to the old-style widget.

.noscript-display-block {
    display:block;
}

i18n Strings