static gdouble _get_lon_max (VikMapSource *self) { g_return_val_if_fail (VIK_IS_SLIPPY_MAP_SOURCE(self), FALSE); VikSlippyMapSourcePrivate *priv = VIK_SLIPPY_MAP_SOURCE_PRIVATE(self); return priv->lon_max; }
static guint8 _get_zoom_min (VikMapSource *self) { g_return_val_if_fail (VIK_IS_SLIPPY_MAP_SOURCE(self), FALSE); VikSlippyMapSourcePrivate *priv = VIK_SLIPPY_MAP_SOURCE_PRIVATE(self); return priv->zoom_min; }
static gboolean _is_osm_meta_tiles (VikMapSource *self) { g_return_val_if_fail (VIK_IS_SLIPPY_MAP_SOURCE(self), FALSE); VikSlippyMapSourcePrivate *priv = VIK_SLIPPY_MAP_SOURCE_PRIVATE(self); return priv->is_osm_meta_tiles; }
static DownloadMapOptions * _get_download_options( VikMapSourceDefault *self ) { g_return_val_if_fail (VIK_IS_SLIPPY_MAP_SOURCE(self), NULL); VikSlippyMapSourcePrivate *priv = VIK_SLIPPY_MAP_SOURCE_PRIVATE(self); return &(priv->options); }
static gchar * _get_hostname( VikMapSourceDefault *self ) { g_return_val_if_fail (VIK_IS_SLIPPY_MAP_SOURCE(self), NULL); VikSlippyMapSourcePrivate *priv = VIK_SLIPPY_MAP_SOURCE_PRIVATE(self); return g_strdup( priv->hostname ); }
static gchar * _get_uri( VikMapSourceDefault *self, MapCoord *src ) { g_return_val_if_fail (VIK_IS_SLIPPY_MAP_SOURCE(self), NULL); VikSlippyMapSourcePrivate *priv = VIK_SLIPPY_MAP_SOURCE_PRIVATE(self); gchar *uri = g_strdup_printf (priv->url, 17 - src->scale, src->x, src->y); return uri; }
gboolean _supports_download_only_new (VikMapSource *self) { g_return_val_if_fail (VIK_IS_SLIPPY_MAP_SOURCE(self), FALSE); VikSlippyMapSourcePrivate *priv = VIK_SLIPPY_MAP_SOURCE_PRIVATE(self); return priv->options.check_file_server_time || priv->options.use_etag; }
gboolean _is_direct_file_access (VikMapSource *self) { g_return_val_if_fail (VIK_IS_SLIPPY_MAP_SOURCE(self), FALSE); VikSlippyMapSourcePrivate *priv = VIK_SLIPPY_MAP_SOURCE_PRIVATE(self); return priv->is_direct_file_access; }
static gchar * _get_uri( VikMapSourceDefault *self, MapCoord *src ) { g_return_val_if_fail (VIK_IS_SLIPPY_MAP_SOURCE(self), NULL); VikSlippyMapSourcePrivate *priv = VIK_SLIPPY_MAP_SOURCE_PRIVATE(self); gchar *uri = NULL; if ( priv->switch_xy ) // 'ARC GIS' Tile Server layout ordering uri = g_strdup_printf (priv->url, 17 - src->scale, src->y, src->x); else // (Default) Standard OSM Tile Server layout ordering uri = g_strdup_printf (priv->url, 17 - src->scale, src->x, src->y); return uri; }