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

DotCoop - Display the names of orgs an entity is a 'member of' in marker popup #252

Merged
merged 1 commit into from
Jun 5, 2024
Merged
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
6 changes: 3 additions & 3 deletions src/map-app/app/view/map/marker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export class MapMarkerView extends BaseView {
// options argument overrides our default options:
const opts = Object.assign(this.dfltOptions, {
// icon: this.presenter.getIcon(initiative),
popuptext: this.presenter.getInitiativeContent(initiative)
getPopupText: () => this.presenter.getInitiativeContent(initiative)
});

// For non-geo initiatives we don't need a marker but still want to get the initiativeContent
Expand All @@ -47,7 +47,7 @@ export class MapMarkerView extends BaseView {

initiative.__internal.marker = this.marker;

this.marker.bindPopup(opts.popuptext, {
this.marker.bindPopup(opts.getPopupText, {
autoPan: false,
minWidth: 472,
maxWidth: 472,
Expand Down Expand Up @@ -83,7 +83,7 @@ export class MapMarkerView extends BaseView {

// maxWidth helps to accomodate big font, for presentation purpose, set up in CSS
// maxWidth:800 is needed if the font-size is set to 200% in CSS:
this.marker.bindPopup(opts.popuptext, {
this.marker.bindPopup(opts.getPopupText, {
autoPan: false,
//minWidth: "472",
//maxWidth: "800",
Expand Down
Loading