mapping-component-package-jp 0.1.21 → 0.1.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/js/mapEncapsulation/mapOverlayManager.js +1 -11
package/package.json
CHANGED
|
@@ -500,11 +500,9 @@ export class MapOverlayManager {
|
|
|
500
500
|
if (location && location.geometry.coordinates && location.geometry.coordinates.length > 0) {
|
|
501
501
|
|
|
502
502
|
var polies = location.geometry.coordinates;
|
|
503
|
-
//var spolies = fpoly.split(',');
|
|
504
503
|
var paths = [];
|
|
505
504
|
|
|
506
505
|
polies.forEach(function (p) {
|
|
507
|
-
//var sp = polyline.decode(p);
|
|
508
506
|
var path = [];
|
|
509
507
|
p.forEach(function (c) {
|
|
510
508
|
path.push(new google.maps.LatLng(parseFloat(c[1]), parseFloat(c[0])));
|
|
@@ -539,17 +537,9 @@ export class MapOverlayManager {
|
|
|
539
537
|
}
|
|
540
538
|
});
|
|
541
539
|
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
mapBoundsChangedListener = google.maps.event.addListenerOnce(map, 'bounds_changed', function () {
|
|
545
|
-
//console.log('upload files bounds_changed');
|
|
546
|
-
//console.log(bounds.getCenter().lat()+', '+bounds.getCenter().lng());
|
|
547
|
-
//console.log(offsetX+', '+offsetY);
|
|
548
|
-
|
|
540
|
+
google.maps.event.addListenerOnce(map, 'bounds_changed', function () {
|
|
549
541
|
offsetCenter(bounds.getCenter(), offsetX, offsetY);
|
|
550
|
-
|
|
551
542
|
});
|
|
552
|
-
//mapListeners.push(mapBoundsChangedListener);
|
|
553
543
|
|
|
554
544
|
map.fitBounds(bounds);
|
|
555
545
|
}
|