add getBoundsReactFromPoints, change in findLocationById
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)