Skip to content
GitLab
Explore
Sign in
Register
Commits on Source (6)
New upstream version 2.5+dfsg
· acbf7561
Bas Couwenberg
authored
Jan 27, 2018
acbf7561
Merge tag 'upstream/2.5+dfsg'
· f2a5652b
Bas Couwenberg
authored
Jan 27, 2018
Upstream version 2.5+dfsg
f2a5652b
New upstream release.
· 03c765b5
Bas Couwenberg
authored
Jan 27, 2018
03c765b5
Update copyright years for Dirk Stöcker & Vincent Privat.
· 29858462
Bas Couwenberg
authored
Jan 27, 2018
29858462
Bump Standards-Version to 4.1.3, no changes.
· 629fc255
Bas Couwenberg
authored
Jan 27, 2018
629fc255
Set distribution to unstable.
· 6697e753
Bas Couwenberg
authored
Jan 27, 2018
6697e753
Show whitespace changes
Inline
Side-by-side
Readme.txt
View file @
6697e753
...
...
@@ -2,7 +2,7 @@ JMapViewer
(c) 2007, Tim Haussmann
(c) 2008-2012, Jan Peter Stotz
(c) 2009-201
6
, Dirk Stöcker
(c) 2009-201
8
, 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-201
7
, Vincent Privat
(c) 2011-201
8
, Vincent Privat
(c) 2011, Jason Huntley
(c) 2012-2016, Simon Legner
(c) 2012, Teemu Koskinen
...
...
debian/changelog
View file @
6697e753
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.
...
...
debian/control
View file @
6697e753
...
...
@@ -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
...
...
debian/copyright
View file @
6697e753
...
...
@@ -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/*
...
...
src/org/openstreetmap/gui/jmapviewer/interfaces/TileSource.java
View file @
6697e753
...
...
@@ -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
;
}
}
src/org/openstreetmap/gui/jmapviewer/tilesources/AbstractTMSTileSource.java
View file @
6697e753
...
...
@@ -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
;
}
...
...
src/org/openstreetmap/gui/jmapviewer/tilesources/OsmTileSource.java
View file @
6697e753
...
...
@@ -26,6 +26,7 @@ public class OsmTileSource {
*/
public
Mapnik
()
{
super
(
"Mapnik"
,
PATTERN
,
"MAPNIK"
);
modTileFeatures
=
true
;
}
@Override
...
...
src/org/openstreetmap/gui/jmapviewer/tilesources/TileSourceInfo.java
View file @
6697e753
...
...
@@ -40,6 +40,9 @@ public class TileSourceInfo {
/** mapping <header key, metadata key> */
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
;
}
}