本文整理汇总了Java中org.mapsforge.map.rendertheme.InternalRenderTheme.OSMARENDER属性的典型用法代码示例。如果您正苦于以下问题:Java InternalRenderTheme.OSMARENDER属性的具体用法?Java InternalRenderTheme.OSMARENDER怎么用?Java InternalRenderTheme.OSMARENDER使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类org.mapsforge.map.rendertheme.InternalRenderTheme
的用法示例。
在下文中一共展示了InternalRenderTheme.OSMARENDER属性的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getRenderTheme
private XmlRenderTheme getRenderTheme() {
try {
return InternalRenderTheme.DEFAULT;
} catch (Exception e) {
Analytics.sendException(getContext(), e, false);
}
return InternalRenderTheme.OSMARENDER;
}
示例2: getRenderTheme
private static XmlRenderTheme getRenderTheme(String xmlRenderThemeFilename){
if(Strings.isEmpty(xmlRenderThemeFilename)==false){
File renderThemeFile = RelativeFiles.validateRelativeFiles(xmlRenderThemeFilename, AppConstants.ODL_CONFIG_DIR);
if (renderThemeFile != null) {
try {
return new ExternalRenderTheme(renderThemeFile.getAbsoluteFile());
} catch (Exception e) {
// just return the default theme
}
}
}
return InternalRenderTheme.OSMARENDER;
}
示例3: initializeRenderTheme
private void initializeRenderTheme()
{
try
{
AndroidSvgBitmapStore.clear();
xmlRenderTheme = new BufferedAssetsRenderTheme(this, "", "renderthemes/rendertheme-v4.xml", this);
}
catch (IOException e)
{
e.printStackTrace();
xmlRenderTheme = InternalRenderTheme.OSMARENDER;
}
ForgeMap.onRenderThemeChanged();
}
示例4: getRenderTheme
/**
* This MapViewer uses the deprecated built-in osmarender theme.
* @return the render theme to use
*/
@Override
protected XmlRenderTheme getRenderTheme() {
return InternalRenderTheme.OSMARENDER;
}
示例5: getRenderTheme
@Override
protected XmlRenderTheme getRenderTheme() {
return InternalRenderTheme.OSMARENDER;
}
示例6: getRenderTheme
/**
* @return the rendertheme for this viewer
*/
protected XmlRenderTheme getRenderTheme() {
return InternalRenderTheme.OSMARENDER;
}
示例7: MapsforgeMapSource
public MapsforgeMapSource(String mapFileName) {
mapFile = new File(mapFileName);
displayModel = new DisplayModel();
xmlRenderTheme = InternalRenderTheme.OSMARENDER;
}
示例8: createFromFiles
/**
* Creates a new MapsForgeTileSource from file.
* <p></p>
* Parameters minZoom and maxZoom are obtained from the
* database. If they cannot be obtained from the DB, the default values as
* defined by this class are used, which is zoom = 3-20
*
* @param file
* @return the tile source
*/
public static MapsForgeTileSource createFromFiles(File[] file) {
//these settings are ignored and are set based on .map file info
int minZoomLevel = MIN_ZOOM;
int maxZoomLevel = MAX_ZOOM;
int tileSizePixels = TILE_SIZE_PIXELS;
return new MapsForgeTileSource(InternalRenderTheme.OSMARENDER.name(), minZoomLevel, maxZoomLevel, tileSizePixels, file, InternalRenderTheme.OSMARENDER, MultiMapDataStore.DataPolicy.RETURN_ALL, null);
}