HERE Android SDK Developer's Guide

UrlMapRasterTileSourceBase

The class UrlMapRasterTileSourceBase is a member of com.here.android.mpa.mapping .

Class Summary

public abstract class UrlMapRasterTileSourceBase

extends com.here.android.mpa.mapping.MapRasterTileSource, java.lang.Object

Represents an abstract base class for URL map raster tile sources.

[For complete information, see the section Class Details]

Constructor Summary

Table 1. Constructors in UrlMapRasterTileSourceBase
Constructors

UrlMapRasterTileSourceBase ()

Method Summary

Table 2. Methods in UrlMapRasterTileSourceBase
Methods

public TileResult getTileWithError (int x, int y, int zoomLevel)

UrlMapRasterTileSourceBase will only retrieve tile data using the source URL.

public abstract String getUrl (int x, int y, int zoomLevel)

Gets the URL representing the source of the specified raster tile image.

public boolean hasTile (int x, int y, int zoomLevel)

UrlMapRasterTileSourceBase will only retrieve tile data using the source URL.

Class Details

Represents an abstract base class for URL map raster tile sources. Extend this class and implement the getUrl(int, int, int) method to create custom URL raster tile sources.

Constructor Details

UrlMapRasterTileSourceBase ()

Method Details

public TileResult getTileWithError (int x, int y, int zoomLevel)

UrlMapRasterTileSourceBase will only retrieve tile data using the source URL. A TileResult.getData() always returns null and TileResult.getError() always returns NONE.

Parameters:

  • x

    X coordinate

  • y

    Y coordinate

  • zoomLevel

    zoom level

Returns:

A TileResult representing tile data and operation error. Check TileResult#getError() to check for error. Check TileResult#getData() to get RasterTile

public abstract String getUrl (int x, int y, int zoomLevel)

Gets the URL representing the source of the specified raster tile image.

Note: implementations of raster tile sources must override this method to provide a complete URL string pointing to the raster tile image.

Parameters:

  • x

    A current raster tile's X-coordinate

  • y

    A current raster tile's Y-coordinate

  • zoomLevel

    A current raster tile's zoom level

Returns:

The URL source for the raster tile image. Return null if an URL cannot be created.

public boolean hasTile (int x, int y, int zoomLevel)

UrlMapRasterTileSourceBase will only retrieve tile data using the source URL. So hasTile always returned false .

Parameters:

  • x

    X coordinate

  • y

    Y coordinate

  • zoomLevel

    zoom level

Returns:

true if the tile exists, false otherwise

You cannot use this account to purchase a commercial plan on Developer Portal, as it is already associated to plans with different payment methods.

To purchase a commercial plan on Developer Portal, please register for or sign in with a different HERE Account.

Something took longer than expected.

The project should be available soon under your projects page.

Sorry, our services are not available in this region.

Something seems to have gone wrong. Please try again later.

We've detected that your account is set to Australian Dollars (AUD).
Unfortunately, we do not offer checkouts in AUD anymore.
You can continue using your current plan as normal, but to subscribe to one of our new plans,
please register for a new HERE account or contact us for billing questions on selfservesupport@here.com.