Compare commits

...

2 Commits

Author SHA1 Message Date
mikeprimm bf2ea7d1e3 Fix zoom so that markers are placed properly 2011-05-14 12:34:36 +02:00
FrozenCow e25c9a82b3 Changed version to 0.16.1 2011-05-14 12:33:03 +02:00
3 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -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 -1
View File
@@ -1,6 +1,6 @@
name: dynmap
main: org.dynmap.DynmapPlugin
version: 0.16
version: 0.16.1
commands:
dynmap:
description: Controls Dynmap.
+5 -5
View File
@@ -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);
}
});