Skip to content

Commit

Permalink
resolução dos testes
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcosViniciusG committed Jul 2, 2024
1 parent 8baf3f2 commit a33abb0
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions lgbtq_connect/includes/admin/admin_script.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
// Definindo o ícone personalizado no escopo global
var personalIcon = L.icon({
iconUrl: 'https://res.cloudinary.com/dxsx0emuu/image/upload/f_auto,q_auto/lc_marker',
iconSize: [20, 30], // tamanho do ícone
popupAnchor: [1, -10]
});
let mapAdmin;
let mapEdit;
let isSearching = false;
Expand Down Expand Up @@ -186,6 +180,13 @@ function mostrarDescricaoCompleta(id) {
}

function initMapAdmin() {
// Definindo o ícone personalizado no escopo global
const personalIcon = L.icon({
iconUrl: 'https://res.cloudinary.com/dxsx0emuu/image/upload/f_auto,q_auto/lc_marker',
iconSize: [20, 30], // tamanho do ícone
popupAnchor: [1, -10]
});

if (document.getElementById('mapa_admin') == null) {
return;
}
Expand All @@ -205,6 +206,13 @@ function initMapAdmin() {
}

function initMapEdit(latitude, longitude, nome, servico, descricao) {
// Definindo o ícone personalizado no escopo global
const personalIcon = L.icon({
iconUrl: 'https://res.cloudinary.com/dxsx0emuu/image/upload/f_auto,q_auto/lc_marker',
iconSize: [20, 30], // tamanho do ícone
popupAnchor: [1, -10]
});

// Verifica se o mapa já foi inicializado e destrói se necessário
if (mapEdit !== undefined) {
mapEdit.remove();
Expand Down Expand Up @@ -516,5 +524,5 @@ window.onload = function () {
module.exports = {
Filtro,
Ordenador,
Tabela,
Tabela
};

0 comments on commit a33abb0

Please sign in to comment.