Following DataSources are available for Nutiteq SDK 3.x on all supported platforms (iOS, Android and others). Some DataSources are more universal and could be used for different data types and Layers: vector or raster, others can be used for specific layer type only. MBTilesTileDataSource is universal datasource for vector or raster data, so it can be used two ways. For raster data it needs MBTiles format files, see MBTiles guide with list of some tools and sources to generate them. For own packaged vector data you need Nutiteq specific vector files packages (NTVT – NutiTeq Vector Tile) and styling files in Mapnik XML format. Here is free sample packages with OpenStreetMap data: Nutiteq SDK provides built-in download service called Package Manager to get the map packages for a country or smaller region easily, this is described in separate page: learn more . Sample here is for case when you have own generated MBTiles file with vector data. Vector maps needs always proper style definition. You can find compatible stylesheet files from sample code, these are zip files which have Mapnik XML styling with resources (fonts, images) inside. You can use ones with sample projects, e.g. OSMBright with 3D buildings See Vector Tile Styling for details about styling. Nutiteq SDK provides support for built-in vector tiles, as provided by Nutiteq Maps as a Service packages and it is available for all plans. This is suitable as universial base map. With Nutiteq Starter, Pro or Enterprise plans you can use also other vector tile map data sources. It is similar to custom raster map data sources, only adding vector decoder is needed. Here we connect to MapBox vector tiles, which have very similar (but not identical) data structure, so we can use same vector styling. Before using this in your app please check also from MapBox if they allow this, and make sure you use your MapBox key in URL. You may need to use your own vector tile server URL, and your suitable styling instead. For online raster tiles you can use any common web tiles in PNG or JPG formats, in Spherical Mercator system. See our Raster tile sources list . Nutiteq SDK has in-memory datasources where application can add vector objects which are shown on map as overlay layer. LocalVectorDataSource is a dynamic data source that is empty initially and supports adding/removing objects. Objects are kept in local memory and the state is not persistent. By default, all added objects are always rendered. For detailed code samples see map data overlay page, this has samples how to add Points, Markers, Texts, Lines and Polygons to map. Nutiteq SDK supports Ground Overlays – bitmaps (PNG, JPG etc) which are put to map to your defined location. Most commonly this is used for indoor floorplans, but it can be used also for other cases. BitmapOverlayRasterTileDataSource defines bitmap image, and geographical coordinates of the bitmap. See Ground Overlay guide for more info. There are some DataSources which take another DataSource as input, do internal logic or processing and output DataSource itself. This way you can pipe datasources to have customized logic. Caches HTTP tiles to a persistent sqlite database file. If tile exists in the database, then request to original data source is skipped. Can be used for both raster and vector tiles. The data source takes original source’s expires headers into account. An in-memory cache data source. Though layers also cache tiles, the tiles are uncompressed and usually take 2-5x more memory after being loaded. CompressedCacheTileDataSource keeps all tiles in compressed format and thus makes better use of existing memory. A tile data source that combines two data sources (usually offline and online) and selects tiles based on zoom level. All requests below specified zoom level are directed to the first data source and all requests at or above specified zoom level are directed to the second data source. With the GIS extension we provide OGRVectorDataSource and GDALRasterTileDataSource which can open ESRI Shapefile, GeoTIFF, KML, GML, GPX, MapInfo and many other GIS vector and raster formats directly. Your code just defines file and layer to be used. Nutiteq provides it as commercial package, also free evaluation is avaliable, email to get it. See MyMergedRasterTileDataSource in samples to get example for virtual datasource which takes raster data from two raster datasources and merges the map in pixel level. Note that the second datasources should have a lot of transparent or semitransparent pixels, or the pixels from the first datasource will be hidden. Source.

Яндекс.Метрика Рейтинг Free Web Counter
page counter
Last Modified: January 30, 2014 @ 12:00 am