Skip to content
Commits on Source (6)
......@@ -2,7 +2,7 @@ JMapViewer
(c) 2007, Tim Haussmann
(c) 2008-2012, Jan Peter Stotz
(c) 2009-2016, Dirk Stöcker
(c) 2009-2018, Dirk Stöcker
(c) 2009, Stefan Zeller
(c) 2009, Karl Guggisberg
(c) 2009, Dave Hansen
......@@ -10,7 +10,7 @@ JMapViewer
(c) 2010-2011, Michael Vigovsky
(c) 2011-2017, Paul Hartmann
(c) 2011-2016, Gleb Smirnoff
(c) 2011-2017, Vincent Privat
(c) 2011-2018, Vincent Privat
(c) 2011, Jason Huntley
(c) 2012-2016, Simon Legner
(c) 2012, Teemu Koskinen
......
jmapviewer (2.5+dfsg-1) unstable; urgency=medium
* New upstream release.
* Update copyright years for Dirk Stöcker & Vincent Privat.
* Bump Standards-Version to 4.1.3, no changes.
-- Bas Couwenberg <sebastic@debian.org> Sat, 27 Jan 2018 08:44:29 +0100
jmapviewer (2.4+dfsg-1) unstable; urgency=medium
* New upstream release.
......
......@@ -12,7 +12,7 @@ Build-Depends: debhelper (>= 9~),
docbook-xsl,
docbook-xml,
xsltproc
Standards-Version: 4.1.1
Standards-Version: 4.1.3
Vcs-Browser: https://anonscm.debian.org/cgit/pkg-grass/jmapviewer.git
Vcs-Git: https://anonscm.debian.org/git/pkg-grass/jmapviewer.git
Homepage: https://wiki.openstreetmap.org/wiki/JMapViewer
......
......@@ -17,12 +17,12 @@ Copyright: 2007, Tim Haussmann
2013, Matt Hoover
2013, Alexei Kasatkin
2013, Galo Higueras
2009-2016, Dirk Stöcker
2011-2016, Gleb Smirnoff
2012-2016, Simon Legner
2015-2016, Wiktor Niesiobędzki
2011-2017, Paul Hartmann
2011-2017, Vincent Privat
2009-2018, Dirk Stöcker
2011-2018, Vincent Privat
License: GPL-2+
Files: debian/*
......
......@@ -269,4 +269,11 @@ public interface TileSource extends Attributed {
*/
String getServerCRS();
/**
* Determines if this imagery supports "/dirty" mode (tile re-rendering).
* @return <code>true</code> if it supports "/dirty" mode (tile re-rendering)
*/
default boolean isModTileFeatures() {
return false;
}
}
......@@ -30,6 +30,7 @@ public abstract class AbstractTMSTileSource extends AbstractTileSource {
private final Map<String, Set<String>> noTileHeaders;
private final Map<String, Set<String>> noTileChecksums;
private final Map<String, String> metadataHeaders;
protected boolean modTileFeatures;
protected int tileSize;
/**
......@@ -47,6 +48,7 @@ public abstract class AbstractTMSTileSource extends AbstractTileSource {
this.noTileHeaders = info.getNoTileHeaders();
this.noTileChecksums = info.getNoTileChecksums();
this.metadataHeaders = info.getMetadataHeaders();
this.modTileFeatures = info.isModTileFeatures();
this.tileSize = info.getTileSize();
}
......@@ -235,6 +237,11 @@ public abstract class AbstractTMSTileSource extends AbstractTileSource {
return this.baseUrl + "/" + zoom + "/" + tilex + "/" + tiley;
}
@Override
public boolean isModTileFeatures() {
return modTileFeatures;
}
private static int getTileMax(int zoom) {
return (int) Math.pow(2.0, zoom) - 1;
}
......
......@@ -26,6 +26,7 @@ public class OsmTileSource {
*/
public Mapnik() {
super("Mapnik", PATTERN, "MAPNIK");
modTileFeatures = true;
}
@Override
......
......@@ -40,6 +40,9 @@ public class TileSourceInfo {
/** mapping &lt;header key, metadata key&gt; */
protected Map<String, String> metadataHeaders;
/** supports "/status" and "/dirty" mode (tile re-rendering) */
protected boolean modTileFeatures;
/**
* Create a TileSourceInfo class
*
......@@ -187,4 +190,20 @@ public class TileSourceInfo {
public final void setId(String id) {
this.id = id;
}
/**
* Determines if this imagery supports "/status" and "/dirty" mode (tile re-rendering).
* @return <code>true</code> if it supports "/status" and "/dirty" mode (tile re-rendering)
*/
public final boolean isModTileFeatures() {
return modTileFeatures;
}
/**
* Sets whether this imagery supports "/status" and "/dirty" mode (tile re-rendering).
* @param modTileFeatures <code>true</code> if it supports "/status" and "/dirty" mode (tile re-rendering)
*/
public final void setModTileFeatures(boolean modTileFeatures) {
this.modTileFeatures = modTileFeatures;
}
}