当前位置: 首页>>代码示例>>Java>>正文


Java InternalRenderTheme.OSMARENDER属性代码示例

本文整理汇总了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;
}
 
开发者ID:marunjar,项目名称:anewjkuapp,代码行数:9,代码来源:MapFragment.java

示例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;
}
 
开发者ID:PGWelch,项目名称:com.opendoorlogistics,代码行数:13,代码来源:MapsforgeTileFactory.java

示例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();
}
 
开发者ID:andreynovikov,项目名称:Androzic,代码行数:14,代码来源:Androzic.java

示例4: getRenderTheme

/**
 * This MapViewer uses the deprecated built-in osmarender theme.
 * @return the render theme to use
 */
@Override
protected XmlRenderTheme getRenderTheme() {
	return InternalRenderTheme.OSMARENDER;
}
 
开发者ID:emdete,项目名称:Simplicissimus,代码行数:8,代码来源:SimplestMapViewer.java

示例5: getRenderTheme

@Override
protected XmlRenderTheme getRenderTheme() {
	return InternalRenderTheme.OSMARENDER;
}
 
开发者ID:emdete,项目名称:Simplicissimus,代码行数:4,代码来源:BasicMapViewerV3.java

示例6: getRenderTheme

/**
 * @return the rendertheme for this viewer
 */
protected XmlRenderTheme getRenderTheme() {
	return InternalRenderTheme.OSMARENDER;
}
 
开发者ID:nirabpudasaini,项目名称:Mero-Bhada-Meter,代码行数:6,代码来源:OfflineMapActivity.java

示例7: MapsforgeMapSource

public MapsforgeMapSource(String mapFileName) {
	mapFile = new File(mapFileName);
	displayModel = new DisplayModel();
	xmlRenderTheme = InternalRenderTheme.OSMARENDER;
}
 
开发者ID:bh4017,项目名称:mobac,代码行数:5,代码来源:MapsforgeMapSource.java

示例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);
}
 
开发者ID:osmdroid,项目名称:osmdroid,代码行数:18,代码来源:MapsForgeTileSource.java


注:本文中的org.mapsforge.map.rendertheme.InternalRenderTheme.OSMARENDER属性示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。