I cannot get map to initialise to a given location.

I am using the map view and I want it to initialise to a user defineable location. After the scheduler has loaded I try running the below line in my razor file:

scheduler.config.map_initial_position = new google.maps.LatLng(52.3278, 1.6792);

However, nothing changes in the map! Please can you advise me how I can get this change to show on the map.

Thank you.

make sure to set this config before scheduler initialization, e.g.scheduler.config.map_initial_position = new google.maps.LatLng(52.3278, 1.6792); scheduler.init('scheduler_here',new Date(),"map");