VikSlippyMapSource

VikSlippyMapSource — the class for SlippyMap oriented map sources

Functions

Properties

gboolean check-file-server-time Read / Write / Construct Only
char * custom-http-headers Read / Write / Construct Only
glong follow-location Read / Write / Construct Only
char * hostname Read / Write
gboolean is-mbtiles Read / Write / Construct Only
gboolean is-osm-meta-tiles Read / Write / Construct Only
double lat-max Read / Write / Construct Only
double lat-min Read / Write / Construct Only
double lon-max Read / Write / Construct Only
double lon-min Read / Write / Construct Only
char * referer Read / Write / Construct Only
gboolean switch-xy Read / Write / Construct Only
char * url Read / Write
gboolean use-direct-file-access Read / Write / Construct Only
gboolean use-etag Read / Write / Construct Only
guint zoom-max Read / Write / Construct Only
guint zoom-min Read / Write / Construct Only

Object Hierarchy

    GObject
    ╰── VikMapSource
        ╰── VikMapSourceDefault
            ╰── VikSlippyMapSource
                ╰── BingMapSource

Description

The VikSlippyMapSource class handles slippy map oriented map sources. The related service is tile oriented, à la Google.

The tiles are in 'google spherical mercator', which is basically a mercator projection that assumes a spherical earth. http://docs.openlayers.org/library/spherical_mercator.html

Such service is also a type of TMS (Tile Map Service) as defined in OSGeo's wiki. http://wiki.osgeo.org/wiki/Tile_Map_Service_Specification But take care that the Y axis is inverted, ie the origin is at top-left corner. Following this specification, the protocol handled by this class follows the global-mercator profile.

You can also find many interesting information on the OSM's wiki. http://wiki.openstreetmap.org/wiki/Slippy_map_tilenames http://wiki.openstreetmap.org/wiki/Setting_up_TMS

Functions

vik_slippy_map_source_new_with_id ()

VikSlippyMapSource *
vik_slippy_map_source_new_with_id (guint16 id,
                                   const gchar *label,
                                   const gchar *hostname,
                                   const gchar *url);

Property Details

The “check-file-server-time” property

  “check-file-server-time”   gboolean

Age of current cache before redownloading tile.

Owner: VikSlippyMapSource

Flags: Read / Write / Construct Only

Default value: FALSE


The “custom-http-headers” property

  “custom-http-headers”      char *

Owner: VikSlippyMapSource

Flags: Read / Write / Construct Only

Default value: NULL


The “follow-location” property

  “follow-location”          glong

Specifies the number of retries to follow a redirect while downloading a page.

Owner: VikSlippyMapSource

Flags: Read / Write / Construct Only

Allowed values: >= -1

Default value: 0


The “hostname” property

  “hostname”                 char *

The hostname of the map server.

Owner: VikSlippyMapSource

Flags: Read / Write

Default value: "<no-set>"


The “is-mbtiles” property

  “is-mbtiles”               gboolean

Use an SQL MBTiles File for the tileset - no need for a webservice.

Owner: VikSlippyMapSource

Flags: Read / Write / Construct Only

Default value: FALSE


The “is-osm-meta-tiles” property

  “is-osm-meta-tiles”        gboolean

Read from OSM Meta Tiles - Should be 'use-direct-file-access' as well.

Owner: VikSlippyMapSource

Flags: Read / Write / Construct Only

Default value: FALSE


The “lat-max” property

  “lat-max”                  double

Maximum latitude in degrees supported by the map provider.

Owner: VikSlippyMapSource

Flags: Read / Write / Construct Only

Allowed values: [-90,90]

Default value: 90


The “lat-min” property

  “lat-min”                  double

Minimum latitude in degrees supported by the map provider.

Owner: VikSlippyMapSource

Flags: Read / Write / Construct Only

Allowed values: [-90,90]

Default value: -90


The “lon-max” property

  “lon-max”                  double

Maximum longitude in degrees supported by the map provider.

Owner: VikSlippyMapSource

Flags: Read / Write / Construct Only

Allowed values: [-180,180]

Default value: 180


The “lon-min” property

  “lon-min”                  double

Minimum longitude in degrees supported by the map provider.

Owner: VikSlippyMapSource

Flags: Read / Write / Construct Only

Allowed values: [-180,180]

Default value: -180


The “referer” property

  “referer”                  char *

The REFERER string to use in HTTP request.

Owner: VikSlippyMapSource

Flags: Read / Write / Construct Only

Default value: NULL


The “switch-xy” property

  “switch-xy”                gboolean

Switch the order of x,y components in the URL (such as used by ARCGIS Tile Server.

Owner: VikSlippyMapSource

Flags: Read / Write / Construct Only

Default value: FALSE


The “url” property

  “url”                      char *

The template of the tiles' URL.

Owner: VikSlippyMapSource

Flags: Read / Write

Default value: "<no-set>"


The “use-direct-file-access” property

  “use-direct-file-access”   gboolean

Use direct file access to OSM like tile images - no need for a webservice.

Owner: VikSlippyMapSource

Flags: Read / Write / Construct Only

Default value: FALSE


The “use-etag” property

  “use-etag”                 gboolean

Store etag in a file, and send it to server to check if we have the latest file.

Owner: VikSlippyMapSource

Flags: Read / Write / Construct Only

Default value: FALSE


The “zoom-max” property

  “zoom-max”                 guint

Maximum Zoom level supported by the map provider.

Owner: VikSlippyMapSource

Flags: Read / Write / Construct Only

Allowed values: <= 22

Default value: 18


The “zoom-min” property

  “zoom-min”                 guint

Minimum Zoom level supported by the map provider.

Owner: VikSlippyMapSource

Flags: Read / Write / Construct Only

Allowed values: <= 22

Default value: 0