Last change
on this file was 18578, checked in by taylor.smock, 2 years ago |
Fix #22404: MVT background layer: Polygons not drawn
This was a two-part problem:
- Converting shapes to areas does not always keep the same winding.
- MVT styles are minZoom <= showable zooms < maxZoom. We were doing
minZoom <= showable zooms <= maxZoom.
This also fixes some sonarlint issues in the modified files.
|
-
Property svn:eol-style
set to
native
|
File size:
919 bytes
|
Line | |
---|
1 | // License: GPL. For details, see LICENSE file.
|
---|
2 | package org.openstreetmap.josm.data.osm;
|
---|
3 |
|
---|
4 | /**
|
---|
5 | * interface to represent identification and type of the datatypes primitives.
|
---|
6 | *
|
---|
7 | * @since 2399
|
---|
8 | */
|
---|
9 | public interface PrimitiveId {
|
---|
10 |
|
---|
11 | /**
|
---|
12 | * Gets a unique id representing this object (the OSM server id for OSM objects)
|
---|
13 | *
|
---|
14 | * @return the id number
|
---|
15 | */
|
---|
16 | long getUniqueId();
|
---|
17 |
|
---|
18 | /**
|
---|
19 | * Gets the type of object represented by this object. Note that this should
|
---|
20 | * return the base primitive type ({@link OsmPrimitiveType#NODE},
|
---|
21 | * {@link OsmPrimitiveType#WAY}, and {@link OsmPrimitiveType#RELATION}).
|
---|
22 | *
|
---|
23 | * @return the object type
|
---|
24 | * @see Node
|
---|
25 | * @see Way
|
---|
26 | * @see Relation
|
---|
27 | */
|
---|
28 | OsmPrimitiveType getType();
|
---|
29 |
|
---|
30 | /**
|
---|
31 | * Replies true if this id represents a new primitive.
|
---|
32 | *
|
---|
33 | * @return true if this id represents a new primitive.
|
---|
34 | */
|
---|
35 | boolean isNew();
|
---|
36 |
|
---|
37 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.