variables added in template
parent
b556449580
commit
3bff6e2a75
|
@ -34,7 +34,7 @@
|
|||
<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyAKGJCCKvmWZl-L5bBF0uS5BWf0gN4ZkpI&callback=initMap&v=weekly" defer></script>
|
||||
<script>
|
||||
const contentUrl = "{{url('/api/contents/'.$content->id)}}";
|
||||
const locationField = "location";
|
||||
const locationField = "{{config('settings.location_field')}}";
|
||||
</script>
|
||||
<script>
|
||||
function initMap() {
|
||||
|
|
|
@ -106,8 +106,8 @@
|
|||
</div>
|
||||
<script src="https://developers.google.com/maps/documentation/javascript/examples/markerclusterer/markerclusterer.js"></script>
|
||||
<script>
|
||||
const contentUrl = "{{url('/types/locations/contents')}}";
|
||||
const locationField = "location";
|
||||
const contentUrl = "{{url('/types/'.config('settings.type').'/contents')}}";
|
||||
const locationField = "{{config('settings.location_field')}}";
|
||||
//const filterFields = ['categoria'];
|
||||
</script>
|
||||
<script>
|
||||
|
|
Loading…
Reference in New Issue