Skip to content
Snippets Groups Projects

feat: add map API communication

Merged Adrian Orłów requested to merge feature/MIN-103-map-api-comm into development
6 unresolved threads
27 files
+ 774
228
Compare changes
  • Side-by-side
  • Inline
Files
27
import { BASE_MAP_IMAGES_URL } from '@/constants';
export const getMapTileUrl = ({
projectDirectory,
currentBackgroundImagePath,
}: {
projectDirectory?: string;
currentBackgroundImagePath: string;
}): string => {
if (!projectDirectory) {
return '';
}
return `${BASE_MAP_IMAGES_URL}/map_images/${projectDirectory}/${currentBackgroundImagePath}/{z}/{x}/{y}.PNG`;
};
Loading