Update map_layers.js

to use the functionality on modal
Merge pull request #1 from mumualex/patch-1

Update map_layers.js
Merge remote-tracking branch 'origin/master' into experimental