File tree Expand file tree Collapse file tree 4 files changed +25
-22
lines changed
pygeoapi-skin-dashboard/templates/collections/tiles Expand file tree Collapse file tree 4 files changed +25
-22
lines changed Original file line number Diff line number Diff line change @@ -10,9 +10,3 @@ RUN pip3 install --no-cache-dir --no-deps https://github.com/cgs-earth/pygeoapi-
10
10
11
11
COPY ./sitemap /sitemap
12
12
RUN mv /sitemap/_sitemap.xml /sitemap/sitemap.xml
13
-
14
- COPY ./tiles /tmp/tiles/
15
- RUN apt-get update \
16
- && apt-get install -y unzip \
17
- && mkdir -p /data/tiles \
18
- && unzip /tmp/tiles/* -d /data/tiles/
Original file line number Diff line number Diff line change @@ -107,13 +107,14 @@ <h3>Tiles</h3>
107
107
maxZoom : { { data [ 'maxzoom' ] } } ,
108
108
indexMaxZoom : 5 ,
109
109
getFeatureId : function ( feat ) {
110
- return feat . properties [ "id" ]
110
+ return feat . properties . id || feat . properties . fid ;
111
111
} ,
112
112
vectorTileLayerStyles : {
113
113
{ { data [ "id" ] } } : function ( properties , zoom ) {
114
114
115
115
return {
116
- weight : 1 ,
116
+ color : '#1B335F' ,
117
+ weight : 0.25 + ( zoom / 4 ) ,
117
118
}
118
119
}
119
120
}
@@ -136,12 +137,13 @@ <h3>Tiles</h3>
136
137
. openOn ( map ) ;
137
138
138
139
clearHighlight ( ) ;
139
- highlight = e . layer . properties . id ;
140
+ console . log ( e )
141
+ highlight = e . layer . properties . id || e . layer . properties . fid ;
140
142
tilesPbfLayer . setFeatureStyle ( highlight , {
141
- weight : 2 ,
142
- color : 'red ' ,
143
+ weight : e . layer . options . weight + 3 ,
144
+ color : '#E6000B ' ,
143
145
opacity : 1 ,
144
- fillColor : 'red ' ,
146
+ fillColor : '#E6000B ' ,
145
147
fill : false ,
146
148
radius : 6 ,
147
149
fillOpacity : 1
Original file line number Diff line number Diff line change @@ -266,6 +266,17 @@ resources:
266
266
object : ' ?huc'
267
267
filter :
268
268
- ' BIND(REPLACE(STR(?containedCatchment), "^.*ref/(hu[0-9]+)/.*$", "$1") AS ?hucLevel)'
269
+ - &tile_defaults
270
+ type : tile
271
+ name : MVT-tippecanoe
272
+ data : https://storage.googleapis.com/reference-tiles/hu08/{z}/{x}/{y}.pbf
273
+ options :
274
+ zoom :
275
+ min : 0
276
+ max : 10
277
+ format :
278
+ name : pbf
279
+ mimetype : application/vnd.mapbox-vector-tile
269
280
hu10 :
270
281
type : collection
271
282
title : HU10
@@ -291,6 +302,8 @@ resources:
291
302
table : hu10
292
303
uri_field : uri
293
304
geom_field : geom
305
+ - << : *tile_defaults
306
+ data : https://storage.googleapis.com/reference-tiles/hu10/{z}/{x}/{y}.pbf
294
307
nat_aq :
295
308
type : collection
296
309
title : USGS National Aquifers
@@ -525,16 +538,8 @@ resources:
525
538
- subject : ' ?distribution'
526
539
predicate : ' schema:encodingFormat'
527
540
object : ' ?distributionFormat'
528
- - type : tile
529
- name : MVT-tippecanoe
530
- data : /data/tiles/mainstems/
531
- options :
532
- zoom :
533
- min : 0
534
- max : 10
535
- format :
536
- name : pbf
537
- mimetype : application/vnd.mapbox-vector-tile
541
+ - << : *tile_defaults
542
+ data : https://storage.googleapis.com/reference-tiles/mainstems/{z}/{x}/{y}.pbf
538
543
539
544
dams : # updated 2024-04-23
540
545
type : collection
@@ -689,6 +694,8 @@ resources:
689
694
table : counties
690
695
uri_field : uri
691
696
geom_field : geom
697
+ - << : *tile_defaults
698
+ data : https://storage.googleapis.com/reference-tiles/counties/{z}/{x}/{y}.pbf
692
699
aiannh :
693
700
type : collection
694
701
title : American Indian/Alaska Native Areas/Hawaiian Home Lands (AIANNH)
You can’t perform that action at this time.
0 commit comments