public void UpdateCamera(LatLong centerLocation, double zoomLevel, Size mapSize, double pixelDensity) { _zoomLevel = zoomLevel; MapSize = mapSize; _pixelDensity = pixelDensity; _topLeftPoint = MapToolBox.LatLongToXyAtZoom(centerLocation, zoomLevel, _pixelDensity) - new Size(mapSize.Width / 2, mapSize.Height / 2); }
public Point this[LatLong location] => MapToolBox.LatLongToXyAtZoom(location, _zoomLevel, _pixelDensity) - new Size(_topLeftPoint.X, _topLeftPoint.Y);