public PolylineContainer(Way way, Tile upperLeft, Tile lowerRight) { this.coordinatesAbsolute = null; this.coordinatesRelativeToTile = null; this.tags = way.tags; this.upperLeft = upperLeft; this.lowerRight = lowerRight; this.layer = way.layer; this.way = way; this.isClosedWay = LatLongUtils.isClosedWay(way.latLongs[0]); if (this.way.labelPosition != null) { this.center = MercatorProjection.getPixelAbsolute(this.way.labelPosition, this.upperLeft.mapSize); } }
public PolylineContainer(Way way, Tile upperLeft, Tile lowerRight) { this.coordinatesAbsolute = null; this.coordinatesRelativeToTile = null; this.tags = way.tags; this.upperLeft = upperLeft; this.lowerRight = lowerRight; this.layer = way.layer; this.way = way; this.isClosedWay = LatLongUtils.isClosedWay(way.latLongs[0]); if (this.way.labelPosition != null) { this.center = MercatorProjection.getPixelAbsolute(this.way.labelPosition, this.upperLeft.mapSize); } }
if (!LatLongUtils.isClosedWay(way.latLongs[0]) || !LatLongUtils.contains(way.latLongs[0], tapLatLong)) { continue;