Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

140
Vistas
how to add flyto leaflet function to Custom Svg Map

I have added a custom map svg leaflet Use svg as map using leaflet.js

and given id to path (svg) and now I want to add flyto (leaflet function) to it. any idea how to do that. I am tring to animate flyto one path to another using leaflet

var map = L.map('map', {
  center: [40.75, -74.2],
  zoom: 13
});
  imageBounds = [
    [40.712216, -74.22655],
    [40.773941, -74.12544]
  ];

L.imageOverlay(imageUrl, imageBounds).addTo(map); 

#map {
 height: 400px;
}

Thank You

about 4 years ago · Santiago Gelvez
1 Respuestas
Responde la pregunta

0

for flyto with animation you should use this code.

map.panTo(new L.LatLng(40.712216,-74.22655));

about 4 years ago · Santiago Gelvez Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda