ag visual farm added to the dev branch field related stuff not imported yet, and the geocoder has some bugs with the new version
This commit is contained in:
parent
b4da0d6859
commit
022925d7d7
41 changed files with 8895 additions and 79 deletions
|
|
@ -1,7 +1,7 @@
|
|||
import { pond } from "protobuf-ts/pond";
|
||||
import { or } from "utils/types";
|
||||
import { cloneDeep } from "lodash";
|
||||
// import { MarkerData } from "Maps/mapMarkers/Markers";
|
||||
import { MarkerData } from "maps/mapMarkers/Markers";
|
||||
|
||||
interface FeatureVersionByPlatform {
|
||||
photon: string;
|
||||
|
|
@ -65,20 +65,20 @@ export class Device {
|
|||
return loc;
|
||||
}
|
||||
|
||||
// public getMarkerData(
|
||||
// clickFunc?: (event: React.PointerEvent<HTMLElement>, index: number, isMobile: boolean) => void,
|
||||
// updateFunc?: (location: pond.Location) => void
|
||||
// ): MarkerData {
|
||||
// let m: MarkerData = {
|
||||
// longitude: this.location()?.longitude ?? 0,
|
||||
// latitude: this.location()?.latitude ?? 0,
|
||||
// title: this.name(),
|
||||
// colour: this.settings.theme?.color ?? "blue",
|
||||
// clickFunc: clickFunc,
|
||||
// updateFunc: updateFunc
|
||||
// };
|
||||
// return m;
|
||||
// }
|
||||
public getMarkerData(
|
||||
clickFunc?: (event: React.PointerEvent<HTMLElement>, index: number, isMobile: boolean) => void,
|
||||
updateFunc?: (location: pond.Location) => void
|
||||
): MarkerData {
|
||||
let m: MarkerData = {
|
||||
longitude: this.location()?.longitude ?? 0,
|
||||
latitude: this.location()?.latitude ?? 0,
|
||||
title: this.name(),
|
||||
colour: this.settings.theme?.color ?? "blue",
|
||||
clickFunc: clickFunc,
|
||||
updateFunc: updateFunc
|
||||
};
|
||||
return m;
|
||||
}
|
||||
|
||||
public featureSupported(feature: string): boolean {
|
||||
let versions = featureVersions.get(feature);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue