Ejemplo n.º 1
0
 public void SetOrigin(Coordinates coords)
 {
     IsOriginSet = true;
     worldOrigin = coords.tileCenter(zoomLevel);
     Coordinates.setWorldOrigin(worldOrigin, worldScale);
     if (onOriginSet != null)
     {
         onOriginSet.Invoke(worldOrigin);
     }
 }
Ejemplo n.º 2
0
 void SetOrigin(Coordinates coords)
 {
     IsOriginSet            = true;
     CenterWorldCoordinates = coords.tileCenter(zoomLevel);
     demo_CenterWorldTile   = coords.tileCoordinates(zoomLevel);
     Coordinates.setWorldOrigin(CenterWorldCoordinates);
     if (onOriginSet != null)
     {
         onOriginSet.Invoke(CenterWorldCoordinates);
     }
 }
Ejemplo n.º 3
0
 public void SetOrigin(Coordinates coords)
 {
     Debug.Log("[Location Manager] set origin " + coords.toLatLongString());
     IsOriginSet = true;
     worldOrigin = coords.tileCenter(zoomLevel);
     Coordinates.setWorldOrigin(worldOrigin, worldScale);
     if (onOriginSet != null)
     {
         onOriginSet.Invoke(worldOrigin);
     }
 }
 void SetOrigin(Coordinates coords)
 {
     //			Debug.Log (coords.toLatLongString());
     IsOriginSet            = true;
     CenterWorldCoordinates = coords.tileCenter(zoomLevel);
     demo_CenterWorldTile   = coords.tileCoordinates(zoomLevel);
     Coordinates.setWorldOrigin(CenterWorldCoordinates);
     if (onOriginSet != null)
     {
         onOriginSet.Invoke(CenterWorldCoordinates);
     }
 }
Ejemplo n.º 5
0
 void RepositionMap(Coordinates currentLocation)           //This is called when the origin is set
 {
     transform.localPosition = centerCoordinates.tileCenter(locationManager.zoomLevel).convertCoordinateToVector();
 }