... the user friendly GPS tool


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Selektion von Wegepunkten
#33
(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);
   }
und glaube nicht, daß es das tut, was es bei Dir in der V2-Variante tat.
--
Christian
Reply


Messages In This Thread
Selektion von Wegepunkten - by IlmariKrebs - 26.05.2011, 13:10
RE: Selektion von Wegepunkten - by kumo - 26.05.2011, 14:38
RE: Selektion von Wegepunkten - by kumo - 19.06.2011, 10:53
RE: Selektion von Wegepunkten - by kumo - 20.06.2011, 21:58
RE: Selektion von Wegepunkten - by jschoch - 18.06.2011, 15:53
RE: Selektion von Wegepunkten - by exego - 19.06.2011, 21:28
RE: Selektion von Wegepunkten - by kumo - 20.06.2011, 00:48
RE: Selektion von Wegepunkten - by routeconverter - 20.06.2011, 20:58
RE: Selektion von Wegepunkten - by leound - 21.06.2011, 19:26
RE: Selektion von Wegepunkten - by leound - 27.06.2011, 22:05
RE: Selektion von Wegepunkten - by leound - 28.06.2011, 21:46
RE: Selektion von Wegepunkten - by onurbi - 14.07.2011, 21:13
RE: Selektion von Wegepunkten - by onurbi - 15.07.2011, 18:34

Forum Jump:


Users browsing this thread: 2 Guest(s)