Хочу показать WMS в андроиде с osmdroid. Я написал этот код.
Но это не ответ. В чем дело? Можете ли вы вести меня.
Спасибо
public class OSMFragmentTest extends Activity {
@Override public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.frafment_layout_test);
MapView map = (MapView) findViewById(R.id.osm_wms_1);
WMSTileSource wmsTileSource;
wmsTileSource = new WMSTileSource( "OGC:WMS", new String[]{"http://ows.terrestris.de/osm/wms"},"SRTM30-Hillshade","1.1.1","EPSG:4326","",5 );
map.setTileSource(wmsTileSource);
map.setBuiltInZoomControls(true);
map.setMultiTouchControls(true);
GeoPoint startPoint = new GeoPoint(37.1, 57.01);
IMapController mapController = map.getController();
mapController.setZoom(9);
mapController.setCenter(startPoint);
}
}