fix:修改 设置地图不显示的问题
This commit is contained in:
@@ -81,7 +81,7 @@ export default {
|
|||||||
const z = urlParams[urlParams.length - 3]
|
const z = urlParams[urlParams.length - 3]
|
||||||
const x = urlParams[urlParams.length - 2]
|
const x = urlParams[urlParams.length - 2]
|
||||||
const y = urlParams[urlParams.length - 1]
|
const y = urlParams[urlParams.length - 1]
|
||||||
const newUrl1 = `nzMap://static/Titles/${z}/${x}/${y}.pbf`
|
const newUrl1 = `nzMap:///static/Titles/${z}/${x}/${y}.pbf`
|
||||||
return {
|
return {
|
||||||
url: newUrl1,
|
url: newUrl1,
|
||||||
credentials: 'include',
|
credentials: 'include',
|
||||||
@@ -91,7 +91,7 @@ export default {
|
|||||||
}
|
}
|
||||||
if (resourceType === 'SpriteJSON') {
|
if (resourceType === 'SpriteJSON') {
|
||||||
return {
|
return {
|
||||||
url: 'nzMap://static/Titles/sprite.json',
|
url: 'nzMap:///static/Titles/sprite.json',
|
||||||
credentials: 'include',
|
credentials: 'include',
|
||||||
method: 'GET'
|
method: 'GET'
|
||||||
// Include cookies for cross-origin requests
|
// Include cookies for cross-origin requests
|
||||||
@@ -99,7 +99,7 @@ export default {
|
|||||||
}
|
}
|
||||||
if (resourceType === 'SpriteImage') {
|
if (resourceType === 'SpriteImage') {
|
||||||
return {
|
return {
|
||||||
url: 'nzMap://static/Titles/sprite.png',
|
url: 'nzMap:///static/Titles/sprite.png',
|
||||||
credentials: 'include',
|
credentials: 'include',
|
||||||
method: 'GET'
|
method: 'GET'
|
||||||
// Include cookies for cross-origin requests
|
// Include cookies for cross-origin requests
|
||||||
|
|||||||
Reference in New Issue
Block a user