Set default position to Bremen (Same position as the screenshots in README)

This commit is contained in:
Izumi Kawashima 2022-11-23 15:51:43 +09:00
parent 14d67da9fa
commit 43b52de5d8
2 changed files with 7 additions and 7 deletions

View File

@ -19,10 +19,10 @@
<script type="text/javascript"> <script type="text/javascript">
var mapconfig = { var mapconfig = {
tilesource : "oscimap4", tilesource : "oscimap4",
tileurl : "http://opensciencemap.org/tiles/vtm", tileurl : "https://oscim.ogiqvo.com/tiles/vtm",
zoom : 2, zoom : 17,
latitude : 0.0, latitude : 53.075,
longitude : 0.0, longitude : 8.806,
tileSize : 400 tileSize : 400
} }
//background : "naturalearth" //background : "naturalearth"

View File

@ -27,15 +27,15 @@ public class MapConfig extends JavaScriptObject {
}-*/; }-*/;
public final native double getLatitude() /*-{ public final native double getLatitude() /*-{
return this.latitude || 0; return this.latitude || 53.075;
}-*/; }-*/;
public final native double getLongitude() /*-{ public final native double getLongitude() /*-{
return this.longitude || 0; return this.longitude || 8.806;
}-*/; }-*/;
public final native int getZoom() /*-{ public final native int getZoom() /*-{
return this.zoom || 2; return this.zoom || 17;
}-*/; }-*/;
public final native String getTileSource() /*-{ public final native String getTileSource() /*-{