Skip to content

Releases: jhotadhari/react-native-mapsforge-vtm

v0.7.0

05 Apr 15:24

Choose a tag to compare

This release contains love for elevation data <3

Added

Changed

  • Update dependencies; Update dependency com.github.mapsforge.vtm to version 0.25.0.
  • The java side of the LayerHillshading component is entirely new. Now the component is using the new vtm-hillshading module, implemented in com.github.mapsforge.vtm version 0.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 MapContainer component:
    • hgtInterpolation whether to interpolate elevation or not.
    • hgtFileInfoPurgeThreshold how many neighboring DEMs should be kept in memory.
  • Change HgtReader class (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 HgtReader only 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_DARK and OSMAGRAY. Because they are not existing anymore in latest version of com.github.mapsforge.vtm.

v0.6.0

26 Mar 22:57

Choose a tag to compare

Added

  • New props for LayerMapsforge: hasBuildings and hasLabels.
  • New prop for LayerBitmapTile: alpha to control opacity.
  • CanvasAdapterModule to control lineScale, textScale and symbolScale of all mapsforge layers of all MapContainer. The methods have to be called before the first MapContainer is initialized.

Changed

  • Individual cache dirs for LayerHillshading. Added props:
    • cacheDirBase defaults to /. If /, java will fallback to app internal cache dir.
    • cacheDirChild defaults to . If , will fallback to cache dbname.
  • Individual cache dirs for LayerBitmapTile. Added props:
    • cacheDirBase defaults to /. If /, java will fallback to app internal cache dir.
    • cacheDirChild defaults to . If , will fallback to slugify url.

v0.5.3

19 Mar 20:50

Choose a tag to compare

Added

  • Add prop hgtReadFileRate to MapContainerModule. To control HgtReader read file throttle rate.

Changed

  • HgtReader: Purge hgt file data if not neighbors.

Fixed

  • LayerHillshading: Should update on magnitude or cacheSize changes.
  • LayerBitmapTile: property cacheSize was not working.
  • Missing export useMapLayersCreated.

v0.5.2

29 Dec 23:25

Choose a tag to compare

Added

  • prop onHardwareKeyUp to MapContainer component. Function that gets called when certain hardware keys are pressed.
  • prop emitsHardwareKeyUp to MapContainer component. Defines which hardware key events are consumed (keycodes: KEYCODE_VOLUME_UP or KEYCODE_VOLUME_DOWN). If they are consumed, these events don't bubble, onHardwareKeyUp js event is triggers and MapContainer:onHardwareKeyUp function is called.

Changed

  • Make all MapEventResponse properties optional.

Fixed

  • HardwareKeyListener consumes all key events and prevents bubbling, breaks all key events. Now it only consumes the event if prop emitsHardwareKeyUp contains event keycode (KEYCODE_VOLUME_UP or KEYCODE_VOLUME_DOWN).
  • Missing type exports: XmlRenderTheme, RenderStyleOptionsCollection.

v0.5.1

16 Nov 14:09

Choose a tag to compare

Fixed

  • LayerMBTilesBitmap NullPointerException. dataSource.getBounds() might be null.

v0.5.0

14 Nov 18:10

Choose a tag to compare

Changed

  • Changed export of nativeModules. They are exported directly, not bundled as a nativeModules object anymore.

Fixed

  • Types export

v0.4.0

14 Nov 12:27

Choose a tag to compare

Added

  • Added prop onMapEvent to mapContainer component. It listens to the same event like the useMapEvents hook.
  • Added props enabledZoomMin and enabledZoomMax to all base layer components (LayerBitmapTile, LayerHillshading, LayerMBTilesBitmap and LayerMapsforge).

Changed

  • Added prop emitsMapEvents to mapContainer component. If false, the map won't emit any mapEvents and the onMapEvent or useMapEvents are useless. If undefined|null it will be true if onMapEvent prop is set. If you want to use the useMapEvents hook, you have to set emitsMapEvents to true!
  • Renamed type mapEvent to MapEventResponse.
  • Renamed minZoom|MaxZoom to zoomMin|zoomMax and setMinZoom|setMaxZoom to setZoomMin|setZoomMax. It was not consistent, both naming were used by different components.

v0.3.0

06 Nov 21:08

Choose a tag to compare

Path improvements

Added

  • Gesture events for both Path layers. Added props: onPress, onLongPress and onDoubleTap.
  • Trigger event at any point at the map, for both Path layers. Added prop: onTrigger. Added method triggerEvent to path modules.
  • Possibility to simplify paths. Added prop: simplificationTolerance.

Changed

  • Both path layer modules. Now they work the same way and MapLayerPathSlopeGradientModule extends MapLayerPathModule.
  • Removed strokeWidth prop from LayerPathSlopeGradient. Now it uses the same style prop like PathLayer. 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 the LayerPathSlopeGradient component.

v0.2.0

06 Nov 12:00

Choose a tag to compare

Markers, hurrah.

Added

  • LayerMarker to hold Marker components.
    • Markers support raster image or svg symbols. Or symbols fallback to a customizable circle.
    • Markers support press and longPress events. Furthermore events can be triggered at any position on the map.

Changed

  • Responds types extend the ResponseBase interface.

Fixed

  • Example PickerModalControl, if options are empty. Conditions have to be boolean, otherwise react wants to render them as text, without Text component.

v0.1.3

30 Oct 23:25

Choose a tag to compare

Just updated README.md