Releases: jhotadhari/react-native-mapsforge-vtm
Releases · jhotadhari/react-native-mapsforge-vtm
v0.7.0
This release contains love for elevation data <3
Added
- All new Clear Asymmetry shading algorithms are implemented as options for
LayerHillshading(thank you @Sublimis to create them and implement them tomapsforge, so I can use theme here):
Changed
- Update dependencies; Update dependency
com.github.mapsforge.vtmto version0.25.0. - The java side of the
LayerHillshadingcomponent is entirely new. Now the component is using the newvtm-hillshading module, implemented incom.github.mapsforge.vtmversion0.25.0. Thank you @devemux86! It's much faster, stable and the generated tiles are more accurate. - Change the cache filename for
LayerHillshading: Remove dots and dashes. That makes previous caches obsolete. - Add props to
MapContainercomponent:hgtInterpolationwhether to interpolate elevation or not.hgtFileInfoPurgeThresholdhow many neighboring DEMs should be kept in memory.
- Change
HgtReaderclass (to retrieve altitude at certain coordinates):- Better performance. It's multithreaded now and loading new DEM (hgt) files into memory doesn't block the ui thread anymore.
- Added support for interpolation. The code for interpolation is copied from JOSM Elevation Plugin by Harald Hetzner, thank you @hhtznr!.
- For now the
HgtReaderonly supports DEMs with a resolution of 3 arc seconds. Instead of fixing this issue, I will wait that this feature will be implemented properly into mapsforge, see #1621
.
Removed
- Remove built in themes
MOTORIDER_DARKandOSMAGRAY. Because they are not existing anymore in latest version ofcom.github.mapsforge.vtm.
v0.6.0
Added
- New props for
LayerMapsforge:hasBuildingsandhasLabels. - New prop for
LayerBitmapTile:alphato control opacity. CanvasAdapterModuleto controllineScale,textScaleandsymbolScaleof all mapsforge layers of allMapContainer. The methods have to be called before the firstMapContaineris initialized.
Changed
- Individual cache dirs for
LayerHillshading. Added props:cacheDirBasedefaults to/. If/, java will fallback to app internal cache dir.cacheDirChilddefaults to. If, will fallback to cache dbname.
- Individual cache dirs for
LayerBitmapTile. Added props:cacheDirBasedefaults to/. If/, java will fallback to app internal cache dir.cacheDirChilddefaults to. If, will fallback to slugify url.
v0.5.3
Added
- Add prop
hgtReadFileRatetoMapContainerModule. To controlHgtReaderread file throttle rate.
Changed
HgtReader: Purge hgt file data if not neighbors.
Fixed
LayerHillshading: Should update onmagnitudeorcacheSizechanges.LayerBitmapTile: propertycacheSizewas not working.- Missing export
useMapLayersCreated.
v0.5.2
Added
- prop
onHardwareKeyUptoMapContainercomponent. Function that gets called when certain hardware keys are pressed. - prop
emitsHardwareKeyUptoMapContainercomponent. Defines which hardware key events are consumed (keycodes:KEYCODE_VOLUME_UPorKEYCODE_VOLUME_DOWN). If they are consumed, these events don't bubble,onHardwareKeyUpjs event is triggers andMapContainer:onHardwareKeyUpfunction is called.
Changed
- Make all
MapEventResponseproperties optional.
Fixed
HardwareKeyListenerconsumes all key events and prevents bubbling, breaks all key events. Now it only consumes the event if propemitsHardwareKeyUpcontains event keycode (KEYCODE_VOLUME_UPorKEYCODE_VOLUME_DOWN).- Missing type exports:
XmlRenderTheme,RenderStyleOptionsCollection.
v0.5.1
Fixed
LayerMBTilesBitmapNullPointerException.dataSource.getBounds()might be null.
v0.5.0
Changed
- Changed export of nativeModules. They are exported directly, not bundled as a
nativeModulesobject anymore.
Fixed
- Types export
v0.4.0
Added
- Added prop
onMapEventtomapContainercomponent. It listens to the same event like theuseMapEventshook. - Added props
enabledZoomMinandenabledZoomMaxto all base layer components (LayerBitmapTile,LayerHillshading,LayerMBTilesBitmapandLayerMapsforge).
Changed
- Added prop
emitsMapEventstomapContainercomponent. Iffalse, the map won't emit any mapEvents and theonMapEventoruseMapEventsare useless. Ifundefined|nullit will betrueifonMapEventprop is set. If you want to use theuseMapEventshook, you have to setemitsMapEventstotrue! - Renamed type
mapEventtoMapEventResponse. - Renamed
minZoom|MaxZoomtozoomMin|zoomMaxandsetMinZoom|setMaxZoomtosetZoomMin|setZoomMax. It was not consistent, both naming were used by different components.
v0.3.0
Path improvements
Added
- Gesture events for both Path layers. Added props:
onPress,onLongPressandonDoubleTap. - Trigger event at any point at the map, for both Path layers. Added prop:
onTrigger. Added methodtriggerEventto path modules. - Possibility to simplify paths. Added prop:
simplificationTolerance.
Changed
- Both path layer modules. Now they work the same way and
MapLayerPathSlopeGradientModuleextendsMapLayerPathModule. - Removed
strokeWidthprop fromLayerPathSlopeGradient. Now it uses the samestyleprop likePathLayer. Just that the color will be overwritten by the gradient color.
Fixed
- The zickzacky appearance of
PathLayer. Now it uses the same way of rendering like theLayerPathSlopeGradientcomponent.
v0.2.0
Markers, hurrah.
Added
LayerMarkerto holdMarkercomponents.- Markers support raster image or svg symbols. Or symbols fallback to a customizable circle.
- Markers support
pressandlongPressevents. Furthermore events can be triggered at any position on the map.
Changed
- Responds types extend the
ResponseBaseinterface.
Fixed
- Example
PickerModalControl, if options are empty. Conditions have to be boolean, otherwise react wants to render them as text, withoutTextcomponent.
v0.1.3
Just updated README.md