Map sources

To switch to another map to display, select Map Source menu in app settings. There are two types of maps you can use within the app: offline and online maps.

Offline maps

Vector map source is set by default. Once you’ve downloaded the map (Internet connection required), it will be available offline.
Vector maps are detailed, smooth, fast and provide high-quality image rendered in real time on the device. It takes up less storage space than raster maps.

Note: you can also use your own maps in .sqlitedb and .mbtiles formats, previously created on a computer and then imported into your device. Such maps can be viewed offline even when your mobile device has no internet connection. However, any personal raster/tile maps will use considerably more space than vector maps you may install.

Read also: Offline Maps Import

Online maps

There is a list of built-in raster map sources available online:

  • HikeBikeMap
  • Humanitarian OSM
  • Landscape (Pro)
  • Mobile Atlas (Pro)
  • Nighboruhood (Pro)
  • OpenBusMap
  • OpenCycleMap (Pro)
  • OpenStreetMap
  • Outdoors (Pro)
  • Stamen – Terrain (USA only)
  • Stamen – Toner
  • Transport Dark (Pro)
  • USGS - Satellite
  • USGS - Satellite+
  • USGS - Topo
  • Wikimapia

Caching is always enabled – the app saves all recently viewed map images in your cache and keeps them available for offline usage. To save maps, navigate to the area you are going to visit and zoom-in to the lowest viewable level of detail while you have access to the Internet. The level of saved detail will reflect the zoom level you viewed.

Read also: Online Maps Settings.

Note: map download speed can vary while using online sources, and depends on the speed of your Internet connection and the speed of the server from where the map is downloaded.

Overlays

Overlays are semi-transparent layers with data that are shown on top of the base map. Several overlays can be shown at the same time. For example, a .geojson file with additional data can be shown as overlay. Or it could be a raster map (.sqlitedb or .mbtiles).

Additional maps

In addition to built-in online raster maps, Guru Maps also supports custom maps and overlays.

There are several types of maps supported:

  • .sqlitedb and .mbtiles for offline raster maps
  • .ms and .xml for custom maps or extra params
  • .geojson for vector overlays
  • .mapcss for custom style used for .geojson

You can add more online map sources from here:

Special .ms file should contain online map urls from the map provider. Also there could be an additional params for raster maps .sqlitedb, .mbtiles or vector overlay .geojson.

To import a file into Guru Maps use one of the following methods:

  • Place the file in the app shared folder in iTunes.
  • Open the file attached to Email on your device using the "Open in Guru Maps" option.
  • Open the file from Dropbox on your device using the "Open in.." option.

As a result, the new map source will appear in Map Source list.

Examples of use

GeoJSON

GeoJSON is an open standard format designed for representing simple geographical features, along with their non-spatial attributes. More details at: https://geojson.org

{
    "type": "Feature",
    "properties": {
        "@id": "node/524678909",
        "leaf_cycle": "evergreen",
        "leaf_type": "needleleaved",
        "natural": "tree",
        "species": "Pícea",
        "species:ru": "Ель"
    },
    "geometry": {
        "type": "Point",
        "coordinates": [
            26.0211965,
            53.1146981
        ]
    },
    "id": "node/524678909"
}

Import the file https://gurumaps.app/example/feature_collection.geojson to see on the map, forests, trees and rivers near Baranovichi, Belarus. You can import any of your GeoJSON files in Guru Maps and use them as overlays on top of the base map.

GeoJSON + MapCSS

MapCSS is a CSS-like language for map stylesheets. It's used to define how data from GeoJSON should be displayed on map.

node[natural=tree] {
    icon-image: "circle.svgpb."
    icon-tint: red;
    image-allow-overlap: true;
}
node[natural=tree][leaf_cycle=evergreen] {
    icon-tint: green;
}

Together with the feature_collection.geojson file from the previous step, import the file https://gurumaps.app/example/feature_collection.mapcss. Here is its content:

After importing, only trees will remain visible on the map. Evergreen trees will be marked with green circles and all other trees will be marked with red circles.

For any .geojson, you can add your own .mapcss style to customize when, how and which data should be shown.

Map Source .ms for vector data

Import the file http://gurumaps.app/example/vector_source1.ms. Here's the contents:

<?xml version="1.0" encoding="UTF-8"?>
<customMapSource overlay="true">
    <name>GeoJSON from url</name>
    <geojson url="https://gurumaps.app/example/feature_collection.geojson"/>
</customMapSource>

It automatically downloads the data from https://gurumaps.app/example/feature_collection.geojson after the import.

Consider the file http://gurumaps.app/example/vector_source2.ms.

<?xml version="1.0" encoding="UTF-8"?>
<customMapSource overlay="true">
    <name>GeoJSON with autoupdate</name>
    <geojson url="https://gurumaps.app/example/feature_collection.geojson" updateInterval="5"/>
    <style url="https://gurumaps.app/example/feature_collection.mapcss"/>
</customMapSource>

Tags <geojson> and <style> may contain url attribute with an address to the data and updateInterval attribute with update check interval in minutes, as well as data or a block <![CDATA[ ]]> with GeoJSON data inside. For example http://gurumaps.app/example/vector_source3.ms.

<?xml version="1.0" encoding="UTF-8"?>
<customMapSource overlay="true">
    <name>GeoJSON and Style embed in MS</name>
    <minZoom>3</minZoom>
    <maxZoom>9</maxZoom>
    <geojson>
{
    "type": "Feature."
    "properties." {},
    "geometry." {
        "type": "MultiPolygon."
        The "coordinates." [[[ [0.0, 0.0], [10.0, 0.0], [10.0, 10.0], [0.0, 10.0] ],
                        [ [2.0, 2.0], [ 8.0, 2.0], [ 8.0, 8.0], [2.0, 8.0] ]],
                        [[ [30.0,0.0], [40.0, 0.0], [40.0, 10.0], [30.0,10.0] ],
                        [ [32.0,2.0], [38.0, 2.0], [38.0, 8.0], [32.0, 8.0] ]]]}
}
    </geojson>
    <style>
        area|z3-{fill-color: green; width:1pt; color:red;}
    </style>
</customMapSource>

GeoJSON data and style are contained within a .ms file and are independent of external sources.

Raster map .sqlitedb or .mbtiles and Map Source

For raster maps you can define additional parameters in .ms file. For example, you can make a map.sqlitedb raster map an overlay by adding the following content to map.ms:

<?xml version="1.0" encoding="UTF-8"?>
<customMapSource overlay="true">
</customMapSource>

Note: .sqlitedb file and .ms file share common name map.

In addition, you can specify the <name> of the map, <minZoom> the minimum and <maxZoom> maximum zoom level when data should be downloaded, and overzoom whether to show the enlarged tiles if the user zoomes closer max zoom.

<?xml version="1.0" encoding="UTF-8"?>
<customMapSource overlay="true" overzoom="true">
    <name>Raster map with extra params</name>
    <minZoom>8</minZoom>
    <maxZoom>12</maxZoom>
</customMapSource>

Online map sources

Let's check https://ms.gurumaps.app/ms/OpenStreetMap.ms

<?xml version="1.0" encoding="UTF-8"?>
    <customMapSource>
    <name>OpenStreetMap</name>
    <url>http://{$serverpart}.tile.openstreetmap.org/{$z}/{$x}/{$y}.png</url>
    <serverParts>a b c</serverParts>
</customMapSource>

If <url> tag is set, map source will download online raster tiles. The following parts will be inserted into the template from <url>:

  • {$serverpart} - random server name from <serverParts>.
  • {$x}, {$y}, {$z} - tile address
  • {$quad} - Quad tile address
  • {$bbox} - Tile bbox in SRID 3857. Typically used for WMS servers.
  • {$invX}, {$invY} - inverted coordinates. N-x and N-y, where N is the number of tiles on the current scale.

You can find more online raster map source examples at: https://ms.gurumaps.app

results matching ""

    No results matching ""