20.06.2011, 20:58
(20.06.2011, 20:42)IlmariKrebs Wrote: Häng gerade fest. V2-> V3 bietet doch so manche Überraschung.
Tja und ich ändere Dir unter dem Hintern den master-Branch... einige Deiner Änderungen sind nun drin, siehe mein anderes Posting.
Ich hatte so meine liebe Mühe mit
Code:
function getThresholdForPixel(map, latLng, pixel) {
var worldCoordinate = map.getProjection().fromLatLngToPoint(latLng);
var scale = Math.pow(2, map.getZoom());
worldCoordinate.x = worldCoordinate.x + pixel / scale;
var pixelAway = map.getProjection().fromPointToLatLng(worldCoordinate);
return google.maps.geometry.spherical.computeDistanceBetween(latLng, pixelAway);
}
--
Christian
Christian
