Skip to content

Commit

Permalink
938 - Set geocoder placeholder
Browse files Browse the repository at this point in the history
  • Loading branch information
bferguso committed Jul 11, 2024
1 parent e82187e commit f7ba72f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/bcrhp/bcrhp/media/js/utils/map-configurator.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,13 @@ define(['mapbox-gl'], function(MapboxGl){

postConfig: function(map) {
console.log("Custom post-config");
// Workaround for bug in core causing geocoder placeholder to be null
map._controls.forEach(control => {
if (control.hasOwnProperty("geocoderService") && control.hasOwnProperty("placeholder"))
{
control.setPlaceholder("Find an address...");
}
});
},
};

Expand Down

0 comments on commit f7ba72f

Please sign in to comment.