-
Notifications
You must be signed in to change notification settings - Fork 75
Common tasks
jaakla edited this page Jan 16, 2015
·
24 revisions
A lot of of more advanced samples and map data layers are in AdvancedMap3D application, which is also in the same GIT repository as simple HelloMap.
- Google maps replacement
- Upgrading from Nutiteq MGMaps SDK 1.x
- Upgrading from Nutiteq SDK pre 2.3 to 2.3 or newer
- BasicMarker - Add a clickable marker to map
- VectorObjects - Add lines, polygons and points to map
- Animated marker - animate markers, or any other objects on map
- Draw circle - for GPS "my location" for example
- BasicConfiguration - caching and other options for smoother UX
- BasicEvents - Get clicks on objects, map movement and drawings
- HandleFlip, so map view is not reset
- Setting Constraints to map manipulation (zoom, area, tilt, rotation)
- Different device resolutions - how to handle huge variation of DPI on Android
- Map calculations - screen to geo, geo to screen etc
- Capture map image to a Bitmap
- Many layers given below are in own project: https://github.com/nutiteq/advancedlayers
- Tile Sources - select base map, streets or satellites based on terms and needs
- WMS map layer - useful for GIS people. It requests WMS map by tiles, so you can have server-side caching in addition to client caching (which is done for tiles anyway).
- GDAL layer - use GDAL library to read raster data from wide range of different data formats (e.g. GeoTIFF, BSB etc)
- Combined tile sources - combination of offline (packaged) map and online tiles
- Offline map tiles - how to use offline maps with MBTiles, and other built-in source options
- MapBox layer uses MapBox tiles with UTFGrid tooltips and legend
- Data sources API is general data source management API, useful for advanced and custom data sources
- Vector layer speed optimization - some hints to speed up vector layers with hundreds of thousands and more objects
- Mapsforge layer - use Mapsforge open source library to generate maps from offline vector data.
- OGR layer - use OGR library to read vector data from variety of file formats like ESRI Shapefiles, S-57, SDTS, Mapinfo mid/mif and TAB
- Spatialite layer - SQLite-based offline data storage
- CartoDB layer uses CartoDB server API
- Online routing using MapQuest Open API backends
- Offline routing using Graphhopper open source library
- Drive time regions layer using Graphhopper service
- Custom Label - how to customise label balloons
- Use View for Label - how to add view to map which looks like a balloon label.
-
Editable MapView - how to create editable layers for vector editing. See this first.
- Editable CartoDB Layer - specifics for CartoDB online editing
- Editable Spatialite Layer - specifics for Spatialite offline editing
- Custom projections - how to use different projections for to your map data
- Custom Tilesets - how to use/configure bounds for custom tilesets / custom projections
- Globe renderer
- 3D City data
- Polygon3D is the simplest object to get started with 3D world
- NMLModelDbLayer enables to include KMZ/Collada models to map
- OpenStreetMap buildings in 3D
- Stereo display mode for HTC and LG Real3D screens
- Single manipulatable 3D model on map load and show a small car
- NML model samples - download some free sample 3D models
- Testing with emulator. To run the app you need latest (4.x) emulator ABI, and make sure that "GPU Emulation" feature is turned on, it is off by default for older emulators. Note that Android Emulator still does not support multi-touch gestures, so we suggest to use real device for testing.
- To turn on SDK logging add these lines to beginning of your onCreate():
Log.enableAll();
Log.setTag("mymapapp");