When setting my bounds for a Leaflet map - in this case, it is the state of Alaska - how can I prevent it from splitting on the 180 longitude line, and having part of the Alaskan islands on the other side of the map?
Here is the JS I'm using:
$.getJSON(myGeoJSONPath,function(data){
geoJsonLayer = L.geoJson(data, {
clickable: false,
style: myCustomStyle
}).addTo(map);
geojsondata = data;
map.fitBounds(geoJsonLayer.getBounds());
});
Its hard to explain, but here is an example of where it is happening: https://cartographyvectors.com/map/1205-us-timezones