Skip to content

Commit

Permalink
Fix file name
Browse files Browse the repository at this point in the history
  • Loading branch information
rbrundritt committed Aug 27, 2020
1 parent 829a9ca commit aae7781
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 33 deletions.
5 changes: 3 additions & 2 deletions build/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ let rollupError = false;

// File name and path for non-minified browser js
const outFilePath = `${distDirPath}/azure-maps-sync-maps.js`;
const outMinFilePath = `${distDirPath}/azure-maps-sync-maps.mins.js`;
const outMinFilePath = `${distDirPath}/azure-maps-sync-maps.min.js`;

const inputPath = "./js/index.js";

Expand Down Expand Up @@ -149,8 +149,9 @@ let rollupError = false;
rollupInputOps.plugins.push(uglify());

// Rollup minified version.
const minifiedLicense = "/* MIT License - Copyright (c) Microsoft Corporation. */\n\n"
console.log("Bundling minified javascript package");
await bundle(rollupInputOps, rollupOutputOps, banner);
await bundle(rollupInputOps, rollupOutputOps, minifiedLicense);

//Remove js folder.
await fs.remove("./js");
Expand Down
12 changes: 6 additions & 6 deletions dist/azure-maps-sync-maps.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ MIT License
this._enabled = true;
this._maps = maps;
//Bind sync events.
this._maps.forEach(function (map, index) {
maps.forEach(function (map, index) {
_this._syncEvents[index] = _this._synchronizeMaps.bind(_this, map);
});
//Sync all map views with the first map.
Expand Down Expand Up @@ -105,13 +105,13 @@ MIT License
if (this._maps && this._enabled) {
var targetMaps = this._maps.filter(function (m) { return m !== baseMap; });
this._detachMapChangeHandlers();
var cam = baseMap.getCamera();
var cam_1 = baseMap.getCamera();
targetMaps.forEach(function (targetMap) {
targetMap.setCamera({
center: cam.center,
zoom: cam.zoom,
bearing: cam.bearing,
pitch: cam.pitch,
center: cam_1.center,
zoom: cam_1.zoom,
bearing: cam_1.bearing,
pitch: cam_1.pitch,
type: 'jump'
});
});
Expand Down
4 changes: 4 additions & 0 deletions dist/azure-maps-sync-maps.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 0 additions & 25 deletions dist/azure-maps-sync-maps.mins.js

This file was deleted.

0 comments on commit aae7781

Please sign in to comment.