Skip to content
This repository was archived by the owner on Sep 8, 2025. It is now read-only.
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
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
* Fix resource form input counter
* Remove hideVotes option from resource representation
* Move docker builds from travis to github actions
* Remove global option mapImageFlag


## v0.23.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ module.exports = [
{
name: 'map',
label: 'Map',
fields: ['mapCenterLat', 'mapCenterLng', 'mapZoomLevel', 'openstreetmapsServerUrl', 'mapPolygonsKey', 'mapImageFlag', 'mapUploadedFlag', 'mapFlagWidth', 'mapFlagHeight']
fields: ['mapCenterLat', 'mapCenterLng', 'mapZoomLevel', 'openstreetmapsServerUrl', 'mapPolygonsKey', 'mapUploadedFlag', 'mapFlagWidth', 'mapFlagHeight']
},
{
name: 'mainMenu',
Expand Down
7 changes: 0 additions & 7 deletions packages/cms/lib/modules/openstad-global/lib/fields.js
Original file line number Diff line number Diff line change
Expand Up @@ -319,13 +319,6 @@ module.exports = [
type: 'boolean',
label: 'Display login and logout link in top links?'
},
{
name: 'mapImageFlag',
type: 'select',
label: 'Welke kleur vlag moet er getoond worden op de plattegrond in het begroten overzicht en op de planpagina?',
choices: flagChoices,
def: 'red'
},
{
name: 'openstreetmapsServerUrl',
type: 'string',
Expand Down
8 changes: 0 additions & 8 deletions packages/cms/lib/modules/openstad-pages/lib/load-ideas.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,14 +76,6 @@ module.exports = function (req, res, next) {
idea.overviewUrl = `${siteUrl}/${ideaOverviewSlug}?ideaId=${idea.id}`;
idea.createdTime = createdData.getTime();

if (idea.location && idea.location.coordinates[0] && idea.location.coordinates[1]) {
let lat = idea.location.coordinates[0];
let lng = idea.location.coordinates[1];
let flag = req.data.global.mapImageFlag ? 'flag-' + req.data.global.mapImageFlag : 'flag-red';
idea.locationMapImage = `https://maps.googleapis.com/maps/api/staticmap?center=${lat},${lng}&zoom=15&size=380x214&maptype=roadmap&markers=icon:${appUrl}/modules/openstad-assets/img/idea/${flag}.png|${lat},${lng}&key=${googleMapsApiKey}`;
idea.locationUrl = `https://maps.google.com/?ll=${lat},${lng}`;
}

return idea;
});

Expand Down