Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix custom pointer #400

Merged
merged 1 commit into from
Mar 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion frontend/src/app/programs/base/detail/detail.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { MainConfig } from '../../../../conf/main.config';
declare let $: any;

export const markerIcon = L.icon({
iconUrl: 'assets/pointer-blue2.png',
iconUrl: MainConfig['OBS_POINTER'],
iconAnchor: [16, 42],
});

Expand Down
2 changes: 1 addition & 1 deletion frontend/src/app/programs/sites/detail/detail.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ export class SiteDetailComponent
date: e.date,
author: e.author,
id: e.id_visit,
json_data: e.json_data
json_data: e.json_data,
};
this.loadJsonSchema().subscribe((jsonschema: any) => {
const schema = jsonschema.schema.properties;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const PROGRAM_AREA_STYLE = {
// TODO: migrate to conf
export const taxonListThreshold = 10;
export const siteFormMarkerIcon = L.icon({
iconUrl: 'assets/pointer-blue2.png', // TODO: Asset path should be normalized, conf ?
iconUrl: MainConfig['NEW_OBS_POINTER'],
iconAnchor: [16, 42],
});
export const myMarkerTitle =
Expand Down