|
@@ -197,11 +197,17 @@ export class MapComponent implements OnInit, OnDestroy, OnChanges {
|
|
|
properties: {
|
|
properties: {
|
|
|
popUp: {
|
|
popUp: {
|
|
|
displayFunction: function (feature) {
|
|
displayFunction: function (feature) {
|
|
|
- return `<ul>
|
|
|
|
|
- <li>Unit name ${feature.get('title')}</li>
|
|
|
|
|
- <li>Unit ID ${feature.get('id')}</li>
|
|
|
|
|
- </ul>
|
|
|
|
|
- <button class="p-button-primary" style="display: block; margin: auto;"><a class="white" href="/dashboard/unit/${feature.get('id')}?unitDescription=${feature.get('title')}" target="_blank">Open Unit detail...</a></button>
|
|
|
|
|
|
|
+ return `<table>
|
|
|
|
|
+ <tr>
|
|
|
|
|
+ <th>Unit name</th>
|
|
|
|
|
+ <td>${feature.get('title')}</td>
|
|
|
|
|
+ </tr>
|
|
|
|
|
+ <tr>
|
|
|
|
|
+ <th>Unit ID</th>
|
|
|
|
|
+ <td>${feature.get('id')}</td>
|
|
|
|
|
+ </tr>
|
|
|
|
|
+ </table>
|
|
|
|
|
+ <button class="p-button-primary" style="display: block; margin: auto; margin-bottom: 10px;"><a class="white" href="/dashboard/unit/${feature.get('id')}?unitDescription=${feature.get('title')}" target="_blank">Open Unit detail...</a></button>
|
|
|
`;
|
|
`;
|
|
|
}
|
|
}
|
|
|
// attributes: [
|
|
// attributes: [
|