Ignore:
Timestamp:
2014-09-12T01:57:41+02:00 (10 years ago)
Author:
Don-vip
Message:

see #10452 - better access to OSM API capabilities maximum waynodes info

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/upload/ApiPreconditionCheckerHook.java

    r7434 r7529  
    3232            // should be displayed.
    3333            api.initialize(NullProgressMonitor.INSTANCE);
    34             long maxNodes = 0;
    35             if (api.getCapabilities().isDefined("waynodes", "maximum")) {
    36                 maxNodes = api.getCapabilities().getLong("waynodes","maximum");
    37             }
     34            long maxNodes = api.getCapabilities().getMaxWayNodes();
    3835            if (maxNodes > 0) {
    3936                if( !checkMaxNodes(apiData.getPrimitivesToAdd(), maxNodes))
Note: See TracChangeset for help on using the changeset viewer.