templates.enUS.MapResultGenPage.hbs Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of smartabyar-smartvillage Show documentation
Show all versions of smartabyar-smartvillage Show documentation
Red Hat Global Social Innovation Program is partnering with Boston University and Smarta Byar in order to collaborate on creating a global and open research platform allowing researchers to study what social sustainability means by using a digital twin of Veberöd, Sweden as the test village, supported by Smarta Byar. The goal of this collaboration is to build the open source technological infrastructure so that researchers can collaborate on this platform effectively to study mobility, public health, sustainability among other study areas to ultimately help define better the link between well being and eco-smart cities.
The newest version!
{{#*inline "htmTitleMapResultPage"}}
{{#if searchListMapResult_}}{{#eq mapResultCount int1}}{{#if id}}map result{{else}}map result{{/if}}{{else}}no map result found{{/eq}}{{else}}map results{{/if}}
{{/inline}}
{{#*inline "htmMetaMapResultPage"}}{{> "htmMetaBaseResultPage"}}{{/inline}}
{{#*inline "htmStyleMapResultPage"}}{{> "htmStyleBaseResultPage"}}{{/inline}}
{{#*inline "htmScriptsMapResultPage"}}{{> "htmScriptsBaseResultPage"}}
{{/inline}}
{{#*inline "htmScriptMapResultPage"}}
{{/inline}}
{{#*inline "websocketMapResultPage"}}
websocketMapResult(websocketMapResultInner);
{{/inline}}
{{#*inline "jsWebsocketMapResultPage"}}{{/inline}}
{{#*inline "jsTooltipMapResultPage"}}{{/inline}}
{{#*inline "htmTooltipMapResultPage"}}
${feature.properties.objectTitle}
{{/inline}}
{{#*inline "jsLegendMapResultPage"}}
var div = L.DomUtil.create('div', 'info legend');
var htm = '';
$.each( window.listMapResult, function(index, mapResult) {
if(mapResult.location) {
var shapes = [];
if(Array.isArray(mapResult.location))
shapes = shapes.concat(mapResult.location);
else
shapes.push(mapResult.location);
shapes.forEach(function(shape, index) {
htm += htmLegendMapResult(map, shape, mapResult, index, shapes.length);
});
}
});
div.innerHTML = htm;
return div;
{{/inline}}
{{#*inline "htmLegendMapResultPage"}}
${title}
{{/inline}}
{{#*inline "jsStyleMapResultPage"}}
if(feature.geometry.type == 'Point') {
return {
radius: 8
, fillColor: (feature.properties.areaServedColors && feature.properties.areaServedColors[feature.index] ? feature.properties.areaServedColors[feature.index] : (feature.properties.color ? feature.properties.color : '#000'))
, color: (feature.properties.areaServedColors && feature.properties.areaServedColors[feature.index] ? feature.properties.areaServedColors[feature.index] : (feature.properties.color ? feature.properties.color : '#000'))
, weight: 1
, opacity: 0.7
, fillOpacity: 0.7
};
} else if(feature.geometry.type == 'LineString') {
return {
color: (feature.properties.areaServedColors && feature.properties.areaServedColors[feature.index] ? feature.properties.areaServedColors[feature.index] : (feature.properties.color ? feature.properties.color : '#000'))
, weight: 5
, opacity: 0.7
};
} else {
return {
fillColor: (feature.properties.areaServedColors && feature.properties.areaServedColors[feature.index] ? feature.properties.areaServedColors[feature.index] : (feature.properties.color ? feature.properties.color : '#000'))
, color: (feature.properties.areaServedColors && feature.properties.areaServedColors[feature.index] ? feature.properties.areaServedColors[feature.index] : (feature.properties.color ? feature.properties.color : '#000'))
, weight: 3
, opacity: 0.7
, fillOpacity: 0.7
};
}
{{/inline}}
{{#*inline "htmUrlMapResult"}}{{pageUri}}?q={{query.q}}&rows={{#if rows}}{{rows}}{{else}}{{pagination.rows}}{{/if}}&rows={{#if start}}{{start}}{{else}}{{pagination.start}}{{/if}}{{#each query.fq}}{{#eq fq this}}{{else}}&fq={{fq}}:{{val}}{{/eq}}{{/each}}{{#each query.sort}}{{#eq sort this}}{{else}}&sort={{var}} {{order}}{{/eq}}{{/each}}{{/inline}}
{{#*inline "htmHeadMapResultPage"}}{{#block "htmTitle"}}{{/block}}{{#block "htmMeta"}}{{/block}}{{#block "htmStyle"}}{{/block}}{{#block "htmScripts"}}{{/block}}{{#block "htmScript"}}{{/block}}{{/inline}}
{{#*inline "htmBodySearchMapResultPage"}}
{{#each varsQ}}
{{/each}}
start={{ start }}
rows={{ rows }}
{{/inline}}
{{#*inline "htmBodyFiltersMapResultPage"}}
{{#each varsFq }}
{{#if val }}fq={{ var }}:{{encodeURIComponent val }}{{/if}}
{{#if facetField.var }}facet.field={{ facetField.var }}{{/if}}
{{#each facetField.counts }}
- {{ @key }}: {{ this }}
{{/each}}
{{/each}}
{{/inline}}
{{#*inline "htmBodyRangeMapResultPage"}}
{{#if rangeGap }}facet.range.gap={{encodeURIComponent rangeGap }}{{/if}}
{{#if rangeStart }}facet.range.start={{encodeURIComponent rangeStart }}{{/if}}
{{#if rangeEnd }}facet.range.end={{encodeURIComponent rangeEnd }}{{/if}}
{{#if defaultRangeVar }}facet.range={!tag=r1}{{encodeURIComponent defaultRangeVar }}{{/if}}
Range Gap
Range Start
Range End
{{#each varsRange }}
{{/each}}
{{/inline}}
{{#*inline "htmBodyPivotMapResultPage"}}
{{#if defaultPivotVars }}
facet.pivot={!range=r1}{{#each defaultPivotVars }}{{#if @index }},{{/if}}{{ this }}{{/each}}
{{/if}}
{{#each varsFq }}
{{/each}}
{{/inline}}
{{#*inline "htmBodyFieldListMapResultPage"}}
{{#if defaultFieldListVars }}
fl={{#each defaultFieldListVars }}{{#if @index }},{{/if}}{{ this }}{{/each}}
{{/if}}
{{#each varsFq }}
{{/each}}
{{/inline}}
{{#*inline "htmBodyStatsMapResultPage"}}
{{#if defaultStatsVars }}
{{#each defaultStatsVars }} stats.field={{ this }}
{{/each}}{{/if}}
{{#each varsFq }}
{{#if enableStats }}
{{#if ./stats }}
{{#each ./stats }}
{{#eq @key 'name' }}{{else}}
{{ @key }}: {{ this }}
{{/eq}}
{{/each}}
{{#if ./stats/max }}
step min max speed in seconds {{/if}}
{{/if}}
{{/if}}
{{/each}}
{{/inline}}
{{#*inline "htmBodyMenuMapResultPage"}}
{{> "htmBodyMenuBaseResultPage"}}{{/inline}}
{{#*inline "htmBodyGraphMapResultPage"}}
{{/inline}}
{{#*inline "htmBodyGraphLocationMapResultPage"}}
{{/inline}}
{{#*inline "htmBodyCount0MapResultPage"}}
{{#if classIconCssClasses}}
{{/if}}
map results
{{/inline}}
{{#*inline "htmBodyCount1MapResultPage"}}
{{#if classIconCssClasses}}
{{/if}}
map result
{{/inline}}
{{#*inline "htmBodyAllMapResultPage"}}
{{#if classIconCssClasses}}
{{/if}}
map results
{{> "table1MapResultPage"}}
{{/inline}}
{{#*inline "htmFormMapResultPage"}}
{{#if id}}
{{#block "htmButton_searchpageMapResult"}}{{/block}}
{{#block "htmForm_searchpageMapResult"}}{{/block}}
{{/if}}
{{/inline}}
{{#*inline "htmButtonMapResultPage_searchpageMapResult"}}
{{/inline}}
{{#*inline "htmFormButtonMapResultPage_searchpageMapResult"}}
{{/inline}}
{{#*inline "htmFormMapResultPage_searchpageMapResult"}}
{{#ifContainsAnyRoles roles roleForWrite}}
{{> "htmCreated" roleForWriteBool="true" roleForReadBool="true"}}
{{else}}
{{#ifContainsAnyRoles roles roleForRead}}
{{> "htmCreated" roleForWriteBool="false" roleForReadBool="true"}}
{{else}}
{{> "htmCreated" roleForWriteBool="false" roleForReadBool="false"}}
{{/ifContainsAnyRoles}}
{{/ifContainsAnyRoles}}
{{#ifContainsAnyRoles roles roleForWrite}}
{{> "htmModified" roleForWriteBool="true" roleForReadBool="true"}}
{{else}}
{{#ifContainsAnyRoles roles roleForRead}}
{{> "htmModified" roleForWriteBool="false" roleForReadBool="true"}}
{{else}}
{{> "htmModified" roleForWriteBool="false" roleForReadBool="false"}}
{{/ifContainsAnyRoles}}
{{/ifContainsAnyRoles}}
{{#ifContainsAnyRoles roles roleForWrite}}
{{> "htmObjectId" roleForWriteBool="true" roleForReadBool="true"}}
{{else}}
{{#ifContainsAnyRoles roles roleForRead}}
{{> "htmObjectId" roleForWriteBool="false" roleForReadBool="true"}}
{{else}}
{{> "htmObjectId" roleForWriteBool="false" roleForReadBool="false"}}
{{/ifContainsAnyRoles}}
{{/ifContainsAnyRoles}}
{{#ifContainsAnyRoles roles roleForWrite}}
{{> "htmArchived" roleForWriteBool="true" roleForReadBool="true"}}
{{else}}
{{#ifContainsAnyRoles roles roleForRead}}
{{> "htmArchived" roleForWriteBool="false" roleForReadBool="true"}}
{{else}}
{{> "htmArchived" roleForWriteBool="false" roleForReadBool="false"}}
{{/ifContainsAnyRoles}}
{{/ifContainsAnyRoles}}
{{#ifContainsAnyRoles roles roleForWrite}}
{{> "htmDeleted" roleForWriteBool="true" roleForReadBool="true"}}
{{else}}
{{#ifContainsAnyRoles roles roleForRead}}
{{> "htmDeleted" roleForWriteBool="false" roleForReadBool="true"}}
{{else}}
{{> "htmDeleted" roleForWriteBool="false" roleForReadBool="false"}}
{{/ifContainsAnyRoles}}
{{/ifContainsAnyRoles}}
{{#ifContainsAnyRoles roles roleForWrite}}
{{> "htmTime" roleForWriteBool="true" roleForReadBool="true"}}
{{else}}
{{#ifContainsAnyRoles roles roleForRead}}
{{> "htmTime" roleForWriteBool="false" roleForReadBool="true"}}
{{else}}
{{> "htmTime" roleForWriteBool="false" roleForReadBool="false"}}
{{/ifContainsAnyRoles}}
{{/ifContainsAnyRoles}}
{{#ifContainsAnyRoles roles roleForWrite}}
{{> "htmDateTime" roleForWriteBool="true" roleForReadBool="true"}}
{{else}}
{{#ifContainsAnyRoles roles roleForRead}}
{{> "htmDateTime" roleForWriteBool="false" roleForReadBool="true"}}
{{else}}
{{> "htmDateTime" roleForWriteBool="false" roleForReadBool="false"}}
{{/ifContainsAnyRoles}}
{{/ifContainsAnyRoles}}
{{#ifContainsAnyRoles roles roleForWrite}}
{{> "htmStep" roleForWriteBool="true" roleForReadBool="true"}}
{{else}}
{{#ifContainsAnyRoles roles roleForRead}}
{{> "htmStep" roleForWriteBool="false" roleForReadBool="true"}}
{{else}}
{{> "htmStep" roleForWriteBool="false" roleForReadBool="false"}}
{{/ifContainsAnyRoles}}
{{/ifContainsAnyRoles}}
{{#ifContainsAnyRoles roles roleForWrite}}
{{> "htmLocation" roleForWriteBool="true" roleForReadBool="true"}}
{{else}}
{{#ifContainsAnyRoles roles roleForRead}}
{{> "htmLocation" roleForWriteBool="false" roleForReadBool="true"}}
{{else}}
{{> "htmLocation" roleForWriteBool="false" roleForReadBool="false"}}
{{/ifContainsAnyRoles}}
{{/ifContainsAnyRoles}}
{{#ifContainsAnyRoles roles roleForWrite}}
{{> "htmColor" roleForWriteBool="true" roleForReadBool="true"}}
{{else}}
{{#ifContainsAnyRoles roles roleForRead}}
{{> "htmColor" roleForWriteBool="false" roleForReadBool="true"}}
{{else}}
{{> "htmColor" roleForWriteBool="false" roleForReadBool="false"}}
{{/ifContainsAnyRoles}}
{{/ifContainsAnyRoles}}
{{/inline}}
{{#*inline "htmBodySidebarMapResultPage"}}
{{/inline}}
{{#*inline "htmBodyStartMapResultPage"}}
{{> "htmBodyStartBaseResultPage"}}
{{/inline}}
{{#*inline "htmBodyMiddleMapResultPage"}}
{{> "htmBodyMiddleBaseResultPage"}}
{{/inline}}
{{#*inline "htmBodyEndMapResultPage"}}
{{> "htmBodyEndBaseResultPage"}}
{{/inline}}
{{#*inline "htmBodyMapResultPage"}}
{{#block "htmBodyStart"}}{{/block}}
{{#block "htmBodyMiddle"}}{{/block}}
{{#block "htmBodyEnd"}}{{/block}}
{{/inline}}
{{#*inline "htmBodyMiddleMapResultPage"}}
{{#block "htmBodyGraphLocation"}}{{/block}}
{{#block "htmBodyGraph"}}{{/block}}
{{#eq mapResultCount int0}}
{{#block "htmBodyCount0"}}{{/block}}
{{else}}
{{#eq mapResultCount int1}}
{{#if id}}
{{#block "htmBodyCount1"}}{{/block}}
{{else}}
{{#block "htmBodyAll"}}{{/block}}
{{/if}}
{{else}}
{{#block "htmBodyAll"}}{{/block}}
{{/eq}}
{{/eq}}
{{#block "htmForm"}}{{/block}}
{{#block "htmForms"}}{{/block}}
{{/inline}}
{{#*inline "table1MapResultPage"}}
{{> table2MapResultPage}}
{{/inline}}
{{#*inline "table2MapResultPage"}}
{{> "thead1MapResultPage"}}
{{> "tbody1MapResultPage"}}
{{> "tfoot1MapResultPage"}}
{{/inline}}
{{#*inline "thead1MapResultPage"}}
{{> thead2MapResultPage}}
{{/inline}}
{{#*inline "thead2MapResultPage"}}
ID
created
{{/inline}}
{{#*inline "tbody1MapResultPage"}}
{{> tbody2MapResultPage}}
{{/inline}}
{{#*inline "tbody2MapResultPage"}}
{{#each listMapResult}}
{{objectId}}
{{siteZonedDateTimeFormat created "MMM d, yyyy h:mm:ss a" siteLocale}}
{{objectTitle}}
{{/each}}
{{/inline}}
{{#*inline "tfoot1MapResultPage"}}
{{> tfoot2MapResultPage}}
{{/inline}}
{{#*inline "tfoot2MapResultPage"}}
{{#if getColumnObjectId}}
{{/if}}
{{#if getColumnCreated}}
{{/if}}
{{#if getColumnObjectTitle}}
{{/if}}
{{/inline}}
{{#*inline "htmFormsMapResultPage"}}
{{#ifContainsAnyRoles roles authRoleSuperAdmin}}
{{#eq mapResultCount int1}}
{{/eq}}
{{/ifContainsAnyRoles}}
{{#block "htmSuggested"}}{{/block}}
{{/inline}}
{{#*inline "htmSuggestedMapResultPage"}}
{{#ifContainsAnyRoles roles roleForWrite}}
{{/ifContainsAnyRoles}}
search map results: