use color markers on backoffice facility detail map

This commit is contained in:
Thomas Steen Rasmussen 2020-06-22 20:38:12 +02:00
parent ce4e7e9013
commit 61d2973409

View file

@ -124,7 +124,7 @@
<script type="text/javascript"> <script type="text/javascript">
function MapReadyCallback() { function MapReadyCallback() {
// add a marker for this facility // add a marker for this facility
var marker = L.marker([{{ facility.location.y }}, {{ facility.location.x }}]) var marker = L.marker([{{ facility.location.y }}, {{ facility.location.x }}], {icon: {{ facility.facility_type.marker }}})
marker.bindPopup("<b>{{ facility.name }}</b><br><p>{{ facility.description}}</p>").addTo(this); marker.bindPopup("<b>{{ facility.name }}</b><br><p>{{ facility.description}}</p>").addTo(this);
// max zoom since we have only one marker // max zoom since we have only one marker
this.setView(marker.getLatLng(), 13); this.setView(marker.getLatLng(), 13);