Skip to content

Commit

Permalink
getbound.getcenter
Browse files Browse the repository at this point in the history
console log
  • Loading branch information
vlasvlasvlas committed Aug 30, 2023
1 parent 8bf530e commit e534a4b
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 @@ -301,6 +301,9 @@ <h3>Geojson:</h3>
// fly to bounds
map.flyToBounds(L.geoJson(map.pm.getGeomanLayers(true).toGeoJSON()).getBounds());

// console log polygon.getbounds.getcenter <- centro de geometrias:
console.log("--> polygon.getbounds.getcenter: "+L.geoJson(map.pm.getGeomanLayers(true).toGeoJSON()).getBounds().getCenter());

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

0 comments on commit e534a4b

Please sign in to comment.