Hello Guys,

                  I am using the following code to add a tile overlay
to the map. I have my own custom tilelayer ( which has its own
gettileurl function).

 MyTileLayer TileLayer =  new MyTileLayer(myCopyright, nMinZoom,
nMaxZoom);

  TileLayerOverlay tlo = new TileLayerOverlay(TileLayer);
 
ClientApplication.getInstance().getGisPanel().getMap().addOverlay(tlo);
   tlo.setVisible(true);

The first time I add it gettileurl is called and the image is drawn in
screen. but after zooming or panning the gettileurl function is not
called anymore and therefore no tiles on screen.

I know I can do the custom map types but I would rather use the
overlays because I want to be able to add layers dynamically based on
user input ..also I want to be able to change the visibility / opacity
of the layers .

Can anybody please let me know why this does not work? is this a bug ?
or am i doing something wrong ? I am very new to gwt.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to