When viewing the mode which shows pins on a map, if we have not selected a record to view the location, the map shows New York. Being based in the UK, how can we change this so if no record is displayed the map will display a location more relevant to us until a record is selected?
Hi William –
While there is no option to modify this within the configuration, you can add the following into your Custom JS area in the settings file:
scheduler.config.map_initial_position = new google.maps.LatLng(48.724, 8.215);
Replace the two numbers in parenthesis with the Latitude and Longitude that you’d like to start.
Instructions for adding this code:
Let us know how it goes.
Works perfectly. Exactly what we need. Now the user generally does not need to click into the list of events that day for the map to show the events it is listing. Thankfully the events are clustered around a particular area, which is why this was change was needed.
I followed your instructions to modify the default starting Google map coordinates, applying the string “scheduler.config.map_initial_position = new google.maps.LatLng(27.1147021, -82.3804025);” in the Custom JS section of the Options. I have tried both enclosing the string within quotes (and without), but the map still reverts to the NYC area. Did I miss something? If I select an Event record, it displays the correct location. If I change the filtering value for the Calendar (i.e. Category or Zone or Assigned Employee), the map not only reverts to the NYC location, but also the selected Calendar display type (i.e. Map Week) changes to Map Day.
Try this instead:
scheduler.config.map_initial_position = new google.maps.LatLng(27.1147021, -82.3804025);
You must be logged in to reply to this topic.