style(examples): prettier examples

This commit is contained in:
yuqi.pyq 2019-11-26 19:17:39 +08:00
parent 648357fe8e
commit 09436e9db3
52 changed files with 92 additions and 92 deletions

View File

@ -8,7 +8,7 @@ const scene = new Scene({
pitch: 0, pitch: 0,
center: [ 107.77791556935472, 35.443286920228644 ], center: [ 107.77791556935472, 35.443286920228644 ],
zoom: 2.9142882493605033 zoom: 2.9142882493605033
}), })
}); });
fetch('https://gw.alipayobjects.com/os/rmsportal/UEXQMifxtkQlYfChpPwT.txt') fetch('https://gw.alipayobjects.com/os/rmsportal/UEXQMifxtkQlYfChpPwT.txt')

View File

@ -8,8 +8,8 @@ const scene = new Scene({
center: [ 103.83735604457024, 1.360253881403068 ], center: [ 103.83735604457024, 1.360253881403068 ],
pitch: 4.00000000000001, pitch: 4.00000000000001,
zoom: 10.210275860702593, zoom: 10.210275860702593,
rotation: 19.313180925794313, rotation: 19.313180925794313
}), })
}); });
fetch( fetch(

View File

@ -7,8 +7,8 @@ const scene = new Scene({
pitch: 35.210526315789465, pitch: 35.210526315789465,
style: 'dark', style: 'dark',
center: [ 104.288144, 31.239692 ], center: [ 104.288144, 31.239692 ],
zoom: 4.4, zoom: 4.4
}), })
}); });
fetch('https://gw.alipayobjects.com/os/rmsportal/oVTMqfzuuRFKiDwhPSFL.json') fetch('https://gw.alipayobjects.com/os/rmsportal/oVTMqfzuuRFKiDwhPSFL.json')

View File

@ -7,8 +7,8 @@ const scene = new Scene({
style: 'dark', style: 'dark',
pitch: 43, pitch: 43,
center: [ 120.13383079335335, 29.651873105004427 ], center: [ 120.13383079335335, 29.651873105004427 ],
zoom: 7.068989519212174, zoom: 7.068989519212174
}), })
}); });
fetch( fetch(

View File

@ -6,8 +6,8 @@ const scene = new Scene({
map: new AMap({ map: new AMap({
center: [ 121.417463, 31.215175 ], center: [ 121.417463, 31.215175 ],
pitch: 0, pitch: 0,
zoom: 11, zoom: 11
}), })
}); });
fetch('https://gw.alipayobjects.com/os/rmsportal/BElVQFEFvpAKzddxFZxJ.txt') fetch('https://gw.alipayobjects.com/os/rmsportal/BElVQFEFvpAKzddxFZxJ.txt')

View File

@ -7,8 +7,8 @@ const scene = new Scene({
pitch: 64.88, pitch: 64.88,
style: 'dark', style: 'dark',
center: [ 114.060288, 22.53684 ], center: [ 114.060288, 22.53684 ],
zoom: 15.63, zoom: 15.63
}), })
}); });
fetch( fetch(

View File

@ -7,8 +7,8 @@ const scene = new Scene({
style: 'light', style: 'light',
pitch: 0, pitch: 0,
center: [ 107.054293, 35.246265 ], center: [ 107.054293, 35.246265 ],
zoom: 4.056, zoom: 4.056
}), })
}); });
fetch( fetch(

View File

@ -7,8 +7,8 @@ const scene = new Scene({
style: 'dark', style: 'dark',
pitch: 0, pitch: 0,
center: [ 110.097892, 33.853662 ], center: [ 110.097892, 33.853662 ],
zoom: 4.056, zoom: 4.056
}), })
}); });
fetch( fetch(

View File

@ -7,8 +7,8 @@ const scene = new Scene({
style: 'light', style: 'light',
pitch: 0, pitch: 0,
center: [ 110.097892, 33.853662 ], center: [ 110.097892, 33.853662 ],
zoom: 4.056, zoom: 4.056
}), })
}); });
fetch( fetch(

View File

@ -7,8 +7,8 @@ const scene = new Scene({
style: 'dark', style: 'dark',
pitch: 0, pitch: 0,
center: [ 110.097892, 33.853662 ], center: [ 110.097892, 33.853662 ],
zoom: 4.056, zoom: 4.056
}), })
}); });
fetch( fetch(

View File

@ -7,8 +7,8 @@ const scene = new Scene({
style: 'dark', style: 'dark',
pitch: 0, pitch: 0,
center: [ 127.5671666579043, 7.445038892195569 ], center: [ 127.5671666579043, 7.445038892195569 ],
zoom: 2.632456779444394, zoom: 2.632456779444394
}), })
}); });
fetch( fetch(

View File

@ -8,8 +8,8 @@ const scene = new Scene({
pitch: 58.5, pitch: 58.5,
center: [ 111.8759, 30.6942 ], center: [ 111.8759, 30.6942 ],
rotation: 0.519, rotation: 0.519,
zoom: 3.6116, zoom: 3.6116
}), })
}); });
fetch( fetch(

View File

@ -8,7 +8,7 @@ const scene = new Scene({
pitch: 0, pitch: 0,
center: [ 127.5671666579043, 7.445038892195569 ], center: [ 127.5671666579043, 7.445038892195569 ],
zoom: 2.632456779444394 zoom: 2.632456779444394
}), })
}); });
fetch( fetch(

View File

@ -7,8 +7,8 @@ const scene = new Scene({
style: 'dark', style: 'dark',
pitch: 47.49999999999995, pitch: 47.49999999999995,
center: [ 112.50447776627743, 30.830476390931125 ], center: [ 112.50447776627743, 30.830476390931125 ],
zoom: 3.9879693680088626, zoom: 3.9879693680088626
}), })
}); });
fetch( fetch(

View File

@ -8,8 +8,8 @@ const scene = new Scene({
pitch: 56.499, pitch: 56.499,
center: [ 114.07737552216226, 22.542656745583486 ], center: [ 114.07737552216226, 22.542656745583486 ],
rotation: 39.19, rotation: 39.19,
zoom: 12.47985, zoom: 12.47985
}), })
}); });
fetch( fetch(

View File

@ -7,8 +7,8 @@ const scene = new Scene({
style: 'dark', style: 'dark',
pitch: 43, pitch: 43,
center: [ 120.13383079335335, 29.651873105004427 ], center: [ 120.13383079335335, 29.651873105004427 ],
zoom: 7.068989519212174, zoom: 7.068989519212174
}), })
}); });
fetch( fetch(

View File

@ -7,8 +7,8 @@ const scene = new Scene({
style: 'light', style: 'light',
pitch: 0, pitch: 0,
center: [ 104.995156, 31.450658 ], center: [ 104.995156, 31.450658 ],
zoom: 3.79, zoom: 3.79
}), })
}); });
fetch( fetch(

View File

@ -7,8 +7,8 @@ const scene = new Scene({
pitch: 0, pitch: 0,
style: 'dark', style: 'dark',
center: [ 0, 23.107329 ], center: [ 0, 23.107329 ],
zoom: 0, zoom: 0
}), })
}); });
fetch( fetch(

View File

@ -7,8 +7,8 @@ const scene = new Scene({
pitch: 0, pitch: 0,
style: 'dark', style: 'dark',
center: [ 107.77791556935472, 35.443286920228644 ], center: [ 107.77791556935472, 35.443286920228644 ],
zoom: 2.9142882493605033, zoom: 2.9142882493605033
}), })
}); });
fetch('https://gw.alipayobjects.com/os/rmsportal/UEXQMifxtkQlYfChpPwT.txt') fetch('https://gw.alipayobjects.com/os/rmsportal/UEXQMifxtkQlYfChpPwT.txt')
.then(res => res.text()) .then(res => res.text())

View File

@ -8,8 +8,8 @@ const scene = new Scene({
type: 'mapbox', type: 'mapbox',
style: 'light', style: 'light',
center: [ -74.06967, 40.720399 ], center: [ -74.06967, 40.720399 ],
zoom: 12.45977, zoom: 12.45977
}), })
}); });
fetch( fetch(
'https://gw.alipayobjects.com/os/basement_prod/bd33a685-a17e-4686-bc79-b0e6a89fd950.csv' 'https://gw.alipayobjects.com/os/basement_prod/bd33a685-a17e-4686-bc79-b0e6a89fd950.csv'

View File

@ -8,8 +8,8 @@ const scene = new Scene({
style: 'dark', style: 'dark',
center: [ 104.34278, 41.12554 ], center: [ 104.34278, 41.12554 ],
zoom: 2.94888, zoom: 2.94888,
rotation: 42.3999, rotation: 42.3999
}), })
}); });
fetch('https://gw.alipayobjects.com/os/rmsportal/UEXQMifxtkQlYfChpPwT.txt') fetch('https://gw.alipayobjects.com/os/rmsportal/UEXQMifxtkQlYfChpPwT.txt')

View File

@ -8,7 +8,7 @@ const scene = new Scene({
style: 'light', style: 'light',
center: [ 102.600579, 23.114887 ], center: [ 102.600579, 23.114887 ],
zoom: 14.66 zoom: 14.66
}), })
}); });
fetch('https://gw.alipayobjects.com/os/rmsportal/ZVfOvhVCzwBkISNsuKCc.json') fetch('https://gw.alipayobjects.com/os/rmsportal/ZVfOvhVCzwBkISNsuKCc.json')

View File

@ -7,8 +7,8 @@ const scene = new Scene({
pitch: 26.842105263157915, pitch: 26.842105263157915,
style: 'dark', style: 'dark',
center: [ 102.599436, 23.116371 ], center: [ 102.599436, 23.116371 ],
zoom: 14.78, zoom: 14.78
}), })
}); });
fetch('https://gw.alipayobjects.com/os/rmsportal/ZVfOvhVCzwBkISNsuKCc.json') fetch('https://gw.alipayobjects.com/os/rmsportal/ZVfOvhVCzwBkISNsuKCc.json')

View File

@ -7,8 +7,8 @@ const scene = new Scene({
pitch: 0, pitch: 0,
style: 'light', style: 'light',
center: [ 104.117492, 36.492696 ], center: [ 104.117492, 36.492696 ],
zoom: 3.89, zoom: 3.89
}), })
}); });
fetch( fetch(

View File

@ -8,7 +8,7 @@ const scene = new Scene({
style: 'light', style: 'light',
center: [ 104.117492, 36.492696 ], center: [ 104.117492, 36.492696 ],
zoom: 3.89 zoom: 3.89
}), })
}); });
fetch( fetch(

View File

@ -8,8 +8,8 @@ const scene = new Scene({
pitch: 4.00000000000001, pitch: 4.00000000000001,
zoom: 10.210275860702593, zoom: 10.210275860702593,
rotation: 19.313180925794313, rotation: 19.313180925794313,
style: 'dark', style: 'dark'
}), })
}); });
fetch( fetch(

View File

@ -8,8 +8,8 @@ const scene = new Scene({
pitch: 4.00000000000001, pitch: 4.00000000000001,
zoom: 10.210275860702593, zoom: 10.210275860702593,
rotation: 19.313180925794313, rotation: 19.313180925794313,
style: 'light', style: 'light'
}), })
}); });
fetch( fetch(

View File

@ -8,8 +8,8 @@ const scene = new Scene({
pitch: 0, pitch: 0,
zoom: 10, zoom: 10,
rotation: 0, rotation: 0,
style: 'dark', style: 'dark'
}), })
}); });
fetch( fetch(

View File

@ -8,8 +8,8 @@ const scene = new Scene({
pitch: 0, pitch: 0,
zoom: 10, zoom: 10,
rotation: 0, rotation: 0,
style: 'light', style: 'light'
}), })
}); });
fetch( fetch(

View File

@ -8,8 +8,8 @@ const scene = new Scene({
style: 'light', style: 'light',
center: [ 121.435159, 31.256971 ], center: [ 121.435159, 31.256971 ],
zoom: 14.89, zoom: 14.89,
minZoom: 10, minZoom: 10
}), })
}); });
fetch( fetch(
'https://gw.alipayobjects.com/os/basement_prod/893d1d5f-11d9-45f3-8322-ee9140d288ae.json' 'https://gw.alipayobjects.com/os/basement_prod/893d1d5f-11d9-45f3-8322-ee9140d288ae.json'

View File

@ -9,8 +9,8 @@ const scene = new Scene({
style: 'light', style: 'light',
center: [ 140.067171, 36.26186 ], center: [ 140.067171, 36.26186 ],
zoom: 5.32, zoom: 5.32,
maxZoom: 10, maxZoom: 10
}), })
}); });
fetch( fetch(

View File

@ -7,8 +7,8 @@ const scene = new Scene({
style: 'light', style: 'light',
center: [ -121.24357, 37.58264 ], center: [ -121.24357, 37.58264 ],
pitch: 0, pitch: 0,
zoom: 6.45, zoom: 6.45
}), })
}); });
fetch( fetch(

View File

@ -8,8 +8,8 @@ const scene = new Scene({
style: 'dark', style: 'dark',
center: [ 96.99215001469588, 29.281597225674773 ], center: [ 96.99215001469588, 29.281597225674773 ],
zoom: 2.194613775109773, zoom: 2.194613775109773,
maxZoom: 10, maxZoom: 10
}), })
}); });
fetch( fetch(
'https://gw.alipayobjects.com/os/basement_prod/337ddbb7-aa3f-4679-ab60-d64359241955.json' 'https://gw.alipayobjects.com/os/basement_prod/337ddbb7-aa3f-4679-ab60-d64359241955.json'

View File

@ -8,8 +8,8 @@ const scene = new Scene({
style: 'light', style: 'light',
center: [ 2.6125016864608597, 49.359131 ], center: [ 2.6125016864608597, 49.359131 ],
pitch: 0, pitch: 0,
zoom: 4.19, zoom: 4.19
}), })
}); });
scene.render(); scene.render();
scene.on('loaded', () => { scene.on('loaded', () => {

View File

@ -8,8 +8,8 @@ const scene = new Scene({
style: 'light', style: 'light',
center: [ 2.6125016864608597, 49.359131 ], center: [ 2.6125016864608597, 49.359131 ],
pitch: 0, pitch: 0,
zoom: 4.19, zoom: 4.19
}), })
}); });
scene.render(); scene.render();
scene.on('loaded', () => { scene.on('loaded', () => {

View File

@ -42,7 +42,7 @@ const scene = new Scene({
style: 'dark', style: 'dark',
center: [ 52.21496184144132, 24.121126851768906 ], center: [ 52.21496184144132, 24.121126851768906 ],
zoom: 3.802 zoom: 3.802
}), })
}); });
scene.render(); scene.render();
scene.on('loaded', () => { scene.on('loaded', () => {

View File

@ -9,7 +9,7 @@ const scene = new Scene({
center: [ 121.400257, 31.25287 ], center: [ 121.400257, 31.25287 ],
zoom: 14.55, zoom: 14.55,
rotation: 134.9507 rotation: 134.9507
}), })
}); });
fetch( fetch(

View File

@ -8,8 +8,8 @@ const scene = new Scene({
style: 'light', style: 'light',
center: [ 121.412224, 31.26192438 ], center: [ 121.412224, 31.26192438 ],
zoom: 13.13438, zoom: 13.13438,
rotation: 35.97133, rotation: 35.97133
}), })
}); });
fetch( fetch(

View File

@ -7,8 +7,8 @@ const scene = new Scene({
pitch: 35.210526315789465, pitch: 35.210526315789465,
style: 'dark', style: 'dark',
center: [ 104.288144, 31.239692 ], center: [ 104.288144, 31.239692 ],
zoom: 4.4, zoom: 4.4
}), })
}); });
fetch('https://gw.alipayobjects.com/os/rmsportal/oVTMqfzuuRFKiDwhPSFL.json') fetch('https://gw.alipayobjects.com/os/rmsportal/oVTMqfzuuRFKiDwhPSFL.json')

View File

@ -9,7 +9,7 @@ const scene = new Scene({
center: [ 104.026043, 31.847 ], center: [ 104.026043, 31.847 ],
rotation: -0.76, rotation: -0.76,
zoom: 4.48 zoom: 4.48
}), })
}); });
fetch('https://gw.alipayobjects.com/os/rmsportal/oVTMqfzuuRFKiDwhPSFL.json') fetch('https://gw.alipayobjects.com/os/rmsportal/oVTMqfzuuRFKiDwhPSFL.json')

View File

@ -8,7 +8,7 @@ const scene = new Scene({
style: 'light', style: 'light',
center: [ 121.434765, 31.256735 ], center: [ 121.434765, 31.256735 ],
zoom: 14.83 zoom: 14.83
}), })
}); });
fetch( fetch(

View File

@ -8,7 +8,7 @@ const scene = new Scene({
style: 'light', style: 'light',
center: [ 116.276227, 35.256776 ], center: [ 116.276227, 35.256776 ],
zoom: 6 zoom: 6
}), })
}); });
fetch( fetch(

View File

@ -8,8 +8,8 @@ const scene = new Scene({
center: [ 120.5969, 29.7918 ], center: [ 120.5969, 29.7918 ],
pitch: 35, pitch: 35,
zoom: 7, zoom: 7,
rotation: 4.183582, rotation: 4.183582
}), })
}); });
scene.addImage( scene.addImage(
'00', '00',

View File

@ -7,8 +7,8 @@ const scene = new Scene({
style: 'light', style: 'light',
center: [ 105.790327, 36.495636 ], center: [ 105.790327, 36.495636 ],
pitch: 0, pitch: 0,
zoom: 4, zoom: 4
}), })
}); });
scene.render(); scene.render();
scene.on('loaded', () => { scene.on('loaded', () => {

View File

@ -7,8 +7,8 @@ const scene = new Scene({
style: 'dark', style: 'dark',
center: [ 121.417463, 31.215175 ], center: [ 121.417463, 31.215175 ],
pitch: 0, pitch: 0,
zoom: 11, zoom: 11
}), })
}); });
fetch('https://gw.alipayobjects.com/os/rmsportal/BElVQFEFvpAKzddxFZxJ.txt') fetch('https://gw.alipayobjects.com/os/rmsportal/BElVQFEFvpAKzddxFZxJ.txt')

View File

@ -7,8 +7,8 @@ const scene = new Scene({
pitch: 64.88, pitch: 64.88,
style: 'dark', style: 'dark',
center: [ 114.060288, 22.53684 ], center: [ 114.060288, 22.53684 ],
zoom: 15.63, zoom: 15.63
}), })
}); });
fetch( fetch(

View File

@ -8,7 +8,7 @@ const scene = new Scene({
style: 'dark', style: 'dark',
center: [ 114.050008, 22.529272 ], center: [ 114.050008, 22.529272 ],
zoom: 14.1 zoom: 14.1
}), })
}); });
fetch( fetch(

View File

@ -8,7 +8,7 @@ const scene = new Scene({
style: 'light', style: 'light',
center: [ 116.368652, 39.93866 ], center: [ 116.368652, 39.93866 ],
zoom: 10.07 zoom: 10.07
}), })
}); });
fetch( fetch(

View File

@ -8,7 +8,7 @@ const scene = new Scene({
style: 'light', style: 'light',
center: [ 107.042225, 37.66565 ], center: [ 107.042225, 37.66565 ],
zoom: 3.87 zoom: 3.87
}), })
}); });
fetch('https://gw.alipayobjects.com/os/rmsportal/JToMOWvicvJOISZFCkEI.json') fetch('https://gw.alipayobjects.com/os/rmsportal/JToMOWvicvJOISZFCkEI.json')

View File

@ -7,8 +7,8 @@ const scene = new Scene({
pitch: 0, pitch: 0,
style: 'light', style: 'light',
center: [ 3.438, 40.16797 ], center: [ 3.438, 40.16797 ],
zoom: 0.51329, zoom: 0.51329
}), })
}); });
Promise.all([ Promise.all([
fetch( fetch(

View File

@ -7,8 +7,8 @@ const scene = new Scene({
pitch: 0, pitch: 0,
style: 'light', style: 'light',
center: [ 121.268, 30.3628 ], center: [ 121.268, 30.3628 ],
zoom: 13, zoom: 13
}), })
}); });
const layer = new ImageLayer({}); const layer = new ImageLayer({});

View File

@ -7,8 +7,8 @@ const scene = new Scene({
pitch: 0, pitch: 0,
style: 'dark', style: 'dark',
center: [ 115.5268, 34.3628 ], center: [ 115.5268, 34.3628 ],
zoom: 7, zoom: 7
}), })
}); });
const layer = new ImageLayer({}); const layer = new ImageLayer({});