public void SetOrigin(Coordinates coords) { IsOriginSet = true; worldOrigin = coords.tileCenter(zoomLevel); Coordinates.setWorldOrigin(worldOrigin, worldScale); if (onOriginSet != null) { onOriginSet.Invoke(worldOrigin); } }
void SetOrigin(Coordinates coords) { IsOriginSet = true; CenterWorldCoordinates = coords.tileCenter(zoomLevel); demo_CenterWorldTile = coords.tileCoordinates(zoomLevel); Coordinates.setWorldOrigin(CenterWorldCoordinates); if (onOriginSet != null) { onOriginSet.Invoke(CenterWorldCoordinates); } }
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); } }
void RepositionMap(Coordinates currentLocation) //This is called when the origin is set { transform.localPosition = centerCoordinates.tileCenter(locationManager.zoomLevel).convertCoordinateToVector(); }