kopia lustrzana https://github.com/FacilMap/facilmap
33 wiersze
2.2 KiB
HTML
33 wiersze
2.2 KiB
HTML
<div class="content container-fluid">
|
||
<h2>{{result.short_name}}</h2>
|
||
<p ng-if="result.display_name != result.short_name">{{result.display_name}}<span ng-if="result.type"> ({{result.type}})</span></p>
|
||
<p ng-if="result.display_name == result.short_name && result.type">{{result.type}}</p>
|
||
<dl class="dl-horizontal">
|
||
<dt class="pos" ng-if="result.type != 'coordinates' && result.lat != null && result.lon != null">Coordinates</dt>
|
||
<dd class="pos" ng-if="result.type != 'coordinates' && result.lat != null && result.lon != null">{{result.lat | fmRound:5}}, {{result.lon | fmRound:5}}</dd>
|
||
|
||
<dt class="elevation" ng-if="result.elevation != null">Elevation</dt>
|
||
<dd class="elevation" ng-if="result.elevation != null">{{result.elevation}} m</dd>
|
||
|
||
<dt ng-repeat-start="(key, value) in result.extratags">{{key}}</dt>
|
||
<dd ng-repeat-end ng-bind-html="value | fmRenderOsmTag:key">{{value}}</dd>
|
||
</dl>
|
||
</div>
|
||
<div class="buttons">
|
||
{{filteredTypes = (result.isMarker && result.isLine ? client.types : (client.types | fmObjectFilter:{type:result.isMarker ? 'marker' : 'line'})); ""}}
|
||
<div uib-dropdown keyboard-nav="true" ng-if="!readonly && (filteredTypes | fmPropertyCount) > 1">
|
||
<button id="add-type-button" type="button" class="btn btn-default" uib-dropdown-toggle>Add to map <span class="caret"></span></button>
|
||
<ul class="dropdown-menu" uib-dropdown-menu role="menu" aria-labelledby="add-type-button">
|
||
<li role="menuitem" ng-repeat="type in filteredTypes"><a href="javascript:" ng-click="addToMap(type)">{{type.name}}</a></li>
|
||
</ul>
|
||
</div>
|
||
<button type="button" ng-if="!readonly && (filteredTypes | fmPropertyCount) == 1" ng-repeat="type in filteredTypes" class="btn btn-default" ng-click="addToMap(type)">Add to map</button>
|
||
<div uib-dropdown keyboard-nav="true">
|
||
<button type="button" class="btn btn-default" uib-dropdown-toggle>Use as <span class="caret"></span></button>
|
||
<ul class="dropdown-menu" uib-dropdown-menu role="menu">
|
||
<li role="menuitem"><a href="javascript:" ng-click="useForRoute(1)">Route start</a></li>
|
||
<li role="menuitem"><a href="javascript:" ng-click="useForRoute(2)">Route via</a></li>
|
||
<li role="menuitem"><a href="javascript:" ng-click="useForRoute(3)">Route destination</a></li>
|
||
</ul>
|
||
</div>
|
||
</div> |