Pan and Zoom Problem After adding a tile layer.

Jul 12, 2010 at 12:40 PM

hi,

When I add a tile layer on My Map objects Layers List. DeepEarth Mouse and Keyboard Interaction not works.

I have a CustomTileSource class for our custom map layers. It works very well. If I delete second row written below, DeepEarth shows cities successfully.

MyMap.BaseLayer.Source = new CustomTileSource(MapDetails.Cities);
MyMap.Layers.Add(new TileLayer(MyMap) { Source = new CustomTileSource(MapDetails.Roads) });

Thanks In Advance

Developer
Jul 14, 2010 at 8:51 AM

MyMap.BaseLayer.Source = new CustomTileSource(MapDetails.Cities);

MyMap.BaseLayer.Overlays.Add(new TileLayer(MyMap) { Source = new CustomTileSource(MapDetails.Roads) });


Try using the Overlays

Jul 14, 2010 at 9:15 AM
Edited Jul 14, 2010 at 10:04 AM

Thank you very much. It works with a little correction!

MyMap.BaseLayer.Source = new CustomTileSource(MapDetails.Cities);

MyMap.BaseLayer.Overlays.Add(new CustomTileSource(MapDetails.Roads));