Open kylepolich opened 8 years ago
Here's the code that would need updating:
if (state['map']['center_lat'] == undefined) {
state['map']['center_lat'] = 39.50
}
if (state['map']['center_lng'] == undefined) {
state['map']['center_lng'] = -98.35
}
if (state['map']['zoom'] == undefined) {
state['map']['zoom'] = 4
}
Right now,
code.js
assigns a new user to be centered on the continental united states at a large zoom.It would be preferred if (when possible) the user's actual locale was detected and the zoom and center was picked appropriate to the user for a better experience.