# Isocrones do not fit in bbox if center is left of 0°

**URL:** https://ask.openrouteservice.org/t/isocrones-do-not-fit-in-bbox-if-center-is-left-of-0/60
**Category:** R
**Created:** [November 1, 2018, 1:02pm UTC](https://ask.openrouteservice.org/t/isocrones-do-not-fit-in-bbox-if-center-is-left-of-0/60 "2018-11-01T13:02:13Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![ragapack](https://ask.openrouteservice.org/user_avatar/ask.openrouteservice.org/ragapack/32/26_2.png) [@ragapack](https://ask.openrouteservice.org/u/ragapack)
#### Post date: [November 1, 2018, 1:02pm UTC](https://ask.openrouteservice.org/t/isocrones-do-not-fit-in-bbox-if-center-is-left-of-0/60/1 "2018-11-01T13:02:13Z")

</div>

Hi,  
I am working to build a shiny app adding features to a sample file of Andrzej.  
After build the Isocrones I want the Isocrones fit into the app window.  
This works fine until I create Isocrones in Europe or Asia, but if I create the Isocrones in the US or SA the bbox is much to large. The Limit of this behavior is at 0° . Isocrones in East London works fine in Belfast not.

Here a link to test.  
[https://geonexion.shinyapps.io/isocron\_pt/?lat=-26.8562477&lon=-49.2391903&zoom=12](https://geonexion.shinyapps.io/isocron_pt/?lat=-26.8562477&lon=-49.2391903&zoom=12)

The Code is:  
observe({

```
leafletProxy("map") %>%
  
  clearGeoJSON() %>%
  
  addGeoJSON(isochrones())%>%
fitBBox(isochrones()$bbox)

```

})

Cheers,  
Thomas

---

<div class="post-metadata">

### Author: ![andrzej](https://ask.openrouteservice.org/user_avatar/ask.openrouteservice.org/andrzej/32/10_2.png) [@andrzej](https://ask.openrouteservice.org/u/andrzej)
#### Post date: [November 2, 2018, 11:01am UTC](https://ask.openrouteservice.org/t/isocrones-do-not-fit-in-bbox-if-center-is-left-of-0/60/2 "2018-11-02T11:01:55Z")

</div>

Hi Thomas,

thank you for reaching out! The root cause of the observed behavior is a bug in the isochrones endpoint which returns a corrupted bounding box if the points lie on the Southern or Western hemisphere. We will look into this, you can track the progress in the [issue](https://github.com/GIScience/openrouteservice/issues/348).

Cheers,  
Andrzej
