@@ -68,8 +68,7 @@ const drivingDirectionsRequest: MapiRequest = directionsService.getDirections({
6868 maxWidth : 10 ,
6969} ) ;
7070
71- drivingDirectionsRequest . send ( ) . then ( ( response : MapiResponse ) => {
72- } ) ;
71+ drivingDirectionsRequest . send ( ) . then ( ( response : MapiResponse ) => { } ) ;
7372
7473const drivingTrafficDirectionsRequest : MapiRequest = directionsService . getDirections ( {
7574 profile : "driving-traffic" ,
@@ -80,8 +79,7 @@ const drivingTrafficDirectionsRequest: MapiRequest = directionsService.getDirect
8079 maxWidth : 10 ,
8180} ) ;
8281
83- drivingTrafficDirectionsRequest . send ( ) . then ( ( response : MapiResponse ) => {
84- } ) ;
82+ drivingTrafficDirectionsRequest . send ( ) . then ( ( response : MapiResponse ) => { } ) ;
8583
8684const isochroneService : IsochroneService = Isochrone ( client ) ;
8785
@@ -156,6 +154,22 @@ staticMapService.getStaticImage({
156154 ] ,
157155} ) ;
158156
157+ staticMapService . getStaticImage ( {
158+ width : 16 ,
159+ height : 16 ,
160+ overlays : [
161+ {
162+ marker : {
163+ // @ts -expect-error - Object literal may only specify known properties, and 'lng' does not exist in type '[number, number]'
164+ coordinates : { lng : 0 , lat : 0 } ,
165+ } ,
166+ } ,
167+ ] ,
168+ position : "auto" ,
169+ ownerId : "owner-id" ,
170+ styleId : "some-style" ,
171+ } ) ;
172+
159173staticMapService . getStaticImage ( {
160174 ownerId : "owner-id" ,
161175 styleId : "some-style" ,
@@ -239,7 +253,7 @@ geocodeService
239253 } )
240254 . send ( )
241255 . then ( ( { body } ) => {
242- body . features . forEach ( feature => {
256+ body . features . forEach ( ( feature ) => {
243257 const shortCode = feature . short_code ;
244258 } ) ;
245259 } ) ;
@@ -253,7 +267,7 @@ geocodeServiceV6
253267 } )
254268 . send ( )
255269 . then ( ( { body } ) => {
256- body . features . forEach ( feature => {
270+ body . features . forEach ( ( feature ) => {
257271 const shortCode = feature . properties . context . place ?. short_code ;
258272 } ) ;
259273 } ) ;
@@ -265,7 +279,7 @@ geocodeServiceV6
265279 } )
266280 . send ( )
267281 . then ( ( { body } ) => {
268- body . features . forEach ( feature => {
282+ body . features . forEach ( ( feature ) => {
269283 const shortCode = feature . properties . context . place ?. short_code ;
270284 } ) ;
271285 } ) ;
0 commit comments