Skip to content

Commit

Permalink
fixed image resolution and zoom compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
davidsingal committed Mar 5, 2024
1 parent 10c16b3 commit 2c5b6fc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions client/src/components/map/component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ export const Map: FC<CustomMapProps> = ({
{...otherMapProps}
{...localViewState}
attributionControl
minZoom={1}
>
{!!mapRef && children(mapRef.getMap())}
</ReactMapGL>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@
"sources": {
"esri": {
"type": "raster",
"tiles": ["https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}"],
"attribution": "Tiles &copy; Esri &mdash; Source: Esri, i-cubed, USDA, USGS, AEX, GeoEye, Getmapping, Aerogrid, IGN, IGP, UPR-EGP, and the GIS User Community"
"tiles": ["https://services.arcgisonline.com/arcgis/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}"],
"attribution": "Tiles &copy; Esri &mdash; Source: Esri, i-cubed, USDA, USGS, AEX, GeoEye, Getmapping, Aerogrid, IGN, IGP, UPR-EGP, and the GIS User Community",
"tileSize": 256
}
},
"sprite": "https://tiles.basemaps.cartocdn.com/gl/positron-gl-style/sprite",
Expand All @@ -28,8 +29,7 @@
{
"id": "esri-world-imagery",
"type": "raster",
"source": "esri",
"minzoom": 2
"source": "esri"
},
{
"id": "custom-layers",
Expand Down

0 comments on commit 2c5b6fc

Please sign in to comment.