V-Leaflet plugin shows grey map

Hi,
I’m trying to use the new 0.3.0 version of v-leaflet.
i had it working on 0.0.9 with BaseLayer, and now changed it to LTileLayer.

The problem i’m having is that i dont see any of the tiles on the map.
just getting a grey plugin with the controls.

clicking on the “layers” icon doesnt do anything, and i cant select any of the layers.

LMap map = new LMap();
map.setZoomLevel(8);
map.setSizeFull();
map.setControls(new ArrayList<Control>(Arrays.asList(Control.values())));
LTileLayer openStreetMap = new LTileLayer("http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png");
map.addBaseLayer(openStreetMap, "OpenStreetMap");

Hi,

Have you recompiled your widgetset? Similar code snippet works fine for me.

cheers,
matti

Hi,
Yes, i’ve recompiled the widgetset.
i’m attaching the screen cap.
the map area is grey and the “layers” icon in the top right is unclickable.

i’ve tested on latest chrome and firefox browsers.

Thanks,
Yariv
13341.png

I’ve seen that theres an updated version 0.4.1
i’ve updated and recompiled the widgetset, but the problem remains the same.

could it be something in the environment ?

Hi,

You could post a full code example of what you are doing, I can then check if it works here. The code snippet above works just fine.

You can could use firebug or similar to see for potential errors. Sometimes I have faced isseus where openstreetmap tile server refuse to serve some referrer/ip. Also you can use “?debug” parameter to your vaadin app.

cheers,
matti

Hi,
LTileLayer osmTiles = new LTileLayer(“http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png”);
When im using the above url im getting map in local language …can I get them only in English,if we can get Plz provide the url.
I have found some maps but when I try to zoom in its showing “data not yet prepared”
Thanks in Advance,
prasad

By local do you mean your local language or the local language of each country on the map?