Skip to content

add getBoundsReactFromPoints, change in findLocationById

Compare
Choose a tag to compare
@dverbovyi dverbovyi released this 05 Aug 12:12
· 20 commits to master since this release

Added:

  • getBoundsReactFromPoints

Example:

function setViewBoundsByPoints(heremaps) {
    var topLeftPoint = { lng: 55.1021576, lat: 25.064732 };
    var bottomRightPoint = { lng: 54.1021576, lat: 24.064732 };
    
    var bounds = heremaps.getBoundsReactFromPoints(topLeftPoint, bottomRightPoint);
    
    heremaps.setViewBounds(bounds);
}

$scope.onMapready = function(heremaps) {
 setViewBoundsByPoints(heremaps);
}

Changed in API:

  • findLocationById now returns json (PR: #14)