diff --git a/src/app/app.component.css b/src/app/app.component.css index 47f247e..b16f453 100644 --- a/src/app/app.component.css +++ b/src/app/app.component.css @@ -3,6 +3,6 @@ map-box {margin:0;} div.title {font-size:1em;text-align:left;padding:10px;position:absolute;bottom:0;left:0;width:30vw;background-color:rgba(0,0,0,0);color:#fff;} div.title h1 {font-family:"Open Sans";font-size:4em;} -div.title h1 span {background:#d52b1e;padding:5px;} +div.title h1 span {background:#d52b1e;padding:0 10px;} div.title h2 span {background:#fff;padding:2px;color:#000;} div.title p span {line-height:1.4;background:#021011;} diff --git a/src/app/app.component.ts b/src/app/app.component.ts index a7b4426..02fe28a 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -23,6 +23,7 @@ export class AppComponent { this.wordpressService.getPage(slug) .subscribe(data=> { this.pages = data; + console.log(data) }) }) } diff --git a/src/app/map-box/map-box.component.ts b/src/app/map-box/map-box.component.ts index c50925b..06d8625 100644 --- a/src/app/map-box/map-box.component.ts +++ b/src/app/map-box/map-box.component.ts @@ -72,7 +72,6 @@ export class MapBoxComponent implements OnInit { this.hoveredStateId = e.features[0].id; this.map.setFeatureState({source: 'ticino', id: this.hoveredStateId}, { hover: true}); - console.log(this.hoveredStateId); } }) @@ -90,7 +89,6 @@ export class MapBoxComponent implements OnInit { this.wordpressService.getMarker(slug) .subscribe(data => { data.map(page => { - console.log(page) this.mService.addMessage(page); }) }) @@ -112,18 +110,28 @@ export class MapBoxComponent implements OnInit { type: "symbol", source: "ticino", layout: { - // 'icon-size': 1, - // 'icon-image': "sound-marker", - // 'icon-allow-overlap': true, + 'icon-size': 1, + 'icon-image': "sound-marker", + 'icon-allow-overlap': true, "text-field": "{title}", 'text-allow-overlap': true, 'text-size':18, - 'text-offset':[0,0], + 'text-offset':[0,-1.5], 'text-transform':'lowercase', }, paint: { // 'text-halo-color':"#d52b1e", - 'text-halo-width':20, + // 'text-halo-width':20, + 'text-halo-width': ["case", + ["boolean", ["feature-state", "hover"], false], + 20, + 0 + ], + 'text-opacity': ["case", + ["boolean", ["feature-state", "hover"], false], + 1, + 0 + ], 'text-color':"#fff", 'text-halo-color':["case", ["boolean", ["feature-state", "hover"], false], @@ -157,7 +165,7 @@ export class MapBoxComponent implements OnInit { ); this.featurecollection = fc; this.source.setData(fc) - console.log(this.source) + console.log(fc); }); } diff --git a/src/app/page.ts b/src/app/page.ts index 95ab90a..d09eecc 100644 --- a/src/app/page.ts +++ b/src/app/page.ts @@ -19,5 +19,6 @@ export class PageItem { }, public pdf?:any, public georeference?:number[], + public author? : string, ) {} } diff --git a/src/app/text-info/text-info.component.css b/src/app/text-info/text-info.component.css index 24e06e9..e69de29 100644 --- a/src/app/text-info/text-info.component.css +++ b/src/app/text-info/text-info.component.css @@ -1,10 +0,0 @@ -div.modal {display:block;position:absolute;top:0;left:0;width:100vw;height:100vh;width:100%;height:100%; background-color:rgba(255,255,255,0.8);overflow-y:scroll;} -div.content { background:#fff;border:1px solid #eee;padding:10px;border-radius:1px; position:relative; width:80vw;min-height:50vh;margin:auto;margin-top:10vh;margin-bottom:10vh;} -div.content div.tags-container, -div.content div.categories-container, -div.content div.content-container {width:100%;clear:both;position:relative;padding:10px 0px;} -div.content ul {list-style:none;width:100%;clear:both;} -div.content ul.categories li, -div.content ul.tags li {float:left;padding:5px;margin:2px;background-color:#d52b1e;color:#fff;} -div.content div.audio-box audio {margin-top:10px;margin-bottom:10px;} -div.close-button {position:absolute;right:0;top:0;z-index:100;padding:10px;} diff --git a/src/app/text-info/text-info.component.html b/src/app/text-info/text-info.component.html index 8f3debb..15565f5 100644 --- a/src/app/text-info/text-info.component.html +++ b/src/app/text-info/text-info.component.html @@ -1,27 +1,43 @@