Skip to content

Commit

Permalink
fix: add markers default
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelzinh3 committed Oct 24, 2023
1 parent ef688ea commit e02fffc
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions app/contrib/frontend/maps/static/maps/js/maps.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,6 @@ if (mapWrapper) {
ifObsProperty;
}



new Autocomplete("local", {
onSearch: ({ currentValue }) => {
const api = mapWrapper.dataset.mapsGeojson;
Expand Down Expand Up @@ -127,7 +125,6 @@ if (mapWrapper) {
});

const geojsonmarkers = (properties, coordinates) => {

let LeafIcon = L.Icon.extend({
options: {
iconSize: [40, 40],
Expand Down Expand Up @@ -160,7 +157,6 @@ if (mapWrapper) {
if (geojsonarray.includes(object.properties.id)) return;
geojsonarray.push(object.properties.id);


geojsonmarkers(properties, coordinates);
geojsonlayer.addTo(map);
},
Expand All @@ -169,7 +165,6 @@ if (mapWrapper) {
template(`<li>Sem resultados: "${currentValue}"</li>`),

onReset: () => {
// remove all layers
map.eachLayer(function (layer) {
if (!!layer.toGeoJSON) {
map.removeLayer(layer);
Expand Down

0 comments on commit e02fffc

Please sign in to comment.