File tree Expand file tree Collapse file tree 4 files changed +10
-5
lines changed Expand file tree Collapse file tree 4 files changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,8 @@ services:
2828 - TERM=xterm-256color
2929 - START_SCREENSHOTSERVICE=NO
3030 - PUBLIC_URL=http://localhost:8080
31+ - VUE_APP_MAPBOX_ACCESSTOKEN=pk.eyJ1IjoiZ2VtZWluZGVzY2FuIiwiYSI6ImNrNXdrOXV2ZjEwdXcza28wcXNoYXE1ZGMifQ.P-nCvxNRK4AOs7YdRbHCLg
32+ - VUE_APP_MAPBOX_DEFAULT_STYLES=mapbox://styles/gemeindescan/ck6rp249516tg1iqkmt48o4pz
3133 working_dir : /opt/vue
3234 volumes :
3335 - ./vue:/opt/vue
Original file line number Diff line number Diff line change 1- VUE_APP_GRAPHQL_URI = http://localhost:8080/graphql/
2- VUE_APP_MAPBOX_ACCESSTOKEN = pk.eyJ1IjoiZ2VtZWluZGVzY2FuIiwiYSI6ImNrNXdrOXV2ZjEwdXcza28wcXNoYXE1ZGMifQ.P-nCvxNRK4AOs7YdRbHCLg
3- VUE_APP_DJANGOBASEURL = http://localhost:8080
1+ VUE_APP_GRAPHQL_URI = http://www:8000/graphql/
2+ VUE_APP_DJANGOBASEURL = http://www:8000
Original file line number Diff line number Diff line change 11VUE_APP_GRAPHQL_URI = /graphql/
2- VUE_APP_MAPBOX_ACCESSTOKEN = pk.eyJ1IjoiZ2VtZWluZGVzY2FuIiwiYSI6ImNrNXdrOXV2ZjEwdXcza28wcXNoYXE1ZGMifQ.P-nCvxNRK4AOs7YdRbHCLg
32VUE_APP_DJANGOBASEURL =
Original file line number Diff line number Diff line change @@ -201,6 +201,7 @@ export default {
201201 const bounds = geoViewport .viewport (this .geobounds .flat (), [boxSize, boxSize]);
202202 this .map = L .mapbox .map (' map' ).setView (bounds .center , bounds .zoom );
203203 this .layerContainer = new L.LayerGroup ();
204+ // default test layer // this.layerContainer.addLayer(L.mapbox.styleLayer('mapbox://styles/mapbox/light-v10'));
204205 if (this .hash ) { // full snapshot with hash
205206 this .layers .forEach ((layer ) => {
206207 if (layer .mediatype === ' application/vnd.mapbox-vector-tile' ) {
@@ -219,7 +220,11 @@ export default {
219220 this .geojson .coordinates .forEach ((polygon ) => {
220221 this .layerContainer .addLayer (L .polygon (polygon, { color: ' #543076' }));
221222 });
222- this .layerContainer .addLayer (L .mapbox .styleLayer (' mapbox://styles/gemeindescan/ck6rp249516tg1iqkmt48o4pz' ));
223+ if (process .env .VUE_APP_MAPBOX_DEFAULT_STYLES ) {
224+ this .layerContainer .addLayer (L .mapbox .styleLayer (
225+ process .env .VUE_APP_MAPBOX_DEFAULT_STYLES
226+ ));
227+ }
223228 }
224229 this .layerContainer .addTo (this .map );
225230 L .control .scale ({
You can’t perform that action at this time.
0 commit comments