Separate Client Portal & Dashboard
This commit is contained in:
182
frontend/dashboard/src/_mock/map/cities.ts
Normal file
182
frontend/dashboard/src/_mock/map/cities.ts
Normal file
@@ -0,0 +1,182 @@
|
||||
export const cities = [
|
||||
{
|
||||
city: 'New York',
|
||||
population: '8,175,133',
|
||||
image:
|
||||
'http://upload.wikimedia.org/wikipedia/commons/thumb/b/b9/Above_Gotham.jpg/240px-Above_Gotham.jpg',
|
||||
state: 'New York',
|
||||
latitude: 40.6643,
|
||||
longitude: -73.9385
|
||||
},
|
||||
{
|
||||
city: 'Los Angeles',
|
||||
population: '3,792,621',
|
||||
image:
|
||||
'http://upload.wikimedia.org/wikipedia/commons/thumb/5/57/LA_Skyline_Mountains2.jpg/240px-LA_Skyline_Mountains2.jpg',
|
||||
state: 'California',
|
||||
latitude: 34.0194,
|
||||
longitude: -118.4108
|
||||
},
|
||||
{
|
||||
city: 'Chicago',
|
||||
population: '2,695,598',
|
||||
image:
|
||||
'http://upload.wikimedia.org/wikipedia/commons/thumb/8/85/2008-06-10_3000x1000_chicago_skyline.jpg/240px-2008-06-10_3000x1000_chicago_skyline.jpg',
|
||||
state: 'Illinois',
|
||||
latitude: 41.8376,
|
||||
longitude: -87.6818
|
||||
},
|
||||
{
|
||||
city: 'Houston',
|
||||
population: '2,100,263',
|
||||
image:
|
||||
'http://upload.wikimedia.org/wikipedia/commons/thumb/6/60/Aerial_views_of_the_Houston%2C_Texas%2C_28005u.jpg/240px-Aerial_views_of_the_Houston%2C_Texas%2C_28005u.jpg',
|
||||
state: 'Texas',
|
||||
latitude: 29.7805,
|
||||
longitude: -95.3863
|
||||
},
|
||||
{
|
||||
city: 'Phoenix',
|
||||
population: '1,445,632',
|
||||
image:
|
||||
'http://upload.wikimedia.org/wikipedia/commons/thumb/b/b9/Downtown_Phoenix_Aerial_Looking_Northeast.jpg/207px-Downtown_Phoenix_Aerial_Looking_Northeast.jpg',
|
||||
state: 'Arizona',
|
||||
latitude: 33.5722,
|
||||
longitude: -112.088
|
||||
},
|
||||
{
|
||||
city: 'Philadelphia',
|
||||
population: '1,526,006',
|
||||
image:
|
||||
'http://upload.wikimedia.org/wikipedia/commons/thumb/4/4d/Philly_skyline.jpg/240px-Philly_skyline.jpg',
|
||||
state: 'Pennsylvania',
|
||||
latitude: 40.0094,
|
||||
longitude: -75.1333
|
||||
},
|
||||
{
|
||||
city: 'San Antonio',
|
||||
population: '1,327,407',
|
||||
image:
|
||||
'http://upload.wikimedia.org/wikipedia/commons/thumb/f/ff/Downtown_San_Antonio_View.JPG/240px-Downtown_San_Antonio_View.JPG',
|
||||
state: 'Texas',
|
||||
latitude: 29.4724,
|
||||
longitude: -98.5251
|
||||
},
|
||||
{
|
||||
city: 'San Diego',
|
||||
population: '1,307,402',
|
||||
image:
|
||||
'http://upload.wikimedia.org/wikipedia/commons/thumb/5/53/US_Navy_110604-N-NS602-574_Navy_and_Marine_Corps_personnel%2C_along_with_community_leaders_from_the_greater_San_Diego_area_come_together_to_commemora.jpg/240px-US_Navy_110604-N-NS602-574_Navy_and_Marine_Corps_personnel%2C_along_with_community_leaders_from_the_greater_San_Diego_area_come_together_to_commemora.jpg',
|
||||
state: 'California',
|
||||
latitude: 32.8153,
|
||||
longitude: -117.135
|
||||
},
|
||||
{
|
||||
city: 'Dallas',
|
||||
population: '1,197,816',
|
||||
image:
|
||||
'http://upload.wikimedia.org/wikipedia/commons/thumb/a/ab/Dallas_skyline_daytime.jpg/240px-Dallas_skyline_daytime.jpg',
|
||||
state: 'Texas',
|
||||
latitude: 32.7757,
|
||||
longitude: -96.7967
|
||||
},
|
||||
{
|
||||
city: 'San Jose',
|
||||
population: '945,942',
|
||||
image:
|
||||
'http://upload.wikimedia.org/wikipedia/commons/thumb/1/1e/Downtown_San_Jose_skyline.PNG/240px-Downtown_San_Jose_skyline.PNG',
|
||||
state: 'California',
|
||||
latitude: 37.2969,
|
||||
longitude: -121.8193
|
||||
},
|
||||
{
|
||||
city: 'Austin',
|
||||
population: '790,390',
|
||||
image:
|
||||
'http://upload.wikimedia.org/wikipedia/commons/thumb/9/97/Austin2012-12-01.JPG/240px-Austin2012-12-01.JPG',
|
||||
state: 'Texas',
|
||||
latitude: 30.3072,
|
||||
longitude: -97.756
|
||||
},
|
||||
{
|
||||
city: 'Jacksonville',
|
||||
population: '821,784',
|
||||
image:
|
||||
'http://upload.wikimedia.org/wikipedia/commons/thumb/f/f3/Skyline_of_Jacksonville_FL%2C_South_view_20160706_1.jpg/240px-Skyline_of_Jacksonville_FL%2C_South_view_20160706_1.jpg',
|
||||
state: 'Florida',
|
||||
latitude: 30.337,
|
||||
longitude: -81.6613
|
||||
},
|
||||
{
|
||||
city: 'San Francisco',
|
||||
population: '805,235',
|
||||
image:
|
||||
'http://upload.wikimedia.org/wikipedia/commons/thumb/6/6a/San_Francisco_skyline_from_Coit_Tower.jpg/240px-San_Francisco_skyline_from_Coit_Tower.jpg',
|
||||
state: 'California',
|
||||
latitude: 37.7751,
|
||||
longitude: -122.4193
|
||||
},
|
||||
{
|
||||
city: 'Columbus',
|
||||
population: '787,033',
|
||||
image:
|
||||
'http://upload.wikimedia.org/wikipedia/commons/thumb/f/fc/Columbus-ohio-skyline-panorama.jpg/240px-Columbus-ohio-skyline-panorama.jpg',
|
||||
state: 'Ohio',
|
||||
latitude: 39.9848,
|
||||
longitude: -82.985
|
||||
},
|
||||
{
|
||||
city: 'Indianapolis',
|
||||
population: '820,445',
|
||||
image:
|
||||
'http://upload.wikimedia.org/wikipedia/commons/thumb/1/16/Downtown_indy_from_parking_garage_zoom.JPG/213px-Downtown_indy_from_parking_garage_zoom.JPG',
|
||||
state: 'Indiana',
|
||||
latitude: 39.7767,
|
||||
longitude: -86.1459
|
||||
},
|
||||
{
|
||||
city: 'Fort Worth',
|
||||
population: '741,206',
|
||||
image:
|
||||
'http://upload.wikimedia.org/wikipedia/commons/thumb/d/db/FortWorthTexasSkylineW.jpg/240px-FortWorthTexasSkylineW.jpg',
|
||||
state: 'Texas',
|
||||
latitude: 32.7795,
|
||||
longitude: -97.3463
|
||||
},
|
||||
{
|
||||
city: 'Charlotte',
|
||||
population: '731,424',
|
||||
image:
|
||||
'http://upload.wikimedia.org/wikipedia/commons/thumb/7/7d/Charlotte_skyline45647.jpg/222px-Charlotte_skyline45647.jpg',
|
||||
state: 'North Carolina',
|
||||
latitude: 35.2087,
|
||||
longitude: -80.8307
|
||||
},
|
||||
{
|
||||
city: 'Seattle',
|
||||
population: '608,660',
|
||||
image:
|
||||
'http://upload.wikimedia.org/wikipedia/commons/thumb/3/36/SeattleI5Skyline.jpg/240px-SeattleI5Skyline.jpg',
|
||||
state: 'Washington',
|
||||
latitude: 47.6205,
|
||||
longitude: -122.3509
|
||||
},
|
||||
{
|
||||
city: 'Denver',
|
||||
population: '600,158',
|
||||
image:
|
||||
'http://upload.wikimedia.org/wikipedia/commons/thumb/0/0b/DenverCP.JPG/240px-DenverCP.JPG',
|
||||
state: 'Colorado',
|
||||
latitude: 39.7618,
|
||||
longitude: -104.8806
|
||||
},
|
||||
{
|
||||
city: 'El Paso',
|
||||
population: '649,121',
|
||||
image:
|
||||
'http://upload.wikimedia.org/wikipedia/commons/thumb/6/6d/Downtown_El_Paso_at_sunset.jpeg/240px-Downtown_El_Paso_at_sunset.jpeg',
|
||||
state: 'Texas',
|
||||
latitude: 31.8484,
|
||||
longitude: -106.427
|
||||
}
|
||||
];
|
||||
87
frontend/dashboard/src/_mock/map/countries.ts
Normal file
87
frontend/dashboard/src/_mock/map/countries.ts
Normal file
@@ -0,0 +1,87 @@
|
||||
// utils
|
||||
import _mock from '../_mock';
|
||||
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
export const countries = [
|
||||
{
|
||||
timezones: ['America/Aruba'],
|
||||
latlng: [12.5, -69.96666666],
|
||||
name: 'Aruba',
|
||||
country_code: 'AW',
|
||||
capital: 'Oranjestad',
|
||||
photo: _mock.image.feed(1),
|
||||
},
|
||||
{
|
||||
timezones: ['Asia/Kabul'],
|
||||
latlng: [33, 65],
|
||||
name: 'Afghanistan',
|
||||
country_code: 'AF',
|
||||
capital: 'Kabul',
|
||||
photo: _mock.image.feed(2),
|
||||
},
|
||||
{
|
||||
timezones: ['Africa/Luanda'],
|
||||
latlng: [-12.5, 18.5],
|
||||
name: 'Angola',
|
||||
country_code: 'AO',
|
||||
capital: 'Luanda',
|
||||
photo: _mock.image.feed(3),
|
||||
},
|
||||
{
|
||||
timezones: ['Pacific/Efate'],
|
||||
latlng: [-16, 167],
|
||||
name: 'Vanuatu',
|
||||
country_code: 'VU',
|
||||
capital: 'Port Vila',
|
||||
photo: _mock.image.feed(4),
|
||||
},
|
||||
{
|
||||
timezones: ['Pacific/Wallis'],
|
||||
latlng: [-13.3, -176.2],
|
||||
name: 'Wallis and Futuna',
|
||||
country_code: 'WF',
|
||||
capital: 'Mata-Utu',
|
||||
photo: _mock.image.feed(5),
|
||||
},
|
||||
{
|
||||
timezones: ['Pacific/Apia'],
|
||||
latlng: [-13.58333333, -172.33333333],
|
||||
name: 'Samoa',
|
||||
country_code: 'WS',
|
||||
capital: 'Apia',
|
||||
photo: _mock.image.feed(6),
|
||||
},
|
||||
{
|
||||
timezones: ['Asia/Aden'],
|
||||
latlng: [15, 48],
|
||||
name: 'Yemen',
|
||||
country_code: 'YE',
|
||||
capital: "Sana'a",
|
||||
photo: _mock.image.feed(7),
|
||||
},
|
||||
{
|
||||
timezones: ['Africa/Johannesburg'],
|
||||
latlng: [-29, 24],
|
||||
name: 'South Africa',
|
||||
country_code: 'ZA',
|
||||
capital: 'Pretoria',
|
||||
photo: _mock.image.feed(8),
|
||||
},
|
||||
{
|
||||
timezones: ['Africa/Lusaka'],
|
||||
latlng: [-15, 30],
|
||||
name: 'Zambia',
|
||||
country_code: 'ZM',
|
||||
capital: 'Lusaka',
|
||||
photo: _mock.image.feed(9),
|
||||
},
|
||||
{
|
||||
timezones: ['Africa/Harare'],
|
||||
latlng: [-20, 30],
|
||||
name: 'Zimbabwe',
|
||||
country_code: 'ZW',
|
||||
capital: 'Harare',
|
||||
photo: _mock.image.feed(10),
|
||||
},
|
||||
];
|
||||
599
frontend/dashboard/src/_mock/map/map-style-basic-v8.json
Normal file
599
frontend/dashboard/src/_mock/map/map-style-basic-v8.json
Normal file
@@ -0,0 +1,599 @@
|
||||
{
|
||||
"version": 8,
|
||||
"name": "Basic",
|
||||
"metadata": {
|
||||
"mapbox:autocomposite": true
|
||||
},
|
||||
"sources": {
|
||||
"mapbox": {
|
||||
"url": "mapbox://mapbox.mapbox-streets-v7",
|
||||
"type": "vector"
|
||||
}
|
||||
},
|
||||
"sprite": "mapbox://sprites/mapbox/basic-v8",
|
||||
"glyphs": "mapbox://fonts/mapbox/{fontstack}/{range}.pbf",
|
||||
"layers": [
|
||||
{
|
||||
"id": "background",
|
||||
"type": "background",
|
||||
"paint": {
|
||||
"background-color": "#dedede"
|
||||
},
|
||||
"interactive": true
|
||||
},
|
||||
{
|
||||
"id": "landuse_overlay_national_park",
|
||||
"type": "fill",
|
||||
"source": "mapbox",
|
||||
"source-layer": "landuse_overlay",
|
||||
"filter": ["==", "class", "national_park"],
|
||||
"paint": {
|
||||
"fill-color": "#d2edae",
|
||||
"fill-opacity": 0.75
|
||||
},
|
||||
"interactive": true
|
||||
},
|
||||
{
|
||||
"id": "landuse_park",
|
||||
"type": "fill",
|
||||
"source": "mapbox",
|
||||
"source-layer": "landuse",
|
||||
"filter": ["==", "class", "park"],
|
||||
"paint": {
|
||||
"fill-color": "#d2edae"
|
||||
},
|
||||
"interactive": true
|
||||
},
|
||||
{
|
||||
"id": "waterway",
|
||||
"type": "line",
|
||||
"source": "mapbox",
|
||||
"source-layer": "waterway",
|
||||
"filter": [
|
||||
"all",
|
||||
["==", "$type", "LineString"],
|
||||
["in", "class", "river", "canal"]
|
||||
],
|
||||
"paint": {
|
||||
"line-color": "#a0cfdf",
|
||||
"line-width": {
|
||||
"base": 1.4,
|
||||
"stops": [
|
||||
[8, 0.5],
|
||||
[20, 15]
|
||||
]
|
||||
}
|
||||
},
|
||||
"interactive": true
|
||||
},
|
||||
{
|
||||
"id": "water",
|
||||
"type": "fill",
|
||||
"source": "mapbox",
|
||||
"source-layer": "water",
|
||||
"paint": {
|
||||
"fill-color": "#a0cfdf"
|
||||
},
|
||||
"interactive": true
|
||||
},
|
||||
{
|
||||
"id": "building",
|
||||
"type": "fill",
|
||||
"source": "mapbox",
|
||||
"source-layer": "building",
|
||||
"paint": {
|
||||
"fill-color": "#d6d6d6"
|
||||
},
|
||||
"interactive": true
|
||||
},
|
||||
{
|
||||
"interactive": true,
|
||||
"layout": {
|
||||
"line-cap": "butt",
|
||||
"line-join": "miter"
|
||||
},
|
||||
"filter": [
|
||||
"all",
|
||||
["==", "$type", "LineString"],
|
||||
[
|
||||
"all",
|
||||
[
|
||||
"in",
|
||||
"class",
|
||||
"motorway_link",
|
||||
"street",
|
||||
"street_limited",
|
||||
"service",
|
||||
"track",
|
||||
"pedestrian",
|
||||
"path",
|
||||
"link"
|
||||
],
|
||||
["==", "structure", "tunnel"]
|
||||
]
|
||||
],
|
||||
"type": "line",
|
||||
"source": "mapbox",
|
||||
"id": "tunnel_minor",
|
||||
"paint": {
|
||||
"line-color": "#efefef",
|
||||
"line-width": {
|
||||
"base": 1.55,
|
||||
"stops": [
|
||||
[4, 0.25],
|
||||
[20, 30]
|
||||
]
|
||||
},
|
||||
"line-dasharray": [0.36, 0.18]
|
||||
},
|
||||
"source-layer": "road"
|
||||
},
|
||||
{
|
||||
"interactive": true,
|
||||
"layout": {
|
||||
"line-cap": "butt",
|
||||
"line-join": "miter"
|
||||
},
|
||||
"filter": [
|
||||
"all",
|
||||
["==", "$type", "LineString"],
|
||||
[
|
||||
"all",
|
||||
[
|
||||
"in",
|
||||
"class",
|
||||
"motorway",
|
||||
"primary",
|
||||
"secondary",
|
||||
"tertiary",
|
||||
"trunk"
|
||||
],
|
||||
["==", "structure", "tunnel"]
|
||||
]
|
||||
],
|
||||
"type": "line",
|
||||
"source": "mapbox",
|
||||
"id": "tunnel_major",
|
||||
"paint": {
|
||||
"line-color": "#fff",
|
||||
"line-width": {
|
||||
"base": 1.4,
|
||||
"stops": [
|
||||
[6, 0.5],
|
||||
[20, 30]
|
||||
]
|
||||
},
|
||||
"line-dasharray": [0.28, 0.14]
|
||||
},
|
||||
"source-layer": "road"
|
||||
},
|
||||
{
|
||||
"interactive": true,
|
||||
"layout": {
|
||||
"line-cap": "round",
|
||||
"line-join": "round"
|
||||
},
|
||||
"filter": [
|
||||
"all",
|
||||
["==", "$type", "LineString"],
|
||||
[
|
||||
"all",
|
||||
[
|
||||
"in",
|
||||
"class",
|
||||
"motorway_link",
|
||||
"street",
|
||||
"street_limited",
|
||||
"service",
|
||||
"track",
|
||||
"pedestrian",
|
||||
"path",
|
||||
"link"
|
||||
],
|
||||
["in", "structure", "none", "ford"]
|
||||
]
|
||||
],
|
||||
"type": "line",
|
||||
"source": "mapbox",
|
||||
"id": "road_minor",
|
||||
"paint": {
|
||||
"line-color": "#efefef",
|
||||
"line-width": {
|
||||
"base": 1.55,
|
||||
"stops": [
|
||||
[4, 0.25],
|
||||
[20, 30]
|
||||
]
|
||||
}
|
||||
},
|
||||
"source-layer": "road"
|
||||
},
|
||||
{
|
||||
"interactive": true,
|
||||
"layout": {
|
||||
"line-cap": "round",
|
||||
"line-join": "round"
|
||||
},
|
||||
"filter": [
|
||||
"all",
|
||||
["==", "$type", "LineString"],
|
||||
[
|
||||
"all",
|
||||
[
|
||||
"in",
|
||||
"class",
|
||||
"motorway",
|
||||
"primary",
|
||||
"secondary",
|
||||
"tertiary",
|
||||
"trunk"
|
||||
],
|
||||
["in", "structure", "none", "ford"]
|
||||
]
|
||||
],
|
||||
"type": "line",
|
||||
"source": "mapbox",
|
||||
"id": "road_major",
|
||||
"paint": {
|
||||
"line-color": "#fff",
|
||||
"line-width": {
|
||||
"base": 1.4,
|
||||
"stops": [
|
||||
[6, 0.5],
|
||||
[20, 30]
|
||||
]
|
||||
}
|
||||
},
|
||||
"source-layer": "road"
|
||||
},
|
||||
{
|
||||
"interactive": true,
|
||||
"layout": {
|
||||
"line-cap": "butt",
|
||||
"line-join": "miter"
|
||||
},
|
||||
"filter": [
|
||||
"all",
|
||||
["==", "$type", "LineString"],
|
||||
[
|
||||
"all",
|
||||
[
|
||||
"in",
|
||||
"class",
|
||||
"motorway_link",
|
||||
"street",
|
||||
"street_limited",
|
||||
"service",
|
||||
"track",
|
||||
"pedestrian",
|
||||
"path",
|
||||
"link"
|
||||
],
|
||||
["==", "structure", "bridge"]
|
||||
]
|
||||
],
|
||||
"type": "line",
|
||||
"source": "mapbox",
|
||||
"id": "bridge_minor case",
|
||||
"paint": {
|
||||
"line-color": "#dedede",
|
||||
"line-width": {
|
||||
"base": 1.6,
|
||||
"stops": [
|
||||
[12, 0.5],
|
||||
[20, 10]
|
||||
]
|
||||
},
|
||||
"line-gap-width": {
|
||||
"base": 1.55,
|
||||
"stops": [
|
||||
[4, 0.25],
|
||||
[20, 30]
|
||||
]
|
||||
}
|
||||
},
|
||||
"source-layer": "road"
|
||||
},
|
||||
{
|
||||
"interactive": true,
|
||||
"layout": {
|
||||
"line-cap": "butt",
|
||||
"line-join": "miter"
|
||||
},
|
||||
"filter": [
|
||||
"all",
|
||||
["==", "$type", "LineString"],
|
||||
[
|
||||
"all",
|
||||
[
|
||||
"in",
|
||||
"class",
|
||||
"motorway",
|
||||
"primary",
|
||||
"secondary",
|
||||
"tertiary",
|
||||
"trunk"
|
||||
],
|
||||
["==", "structure", "bridge"]
|
||||
]
|
||||
],
|
||||
"type": "line",
|
||||
"source": "mapbox",
|
||||
"id": "bridge_major case",
|
||||
"paint": {
|
||||
"line-color": "#dedede",
|
||||
"line-width": {
|
||||
"base": 1.6,
|
||||
"stops": [
|
||||
[12, 0.5],
|
||||
[20, 10]
|
||||
]
|
||||
},
|
||||
"line-gap-width": {
|
||||
"base": 1.55,
|
||||
"stops": [
|
||||
[4, 0.25],
|
||||
[20, 30]
|
||||
]
|
||||
}
|
||||
},
|
||||
"source-layer": "road"
|
||||
},
|
||||
{
|
||||
"interactive": true,
|
||||
"layout": {
|
||||
"line-cap": "round",
|
||||
"line-join": "round"
|
||||
},
|
||||
"filter": [
|
||||
"all",
|
||||
["==", "$type", "LineString"],
|
||||
[
|
||||
"all",
|
||||
[
|
||||
"in",
|
||||
"class",
|
||||
"motorway_link",
|
||||
"street",
|
||||
"street_limited",
|
||||
"service",
|
||||
"track",
|
||||
"pedestrian",
|
||||
"path",
|
||||
"link"
|
||||
],
|
||||
["==", "structure", "bridge"]
|
||||
]
|
||||
],
|
||||
"type": "line",
|
||||
"source": "mapbox",
|
||||
"id": "bridge_minor",
|
||||
"paint": {
|
||||
"line-color": "#efefef",
|
||||
"line-width": {
|
||||
"base": 1.55,
|
||||
"stops": [
|
||||
[4, 0.25],
|
||||
[20, 30]
|
||||
]
|
||||
}
|
||||
},
|
||||
"source-layer": "road"
|
||||
},
|
||||
{
|
||||
"interactive": true,
|
||||
"layout": {
|
||||
"line-cap": "round",
|
||||
"line-join": "round"
|
||||
},
|
||||
"filter": [
|
||||
"all",
|
||||
["==", "$type", "LineString"],
|
||||
[
|
||||
"all",
|
||||
[
|
||||
"in",
|
||||
"class",
|
||||
"motorway",
|
||||
"primary",
|
||||
"secondary",
|
||||
"tertiary",
|
||||
"trunk"
|
||||
],
|
||||
["==", "structure", "bridge"]
|
||||
]
|
||||
],
|
||||
"type": "line",
|
||||
"source": "mapbox",
|
||||
"id": "bridge_major",
|
||||
"paint": {
|
||||
"line-color": "#fff",
|
||||
"line-width": {
|
||||
"base": 1.4,
|
||||
"stops": [
|
||||
[6, 0.5],
|
||||
[20, 30]
|
||||
]
|
||||
}
|
||||
},
|
||||
"source-layer": "road"
|
||||
},
|
||||
{
|
||||
"interactive": true,
|
||||
"layout": {
|
||||
"line-cap": "round",
|
||||
"line-join": "round"
|
||||
},
|
||||
"filter": [
|
||||
"all",
|
||||
["==", "$type", "LineString"],
|
||||
["all", ["<=", "admin_level", 2], ["==", "maritime", 0]]
|
||||
],
|
||||
"type": "line",
|
||||
"source": "mapbox",
|
||||
"id": "admin_country",
|
||||
"paint": {
|
||||
"line-color": "#8b8a8a",
|
||||
"line-width": {
|
||||
"base": 1.3,
|
||||
"stops": [
|
||||
[3, 0.5],
|
||||
[22, 15]
|
||||
]
|
||||
}
|
||||
},
|
||||
"source-layer": "admin"
|
||||
},
|
||||
{
|
||||
"interactive": true,
|
||||
"minzoom": 5,
|
||||
"layout": {
|
||||
"icon-image": "{maki}-11",
|
||||
"text-offset": [0, 0.5],
|
||||
"text-field": "{name_en}",
|
||||
"text-font": ["Open Sans Semibold", "Arial Unicode MS Bold"],
|
||||
"text-max-width": 8,
|
||||
"text-anchor": "top",
|
||||
"text-size": 11,
|
||||
"icon-size": 1
|
||||
},
|
||||
"filter": [
|
||||
"all",
|
||||
["==", "$type", "Point"],
|
||||
["all", ["==", "scalerank", 1], ["==", "localrank", 1]]
|
||||
],
|
||||
"type": "symbol",
|
||||
"source": "mapbox",
|
||||
"id": "poi_label",
|
||||
"paint": {
|
||||
"text-color": "#666",
|
||||
"text-halo-width": 1,
|
||||
"text-halo-color": "rgba(255,255,255,0.75)",
|
||||
"text-halo-blur": 1
|
||||
},
|
||||
"source-layer": "poi_label"
|
||||
},
|
||||
{
|
||||
"interactive": true,
|
||||
"layout": {
|
||||
"symbol-placement": "line",
|
||||
"text-field": "{name_en}",
|
||||
"text-font": ["Open Sans Semibold", "Arial Unicode MS Bold"],
|
||||
"text-transform": "uppercase",
|
||||
"text-letter-spacing": 0.1,
|
||||
"text-size": {
|
||||
"base": 1.4,
|
||||
"stops": [
|
||||
[10, 8],
|
||||
[20, 14]
|
||||
]
|
||||
}
|
||||
},
|
||||
"filter": [
|
||||
"all",
|
||||
["==", "$type", "LineString"],
|
||||
["in", "class", "motorway", "primary", "secondary", "tertiary", "trunk"]
|
||||
],
|
||||
"type": "symbol",
|
||||
"source": "mapbox",
|
||||
"id": "road_major_label",
|
||||
"paint": {
|
||||
"text-color": "#666",
|
||||
"text-halo-color": "rgba(255,255,255,0.75)",
|
||||
"text-halo-width": 2
|
||||
},
|
||||
"source-layer": "road_label"
|
||||
},
|
||||
{
|
||||
"interactive": true,
|
||||
"minzoom": 8,
|
||||
"layout": {
|
||||
"text-field": "{name_en}",
|
||||
"text-font": ["Open Sans Semibold", "Arial Unicode MS Bold"],
|
||||
"text-max-width": 6,
|
||||
"text-size": {
|
||||
"stops": [
|
||||
[6, 12],
|
||||
[12, 16]
|
||||
]
|
||||
}
|
||||
},
|
||||
"filter": [
|
||||
"all",
|
||||
["==", "$type", "Point"],
|
||||
[
|
||||
"in",
|
||||
"type",
|
||||
"town",
|
||||
"village",
|
||||
"hamlet",
|
||||
"suburb",
|
||||
"neighbourhood",
|
||||
"island"
|
||||
]
|
||||
],
|
||||
"type": "symbol",
|
||||
"source": "mapbox",
|
||||
"id": "place_label_other",
|
||||
"paint": {
|
||||
"text-color": "#666",
|
||||
"text-halo-color": "rgba(255,255,255,0.75)",
|
||||
"text-halo-width": 1,
|
||||
"text-halo-blur": 1
|
||||
},
|
||||
"source-layer": "place_label"
|
||||
},
|
||||
{
|
||||
"interactive": true,
|
||||
"layout": {
|
||||
"text-field": "{name_en}",
|
||||
"text-font": ["Open Sans Bold", "Arial Unicode MS Bold"],
|
||||
"text-max-width": 10,
|
||||
"text-size": {
|
||||
"stops": [
|
||||
[3, 12],
|
||||
[8, 16]
|
||||
]
|
||||
}
|
||||
},
|
||||
"maxzoom": 16,
|
||||
"filter": ["all", ["==", "$type", "Point"], ["==", "type", "city"]],
|
||||
"type": "symbol",
|
||||
"source": "mapbox",
|
||||
"id": "place_label_city",
|
||||
"paint": {
|
||||
"text-color": "#666",
|
||||
"text-halo-color": "rgba(255,255,255,0.75)",
|
||||
"text-halo-width": 1,
|
||||
"text-halo-blur": 1
|
||||
},
|
||||
"source-layer": "place_label"
|
||||
},
|
||||
{
|
||||
"interactive": true,
|
||||
"layout": {
|
||||
"text-field": "{name_en}",
|
||||
"text-font": ["Open Sans Regular", "Arial Unicode MS Regular"],
|
||||
"text-max-width": 10,
|
||||
"text-size": {
|
||||
"stops": [
|
||||
[3, 14],
|
||||
[8, 22]
|
||||
]
|
||||
}
|
||||
},
|
||||
"maxzoom": 12,
|
||||
"filter": ["==", "$type", "Point"],
|
||||
"type": "symbol",
|
||||
"source": "mapbox",
|
||||
"id": "country_label",
|
||||
"paint": {
|
||||
"text-color": "#666",
|
||||
"text-halo-color": "rgba(255,255,255,0.75)",
|
||||
"text-halo-width": 1,
|
||||
"text-halo-blur": 1
|
||||
},
|
||||
"source-layer": "country_label"
|
||||
}
|
||||
]
|
||||
}
|
||||
91
frontend/dashboard/src/_mock/map/stations.ts
Normal file
91
frontend/dashboard/src/_mock/map/stations.ts
Normal file
@@ -0,0 +1,91 @@
|
||||
export const stations = [
|
||||
{ name: 'Lafayette (LAFY)', coordinates: [-122.123801, 37.893394] },
|
||||
{
|
||||
name: '12th St. Oakland City Center (12TH)',
|
||||
coordinates: [-122.271604, 37.803664]
|
||||
},
|
||||
{
|
||||
name: '16th St. Mission (16TH)',
|
||||
coordinates: [-122.419694, 37.765062]
|
||||
},
|
||||
{ name: '19th St. Oakland (19TH)', coordinates: [-122.269029, 37.80787] },
|
||||
{
|
||||
name: '24th St. Mission (24TH)',
|
||||
coordinates: [-122.418466, 37.752254]
|
||||
},
|
||||
{ name: 'Ashby (ASHB)', coordinates: [-122.26978, 37.853024] },
|
||||
{ name: 'Balboa Park (BALB)', coordinates: [-122.447414, 37.721981] },
|
||||
{ name: 'Bay Fair (BAYF)', coordinates: [-122.126871, 37.697185] },
|
||||
{ name: 'Castro Valley (CAST)', coordinates: [-122.075567, 37.690754] },
|
||||
{
|
||||
name: 'Civic Center/UN Plaza (CIVC)',
|
||||
coordinates: [-122.413756, 37.779528]
|
||||
},
|
||||
{ name: 'Colma (COLM)', coordinates: [-122.466233, 37.684638] },
|
||||
{
|
||||
name: 'Coliseum/Oakland Airport (COLS)',
|
||||
coordinates: [-122.197273, 37.754006]
|
||||
},
|
||||
{ name: 'Concord (CONC)', coordinates: [-122.029095, 37.973737] },
|
||||
{ name: 'Daly City (DALY)', coordinates: [-122.469081, 37.706121] },
|
||||
{
|
||||
name: 'Downtown Berkeley (DBRK)',
|
||||
coordinates: [-122.268045, 37.869867]
|
||||
},
|
||||
{
|
||||
name: 'El Cerrito del Norte (DELN)',
|
||||
coordinates: [-122.317269, 37.925655]
|
||||
},
|
||||
{
|
||||
name: 'Dublin/Pleasanton (DUBL)',
|
||||
coordinates: [-121.900367, 37.701695]
|
||||
},
|
||||
{ name: 'Embarcadero (EMBR)', coordinates: [-122.396742, 37.792976] },
|
||||
{ name: 'Fremont (FRMT)', coordinates: [-121.9764, 37.557355] },
|
||||
{ name: 'Fruitvale (FTVL)', coordinates: [-122.224274, 37.774963] },
|
||||
{ name: 'Glen Park (GLEN)', coordinates: [-122.434092, 37.732921] },
|
||||
{ name: 'Hayward (HAYW)', coordinates: [-122.087967, 37.670399] },
|
||||
{ name: 'Lake Merritt (LAKE)', coordinates: [-122.265609, 37.797484] },
|
||||
{ name: 'MacArthur (MCAR)', coordinates: [-122.267227, 37.828415] },
|
||||
{ name: 'Millbrae (MLBR)', coordinates: [-122.38666, 37.599787] },
|
||||
{ name: 'Montgomery St. (MONT)', coordinates: [-122.401407, 37.789256] },
|
||||
{ name: 'North Berkeley (NBRK)', coordinates: [-122.283451, 37.87404] },
|
||||
{
|
||||
name: 'North Concord/Martinez (NCON)',
|
||||
coordinates: [-122.024597, 38.003275]
|
||||
},
|
||||
{ name: 'Orinda (ORIN)', coordinates: [-122.183791, 37.878361] },
|
||||
{
|
||||
name: 'Pleasant Hill/Contra Costa Centre (PHIL)',
|
||||
coordinates: [-122.056013, 37.928403]
|
||||
},
|
||||
{
|
||||
name: 'Pittsburg/Bay Point (PITT)',
|
||||
coordinates: [-121.945154, 38.018914]
|
||||
},
|
||||
{
|
||||
name: 'El Cerrito Plaza (PLZA)',
|
||||
coordinates: [-122.299272, 37.903059]
|
||||
},
|
||||
{ name: 'Powell St. (POWL)', coordinates: [-122.406857, 37.784991] },
|
||||
{ name: 'Richmond (RICH)', coordinates: [-122.353165, 37.936887] },
|
||||
{ name: 'Rockridge (ROCK)', coordinates: [-122.251793, 37.844601] },
|
||||
{ name: 'San Leandro (SANL)', coordinates: [-122.161311, 37.722619] },
|
||||
{ name: 'San Bruno (SBRN)', coordinates: [-122.416038, 37.637753] },
|
||||
{
|
||||
name: "San Francisco Int'l Airport (SFIA)",
|
||||
coordinates: [-122.392612, 37.616035]
|
||||
},
|
||||
{ name: 'South Hayward (SHAY)', coordinates: [-122.057551, 37.6348] },
|
||||
{
|
||||
name: 'South San Francisco (SSAN)',
|
||||
coordinates: [-122.444116, 37.664174]
|
||||
},
|
||||
{ name: 'Union City (UCTY)', coordinates: [-122.017867, 37.591208] },
|
||||
{ name: 'Walnut Creek (WCRK)', coordinates: [-122.067423, 37.905628] },
|
||||
{
|
||||
name: 'West Dublin/Pleasanton (WDUB)',
|
||||
coordinates: [-121.928099, 37.699759]
|
||||
},
|
||||
{ name: 'West Oakland (WOAK)', coordinates: [-122.294582, 37.804675] }
|
||||
];
|
||||
Reference in New Issue
Block a user