Skip to content

Commit

Permalink
bugfix bing quadkey url
Browse files Browse the repository at this point in the history
  • Loading branch information
jo-chemla committed Jul 19, 2024
1 parent 4880cc3 commit edb2074
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 0 additions & 4 deletions src/control-panel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,6 @@ wmsUrl = "<GDAL_WMS><Service name='TMS'><ServerUrl>http://mt.google.com/vt/lyrs=
a = `${titilerEndpoint}/cog/crop/${coords_str}&url=${encodeURIComponent(
wmsUrl
)}`;
console.log(a)
*/

// -----------------------------------------------------
Expand Down Expand Up @@ -319,7 +318,6 @@ function ControlPanel(props:any) {


const onMoveEnd_esriWaybackMarks = useCallback((e) => {
console.log('MOVEEND - CONTROLPANEL - event type:', e.type, e);
// event type: boxzoomstart
const map = e.target

Expand All @@ -335,11 +333,9 @@ function ControlPanel(props:any) {
map?.getZoom() || 0
).then(
(waybackItemsWithLocalChanges: any) => {
console.log('waybackItemsWithLocalChanges', waybackItemsWithLocalChanges)
// setEsriWaybackItemsChange(waybackItemsWithLocalChanges)
const parsedItemsWithLocalChanges = Object.values(waybackItemsWithLocalChanges).map((item: any) => {
const {itemURL, releaseDateLabel, releaseDatetime, releaseNum } = item
console.log(itemURL, releaseDateLabel, releaseDatetime, releaseNum)
return {
itemURL: itemURL.replace('{level}', '{z}').replace('{row}', '{y}').replace('{column}', '{y}'),
releaseDatetime: new Date(releaseDatetime),
Expand Down
4 changes: 2 additions & 2 deletions src/utilities.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,8 @@ const basemapsTmsSources: any = {
},
// "http://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}.jpg",
[BasemapsIds.Bing]: {
// url: "https://t.ssl.ak.tiles.virtualearth.net/tiles/a{quadkey}.jpeg?g=13578&n=z&prx=1",
url: "http://a0.ortho.tiles.virtualearth.net/tiles/a{quadkey}.jpeg?g=90",
// url: "http://a0.ortho.tiles.virtualearth.net/tiles/a{quadkey}.jpeg?g=90",
url: 'https://t.ssl.ak.tiles.virtualearth.net/tiles/a{quadkey}.jpeg?g=14603&n=z&prx=1',
maxzoom: 21,
}, // bing uses quadkey
[BasemapsIds.Mapbox]: {
Expand Down

0 comments on commit edb2074

Please sign in to comment.