[views|js] allow to cutomize map options (closes #4148172) [applied]