mirror of
https://github.com/encounter/dynmap.git
synced 2026-03-30 11:08:39 -07:00
Compare commits
2 Commits
recommended
...
0.16.1
| Author | SHA1 | Date | |
|---|---|---|---|
| bf2ea7d1e3 | |||
| e25c9a82b3 |
@@ -2,7 +2,7 @@
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>org.dynmap</groupId>
|
||||
<artifactId>dynmap</artifactId>
|
||||
<version>0.16</version>
|
||||
<version>0.16.1</version>
|
||||
<name>dynmap</name>
|
||||
<properties>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
name: dynmap
|
||||
main: org.dynmap.DynmapPlugin
|
||||
version: 0.16
|
||||
version: 0.16.1
|
||||
commands:
|
||||
dynmap:
|
||||
description: Controls Dynmap.
|
||||
|
||||
+5
-5
@@ -1,13 +1,13 @@
|
||||
function FlatProjection() {}
|
||||
FlatProjection.prototype = {
|
||||
fromLatLngToPoint: function(latLng) {
|
||||
return new google.maps.Point(latLng.lat()*128.0, latLng.lng()*128.0);
|
||||
return new google.maps.Point(latLng.lat()*config.tileWidth, latLng.lng()*config.tileHeight);
|
||||
},
|
||||
fromPointToLatLng: function(point) {
|
||||
return new google.maps.LatLng(point.x/128.0, point.y/128.0);
|
||||
return new google.maps.LatLng(point.x/config.tileWidth, point.y/config.tileHeight);
|
||||
},
|
||||
fromWorldToLatLng: function(x, y, z) {
|
||||
return new google.maps.LatLng(-z / 128.0, x / 128.0);
|
||||
return new google.maps.LatLng(-z / config.tileWidth, x / config.tileHeight);
|
||||
}
|
||||
};
|
||||
|
||||
@@ -27,7 +27,7 @@ FlatMapType.prototype = $.extend(new DynMapType(), {
|
||||
|
||||
tileName = this.prefix + '_128_' + coord.x + '_' + coord.y + '.png';
|
||||
|
||||
imgSize = Math.pow(2, 6+zoom);
|
||||
imgSize = Math.pow(2, 7+zoom);
|
||||
var tile = $('<div/>')
|
||||
.addClass('tile')
|
||||
.css({
|
||||
@@ -51,7 +51,7 @@ FlatMapType.prototype = $.extend(new DynMapType(), {
|
||||
},
|
||||
updateTileSize: function(zoom) {
|
||||
var size;
|
||||
size = Math.pow(2, 6+zoom);
|
||||
size = Math.pow(2, 7+zoom);
|
||||
this.tileSize = new google.maps.Size(size, size);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user