Skip to content

Commit

Permalink
move map colors into variables
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanTG committed Oct 3, 2024
1 parent b08a02f commit 589c9a3
Show file tree
Hide file tree
Showing 3 changed files with 147 additions and 76 deletions.
2 changes: 1 addition & 1 deletion app/assets/javascripts/application.js.erb
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ function showLocations(ids, lats, lons, contents, num_machines, latLng) {
if (mapAdjusted === 0) {
map = new maplibregl.Map({
container: 'map_canvas',
style: '<%= asset_path "map_style.json" %>'
style: map_style_obj
});
map.addControl(new maplibregl.ScaleControl({unit: 'imperial'}), 'bottom-right');
map.addControl(new maplibregl.NavigationControl(), 'bottom-right');
Expand Down
Loading

0 comments on commit 589c9a3

Please sign in to comment.