Skip to content

Commit

Permalink
update for latest josm
Browse files Browse the repository at this point in the history
  • Loading branch information
nkuehnel committed May 6, 2020
1 parent d42eff9 commit e946087
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,16 @@ dependencies {
sourceCompatibility = 1.8
archivesBaseName = "matsim"
josm {
josmCompileVersion = 15492
josmCompileVersion = 16392
manifest {
author = "Nico Kuehnel"
description = "Allows to edit and extract network information for the traffic simulation MATSim"
iconPath = "images/dialogs/matsim-scenario.png"
minJosmVersion = 15238
minJosmVersion = 16392
mainClass = "org.matsim.contrib.josm.MATSimPlugin"
pluginDependencies << 'jts' << 'javafx' << 'geotools'
website = new URL("http://www.matsim.org")
oldVersionDownloadLink 16239, 'v1.0.5', new URL('https://github.com/matsim-org/josm-matsim-plugin/releases/download/v1.0.5/matsim.jar')
oldVersionDownloadLink 15007, 'v1.0.3', new URL('https://github.com/matsim-org/josm-matsim-plugin/releases/download/v1.0.3/matsim.jar')
oldVersionDownloadLink 14418, 'v1.0.0', new URL('https://github.com/matsim-org/josm-matsim-plugin/releases/download/v1.0.0/matsim.jar')
oldVersionDownloadLink 14382, 'v0.9.8', new URL('https://github.com/matsim-org/josm-matsim-plugin/releases/download/v0.9.8/matsim.jar')
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/org/matsim/contrib/josm/MapRenderer.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import org.openstreetmap.josm.gui.mappaint.styleelement.TextLabel;
import org.openstreetmap.josm.gui.mappaint.styleelement.placement.OnLineStrategy;
import org.openstreetmap.josm.tools.ImageProvider;
import org.openstreetmap.josm.tools.RotationAngle;

import java.awt.*;
import java.awt.image.BufferedImage;
Expand Down Expand Up @@ -185,7 +186,7 @@ public String compose(IPrimitive prim) {
static class MATSimTextLabel extends TextLabel {

protected MATSimTextLabel(LabelCompositionStrategy labelCompositionStrategy, Font font, Color color, Float aFloat, Color color1) {
super(labelCompositionStrategy, font, color, aFloat, color1);
super(labelCompositionStrategy, font, RotationAngle.NO_ROTATION, color, aFloat, color1);
}
}

Expand Down

0 comments on commit e946087

Please sign in to comment.