Skip to content

Commit

Permalink
flyto
Browse files Browse the repository at this point in the history
  • Loading branch information
vlasvlasvlas committed Aug 9, 2023
1 parent a258313 commit 700edbb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,9 @@ <h3>Geojson:</h3>
var layer = L.geoJSON(feature).addTo(map);
geometryLayerGroup.addLayer(layer);

// fly to bounds
map.flyToBounds(L.geoJson(map.pm.getGeomanLayers(true).toGeoJSON()).getBounds());

// solo para validar en console.log:
obtenerFeatureCollection();
});
Expand Down

0 comments on commit 700edbb

Please sign in to comment.