Hi,
I’m trying to set the initial center coordinates and zoom level using
epic-map-center = [-120.195057, 65.544367]
epic-map-zoom = 14
Can’t seem to get either to work.
Thanks
Hi,
I’m trying to set the initial center coordinates and zoom level using
epic-map-center = [-120.195057, 65.544367]
epic-map-zoom = 14
Can’t seem to get either to work.
Thanks
Okay I reviewed the documentation again and figured out for the center option I needed to use
epic-map-center_lng & epic-map-center_lat for the nested values.
I’m still trying to figure out how to set the zoom level if their is only one marker. Currently it zooms in too far.
Thanks
K figured that one out as well:
epic-map-bounds-options_max-zoom
Amazing to hear that you got it all sorted, @TDaley!
Yes, due to the auto-bounding (adjusting the map view to fit all markers) the max-zoom will do the trick. You can add this option to either bounds, as you have, or to the map itself with epic-map-max-zoom.
I’m in the process of compiling a list of tips and tricks so if there’s anything else you’re stuck on or have figured out, do let me know!
Chris @epic