heremaps / maps-api-for-javascript-examples

Self-contained examples for Maps API for JavaScript v3.
https://developer.here.com/javascript-apis/documentation/v3/maps
Other
202 stars 431 forks source link

how drawing polygon #123

Closed 463728946 closed 2 years ago

463728946 commented 2 years ago

Hello!

I want this: 847ef0e23f36969f4e9490eae1a5b37

It looks like:drawing-control

var venuesProvider = new H.venues.Provider() // property 'venues' does not exist"@here/maps-api-for-javascript": "^1.30.9" venuesService.loadVenue(VENUE_ID).then(venue => {` venuesProvider.addVenue(venue); venuesProvider.setActiveVenue(venue);

var drawingControl = new H.venues.ui.DrawingControl(venue); ui.addControl('drawing-control', drawingControl); });

dbacarel commented 2 years ago

Hi,

the library doesn't provide a UI control to draw shapes, the drawing-control from Venues module serves other purposes.

You can however create, add and resize shapes using the API, see the following demo link:

463728946 commented 2 years ago

thx @dbacarel ,

i find demo

enduser can drawing any polygon on map

how can I do like demo