gluonhq / maps

https://gluonhq.com/labs/maps/
GNU General Public License v3.0
137 stars 34 forks source link

Missing map tile #50

Closed leowhss closed 3 years ago

leowhss commented 3 years ago

Hello,

I am using Gluon Maps 2.0.0-ea+3. I noticed that the same tile always fails to load for that specific zoom level.

For that same location, it does appear in other zoom levels. This issue can be repeated everytime,

Going to OSM in the browser has no issues and the tile appears.

missing-tile

Thanks,

Sean

leowhss commented 3 years ago

Hello,

The following code was used:

public class MapJFX extends Application {

/**
     * @param args the command line arguments
     */
    public static void main(String[] args) {        
        launch(args);
    }

    @Override
    public void start(Stage stage) throws Exception {
        MapView view = new MapView();
        view.setCenter(new MapPoint(1.290270, 103.851959));        
        view.setZoom(11);
        Scene scene;
        if (Platform.isDesktop()) {            
            scene = new Scene(view, 1024, 768);
            stage.setTitle("Gluon Maps Demo");
        } else {
            BorderPane bp = new BorderPane();
            bp.setCenter(view);
            final Label label = new Label("Gluon Maps Demo");
            label.setAlignment(Pos.CENTER);
            label.setMaxWidth(Double.MAX_VALUE);
            label.setStyle("-fx-background-color: dimgrey; -fx-text-fill: white;");
            bp.setTop(label);
            Rectangle2D bounds = Screen.getPrimary().getVisualBounds();
            scene = new Scene(bp, bounds.getWidth(), bounds.getHeight());
        }
        stage.setScene(scene);
        stage.show();
    }
}
abhinayagarwal commented 3 years ago

I am closing this issue as this cannot be replicated with Gluon Maps 2.0.0-ea+4:

image

If this is still an issue please feel free to re-open it with a reproducible sample.