Hi All,
I've been using Openmap for a while and now I'm trying to focus on some performance issues I have on my application with WMS and Tiles loading.
I'm trying to add a MapTileLayer to the SimpleMap2 Application. The layer is there (I can see from the Layer Control menu) and is enabled but no Tile is displayed.
I'm on OpenJDK 1.8.0. and developing with Netbeans. I did a lot of tests, also with older version of OpenMap (5.0.3)...but nothing to do. I can't figure out the problem.
Can you please tell me if I'm doing something wrong?
This is what I added to the SimpleMap2.java code
//MapTile
MapTileLayer mapTileLayer = new MapTileLayer();
mapTileLayer.setName("MTL");
Properties tileProperties = new Properties();
tileProperties.setProperty("rootDir", "
http://c.tile.openstreetmap.org/");
mapTileLayer.setProperties(tileProperties);
mapTileLayer.setVisible(true);
mapPanel.getMapHandler().add(mapTileLayer);
Thank you very much
Ciao,
Stefano