Compare commits
No commits in common. "eed553d866024f37179c988690ce9e4699df9fa8" and "a60d20d76a1fac14ecda3e3192480c26dd6faba4" have entirely different histories.
eed553d866
...
a60d20d76a
@ -26,6 +26,7 @@
|
|||||||
"assets": [
|
"assets": [
|
||||||
"src/assets",
|
"src/assets",
|
||||||
"src/manifest.json"
|
"src/manifest.json"
|
||||||
|
|
||||||
],
|
],
|
||||||
"styles": [
|
"styles": [
|
||||||
"./node_modules/bootstrap-scss/bootstrap.scss",
|
"./node_modules/bootstrap-scss/bootstrap.scss",
|
||||||
@ -58,8 +59,7 @@
|
|||||||
"maximumError": "1mb"
|
"maximumError": "1mb"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"outputHashing": "all",
|
"outputHashing": "all"
|
||||||
"serviceWorker": "ngsw-config.json"
|
|
||||||
},
|
},
|
||||||
"development": {
|
"development": {
|
||||||
"optimization": false,
|
"optimization": false,
|
||||||
|
@ -7,21 +7,20 @@
|
|||||||
"installMode": "prefetch",
|
"installMode": "prefetch",
|
||||||
"resources": {
|
"resources": {
|
||||||
"files": [
|
"files": [
|
||||||
"/assets/images/logo.png",
|
"/favicon.ico",
|
||||||
"/index.html",
|
"/index.html",
|
||||||
"/manifest.json",
|
|
||||||
"/*.css",
|
"/*.css",
|
||||||
"/*.js"
|
"/*.js"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
}, {
|
||||||
{
|
|
||||||
"name": "assets",
|
"name": "assets",
|
||||||
"installMode": "lazy",
|
"installMode": "lazy",
|
||||||
"updateMode": "prefetch",
|
"updateMode": "prefetch",
|
||||||
"resources": {
|
"resources": {
|
||||||
"files": [
|
"files": [
|
||||||
"/assets/**"
|
"/assets/**",
|
||||||
|
"/*.(eot|svg|cur|jpg|png|webp|gif|otf|ttf|woff|woff2|ani)"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
316
package-lock.json
generated
316
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -9,8 +9,8 @@
|
|||||||
},
|
},
|
||||||
"private": true,
|
"private": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@angular/animations": "^17.0.0",
|
|
||||||
"@angular/cdk": "^17.0.0",
|
"@angular/cdk": "^17.0.0",
|
||||||
|
"@angular/animations": "^17.0.0",
|
||||||
"@angular/common": "^17.0.0",
|
"@angular/common": "^17.0.0",
|
||||||
"@angular/compiler": "^17.0.0",
|
"@angular/compiler": "^17.0.0",
|
||||||
"@angular/core": "^17.0.0",
|
"@angular/core": "^17.0.0",
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
import {isDevMode, NgModule} from "@angular/core";
|
import {NgModule} from "@angular/core";
|
||||||
import {FormsModule} from "@angular/forms";
|
import {FormsModule} from "@angular/forms";
|
||||||
import {BrowserModule} from "@angular/platform-browser";
|
import {BrowserModule} from "@angular/platform-browser";
|
||||||
import {BrowserAnimationsModule} from "@angular/platform-browser/animations";
|
import {BrowserAnimationsModule} from "@angular/platform-browser/animations";
|
||||||
import {ServiceWorkerModule} from "@angular/service-worker";
|
import {ServiceWorkerModule} from "@angular/service-worker";
|
||||||
import {ClickOutsideModule} from "ng-click-outside";
|
import {ClickOutsideModule} from "ng-click-outside";
|
||||||
import {ColorPickerModule} from "ngx-color-picker";
|
import {ColorPickerModule} from "ngx-color-picker";
|
||||||
import {AppComponent} from './app.component';
|
import {environment} from '../environments/environment';
|
||||||
import {AppRouting} from './app.routing';
|
import {AppRouting} from './app.routing';
|
||||||
import {CalibrateComponent} from "./components/calibrate/calibrate.component";
|
import {CalibrateComponent} from "./components/calibrate/calibrate.component";
|
||||||
import {ColorPickerDialogComponent} from "./components/colorPickerDialog/colorPickerDialog.component";
|
import {ColorPickerDialogComponent} from "./components/colorPickerDialog/colorPickerDialog.component";
|
||||||
@ -16,6 +16,7 @@ import {PermissionsComponent} from "./components/permissions/permissions.compone
|
|||||||
import {StarrySkyComponent} from "./components/starrySky/starrySky.component";
|
import {StarrySkyComponent} from "./components/starrySky/starrySky.component";
|
||||||
import {ToolbarComponent} from "./components/toolbar/toolbar.component";
|
import {ToolbarComponent} from "./components/toolbar/toolbar.component";
|
||||||
import {MaterialModule} from "./material.module";
|
import {MaterialModule} from "./material.module";
|
||||||
|
import {AppComponent} from './app.component';
|
||||||
import {HomeComponent} from "./views/home/home.component";
|
import {HomeComponent} from "./views/home/home.component";
|
||||||
import {MapComponent} from "./views/map/map.component";
|
import {MapComponent} from "./views/map/map.component";
|
||||||
|
|
||||||
@ -41,10 +42,7 @@ import {MapComponent} from "./views/map/map.component";
|
|||||||
ClickOutsideModule,
|
ClickOutsideModule,
|
||||||
ColorPickerModule,
|
ColorPickerModule,
|
||||||
MaterialModule,
|
MaterialModule,
|
||||||
ServiceWorkerModule.register('ngsw-worker.js', {
|
ServiceWorkerModule.register('ngsw-worker.js', {enabled: environment.production}),
|
||||||
enabled: !isDevMode(),
|
|
||||||
registrationStrategy: 'registerWhenStable:30000' // when stable or after 30 seconds
|
|
||||||
})
|
|
||||||
],
|
],
|
||||||
bootstrap: [AppComponent]
|
bootstrap: [AppComponent]
|
||||||
})
|
})
|
||||||
|
@ -8,30 +8,28 @@
|
|||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<meta name="viewport" content="width=device-width, user-scalable=no">
|
<meta name="viewport" content="width=device-width, user-scalable=no">
|
||||||
<meta name="theme-color" content="#000000">
|
<meta name="theme-color" content="#000000">
|
||||||
<meta name="description" content="View & edit maps collaborative with real time GPS positioning.">
|
<meta name="description" content="View & edit maps collaborative with real time GPS positioning.">
|
||||||
<!-- Google / Search Engine Tags -->
|
<!-- Google / Search Engine Tags -->
|
||||||
<meta itemprop="name" content="Map Alliance">
|
<meta itemprop="name" content="Map Alliance">
|
||||||
<meta itemprop="description" content="View & edit maps collaborative with real time GPS positioning.">
|
<meta itemprop="description" content="View & edit maps collaborative with real time GPS positioning.">
|
||||||
<meta itemprop="image" content="/assets/icons/icon-512x512.png">
|
<meta itemprop="image" content="/assets/icons/icon-512x512.png">
|
||||||
<!-- Facebook Meta Tags -->
|
<!-- Facebook Meta Tags -->
|
||||||
<meta property="og:type" content="website">
|
<meta property="og:type" content="website">
|
||||||
<meta property="og:title" content="Map Alliance">
|
<meta property="og:title" content="Map Alliance">
|
||||||
<meta property="og:description" content="View & edit maps collaborative with real time GPS positioning.">
|
<meta property="og:description" content="View & edit maps collaborative with real time GPS positioning.">
|
||||||
<meta property="og:image" content="/assets/icons/icon-512x512.png">
|
<meta property="og:image" content="/assets/icons/icon-512x512.png">
|
||||||
<!-- Twitter Meta Tags -->
|
<!-- Twitter Meta Tags -->
|
||||||
<meta name="twitter:card" content="summary_large_image">
|
<meta name="twitter:card" content="summary_large_image">
|
||||||
<meta name="twitter:title" content="Map Alliance">
|
<meta name="twitter:title" content="Map Alliance">
|
||||||
<meta name="twitter:description" content="View & edit maps collaborative with real time GPS positioning.">
|
<meta name="twitter:description" content="View & edit maps collaborative with real time GPS positioning.">
|
||||||
<meta name="twitter:image" content="/assets/icons/icon-512x512.png">
|
<meta name="twitter:image" content="/assets/icons/icon-512x512.png">
|
||||||
|
|
||||||
<link rel="icon" type="image/x-icon" href="/assets/images/logo.png">
|
<link rel="icon" type="image/x-icon" href="/assets/images/logo.png">
|
||||||
<link rel="manifest" href="manifest.json">
|
<link rel="manifest" href="manifest.json">
|
||||||
|
|
||||||
<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyDFtvCY6nH_HUoTBNf_5b-E8nRweSLYtxE"></script>
|
<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyDFtvCY6nH_HUoTBNf_5b-E8nRweSLYtxE" async defer></script>
|
||||||
<meta name="theme-color" content="#1976d2">
|
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<app-root></app-root>
|
<app-root></app-root>
|
||||||
<noscript>Please enable JavaScript to continue using this application.</noscript>
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
48
src/main.ts
48
src/main.ts
@ -8,51 +8,3 @@ initializeApp(environment.firebase);
|
|||||||
|
|
||||||
platformBrowserDynamic().bootstrapModule(AppModule)
|
platformBrowserDynamic().bootstrapModule(AppModule)
|
||||||
.catch(err => console.error(err));
|
.catch(err => console.error(err));
|
||||||
|
|
||||||
// Leaflet touch polyfill ===========================================
|
|
||||||
declare const L;
|
|
||||||
|
|
||||||
// Touch support
|
|
||||||
L.Map.mergeOptions({touchExtend: true});
|
|
||||||
L.Map.TouchExtend = L.Handler.extend({
|
|
||||||
initialize: function (map) {
|
|
||||||
this._map = map;
|
|
||||||
this._container = map._container;
|
|
||||||
this._pane = map._panes.overlayPane;
|
|
||||||
},
|
|
||||||
addHooks: function () {
|
|
||||||
L.DomEvent.on(this._container, 'touchstart', this._onTouchStart, this);
|
|
||||||
L.DomEvent.on(this._container, 'touchend', this._onTouchEnd, this);
|
|
||||||
L.DomEvent.on(this._container, 'touchmove', this._onTouchMove, this);
|
|
||||||
},
|
|
||||||
removeHooks: function () {
|
|
||||||
L.DomEvent.off(this._container, 'touchstart', this._onTouchStart);
|
|
||||||
L.DomEvent.off(this._container, 'touchend', this._onTouchEnd);
|
|
||||||
L.DomEvent.off(this._container, 'touchmove', this._onTouchMove);
|
|
||||||
},
|
|
||||||
_eventWrapper: function(e) {
|
|
||||||
let containerPoint = this._map.mouseEventToContainerPoint(e);
|
|
||||||
let layerPoint = this._map.containerPointToLayerPoint(containerPoint);
|
|
||||||
let latlng = this._map.layerPointToLatLng(layerPoint);
|
|
||||||
|
|
||||||
return {
|
|
||||||
latlng: latlng,
|
|
||||||
layerPoint: layerPoint,
|
|
||||||
containerPoint: containerPoint,
|
|
||||||
originalEvent: e
|
|
||||||
}
|
|
||||||
},
|
|
||||||
_onTouchStart: function (e) {
|
|
||||||
if (!this._map._loaded) return;
|
|
||||||
this._map.fire('touchstart', this._eventWrapper(e));
|
|
||||||
},
|
|
||||||
_onTouchEnd: function (e) {
|
|
||||||
if (!this._map._loaded) return;
|
|
||||||
this._map.fire('touchend', this._eventWrapper(e));
|
|
||||||
},
|
|
||||||
_onTouchMove: function(e) {
|
|
||||||
if(!this._map._loaded) return;
|
|
||||||
this._map.fire('touchmove', this._eventWrapper(e));
|
|
||||||
}
|
|
||||||
});
|
|
||||||
L.Map.addInitHook('addHandler', 'touchExtend', L.Map.TouchExtend);
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user