[centermap] centering map on last point centermap
authorJulie Hill Roa <julie.hill.roa@gmail.com>
Sun, 6 Dec 2015 14:16:11 +0000 (15:16 +0100)
committerJulie Hill Roa <julie.hill.roa@gmail.com>
Sun, 6 Dec 2015 14:16:11 +0000 (15:16 +0100)
src/components/map/map.ts

index ac8de4c..57011c7 100644 (file)
@@ -212,7 +212,6 @@ export class Map {
                 };
                 instance.map.panTo({lat:unit.geometry.coordinates[1],lng:unit.geometry.coordinates[0]});
             }
-           // this.getpolygonCenter(unit.geometry.coordinates,instance);
 
             this.map.data.addGeoJson(unit);
             this.map.data.setStyle(function (feature) {