I'm using the gwt-openlayers plugin together with geoserver and eclipse, and I found it very useful. But I have a question here: how to remove a layer from a existing map? cause there's no such method as removeLayer(), I can't only find addLayer(s) method.
2 Comments
Hide/Show CommentsJan 27, 2008
Ren Xiao
Dear author,
I'm using the gwt-openlayers plugin together with geoserver and eclipse, and I found it very useful. But I have a question here: how to remove a layer from a existing map? cause there's no such method as removeLayer(), I can't only find addLayer(s) method.
Thanks in advance!
Jul 13, 2009
carlo
Dear author.
I'm using the gwt-openlayers plugin together with geoserver and eclipse too. I want to know where i can find some documentation.
I will explain my problem: i want to add a marker on the map clicking on it.
I have created a start point Button start_button = new Button("Start!", new ClickListener(){
so i have created a listner on clik over the map
map.getEvents().register("mouseclick", map, new EventHandler(){
now i want to create a marker on it. I handle the event doing it:
public void onHandle(JSObject source, JSObject[] param) {
Map map = Map.narrowToMap(source);
LonLat start_point = map.?
in java script i wrote this :
map.events.register("click", map, function(e)
);
Can you help me to find something I can read to find a solution?
Thanks in advance
Carlo