Skip to content

Commit

Permalink
update the Readme and depends on WKTParser 1.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthieu Casanova committed Mar 25, 2023
1 parent 8fdbccf commit 1d2504c
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 3 deletions.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,18 @@ import java.io.IOException;
public class Sample {
public static void main(String[] args) throws IOException {
JFrame frame = new JFrame();
MapView contentPane = new MapView(new DefaultTileServer(256,
MapView mapView = new MapView(new DefaultTileServer(256,
1,
18,
2,
new ImageCacheImpl("Waze", "cache", 1000),
"https://a.tile.openstreetmap.org/${z}/${x}/${y}.png",
"https://b.tile.openstreetmap.org/${z}/${x}/${y}.png",
"https://c.tile.openstreetmap.org/${z}/${x}/${y}.png")));
String wkt2 = "POLYGON((12.493134831869419 41.91785801245087,12.559739446127232 41.88796130217409,12.4316800589202 41.874669382200494,12.469788884603794 41.96101743431704,12.493134831869419 41.91785801245087))";
Polygon polygon = WKT.parseShape(wkt2);
PolygonMarker marker = new PolygonMarker(polygon, 5, new Color(1.0f, 0.0f, 0.0f, 0.3f), true);
mapView.addMarker(marker);
contentPane.setMouseLocationLabelVisible(false);
frame.setContentPane(contentPane);

Expand Down
29 changes: 27 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>com.kpouer</groupId>
<artifactId>k-mapview</artifactId>
<version>1.2.0-SNAPSHOT</version>
<version>1.2.0</version>
<name>${project.groupId}:${project.artifactId}</name>
<description>k-mapview is a Swing component showing map tiles (probably OSM but not only)</description>
<url>https://github.com/kpouer/KMapView</url>
Expand Down Expand Up @@ -94,6 +94,31 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.6.13</version>
<extensions>true</extensions>
<configuration>
<serverId>ossrh</serverId>
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
<autoReleaseAfterClose>true</autoReleaseAfterClose>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>3.0.1</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<dependencies>
Expand All @@ -112,7 +137,7 @@
<dependency>
<groupId>com.kpouer</groupId>
<artifactId>wktparser</artifactId>
<version>1.1.0</version>
<version>1.1.1</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
Expand Down

0 comments on commit 1d2504c

Please sign in to comment.