Quick fixes
This commit is contained in:
parent
bd7cba420c
commit
29a0a3ee81
5 changed files with 5 additions and 5 deletions
File diff suppressed because one or more lines are too long
|
@ -394,7 +394,7 @@ export class InitUiElements {
|
||||||
new ShowDataLayer(source.features, State.state.leafletMap,
|
new ShowDataLayer(source.features, State.state.leafletMap,
|
||||||
State.state.layoutToUse);
|
State.state.layoutToUse);
|
||||||
|
|
||||||
new SelectedFeatureHandler(Hash.hash, State.state.selectedElement, source);
|
// TOO reenable new SelectedFeatureHandler(Hash.hash, State.state.selectedElement, source);
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,7 +20,7 @@ export default class SelectedFeatureHandler {
|
||||||
hash.addCallback(h => {
|
hash.addCallback(h => {
|
||||||
console.log("Hash is now ", h)
|
console.log("Hash is now ", h)
|
||||||
if (h === undefined || h === "") {
|
if (h === undefined || h === "") {
|
||||||
console.log("Deselecting feature...")
|
console.error("Deselecting feature...")
|
||||||
selectedFeature.setData(undefined);
|
selectedFeature.setData(undefined);
|
||||||
}else{
|
}else{
|
||||||
self.selectFeature();
|
self.selectFeature();
|
||||||
|
|
|
@ -2,7 +2,7 @@ import { Utils } from "../Utils";
|
||||||
|
|
||||||
export default class Constants {
|
export default class Constants {
|
||||||
|
|
||||||
public static vNumber = "0.5.1";
|
public static vNumber = "0.5.2a";
|
||||||
|
|
||||||
// The user journey states thresholds when a new feature gets unlocked
|
// The user journey states thresholds when a new feature gets unlocked
|
||||||
public static userJourney = {
|
public static userJourney = {
|
||||||
|
|
|
@ -314,7 +314,7 @@ export default class OpeningHoursVisualization extends UIElement {
|
||||||
|
|
||||||
|
|
||||||
return new Combine([
|
return new Combine([
|
||||||
"<table class='ohviz' style='width:100%;'>",
|
"<table class='ohviz' style='width:100%; word-break: normal;'>",
|
||||||
rows.map(el => "<tr>" + el.Render() + "</tr>").join(""),
|
rows.map(el => "<tr>" + el.Render() + "</tr>").join(""),
|
||||||
"</table>"
|
"</table>"
|
||||||
]).SetClass("ohviz-container").Render();
|
]).SetClass("ohviz-container").Render();
|
||||||
|
|
Loading…
Reference in a new issue