Ignore:
Timestamp:
2011-09-17T10:59:32+02:00 (8 years ago)
Author:
jttt
Message:

Custom primitive name formatters via tagging presets

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/gpx/WayPoint.java

    r4282 r4431  
    7474    /**
    7575     * <p>Replies the projected east/north coordinates.</p>
    76      * 
     76     *
    7777     * <p>Uses the {@link Main#getProjection() global projection} to project the lan/lon-coordinates.
    7878     * Internally caches the projected coordinates.</p>
     
    8080     * <p><strong>Caveat:</strong> doesn't listen to projection changes. Clients must
    8181     * {@link #reproject() trigger a reprojection} or {@link #invalidateEastNorthCache() invalidate the internal cache}.</p>
    82      * 
     82     *
    8383     * @return the east north coordinates or {@code null}
    8484     * @see #invalidateEastNorthCache()
    85      * 
     85     *
    8686     */
    8787    public final EastNorth getEastNorth() {
     
    123123
    124124    @Override
    125     public Object getTemplateValue(String name) {
    126         return attr.get(name);
     125    public Object getTemplateValue(String name, boolean special) {
     126        if (!special)
     127            return attr.get(name);
     128        else
     129            return null;
    127130    }
    128131
Note: See TracChangeset for help on using the changeset viewer.