Skip to content

Instantly share code, notes, and snippets.

@johannesjo
Created December 8, 2020 13:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save johannesjo/8bb504f3c4b72b2835d4d66d65da0aac to your computer and use it in GitHub Desktop.
Save johannesjo/8bb504f3c4b72b2835d4d66d65da0aac to your computer and use it in GitHub Desktop.
Draw a rectangle in here maps.
const boundingREct = new H.geo.Rect(boundingBox.northEast.lat, boundingBox.northEast.lng, boundingBox.southWest.lat, boundingBox.southWest.lng);
this.map.addObject(
new H.map.Rect(boundingREct, {
style: {
// fillColor: '#FFFFCC',
strokeColor: '#E8FA75',
lineWidth: 2
},
})
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment