@colisweb/rescript-toolkit 5.9.11 → 5.9.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/vendors/Here.res +9 -2
package/package.json
CHANGED
package/src/vendors/Here.res
CHANGED
|
@@ -174,12 +174,17 @@ module Map = {
|
|
|
174
174
|
module DomMarker = {
|
|
175
175
|
type t
|
|
176
176
|
|
|
177
|
-
type options = {icon?: DomIcon.t}
|
|
177
|
+
type options = {icon?: DomIcon.t, min?: int, max?: int}
|
|
178
|
+
|
|
179
|
+
@new
|
|
180
|
+
external makeWithCoordinates: (coordinates, options) => t = "H.map.DomMarker"
|
|
178
181
|
@new
|
|
179
|
-
external
|
|
182
|
+
external makeWithGeoPoint: (Geo.Point.t, options) => t = "H.map.DomMarker"
|
|
180
183
|
|
|
181
184
|
@send
|
|
182
185
|
external setData: (t, string) => unit = "setData"
|
|
186
|
+
@send
|
|
187
|
+
external addEventListener: (t, string, Event.t<'a> => unit) => unit = "addEventListener"
|
|
183
188
|
|
|
184
189
|
external toObject: t => object = "%identity"
|
|
185
190
|
}
|
|
@@ -226,6 +231,8 @@ module Map = {
|
|
|
226
231
|
@send
|
|
227
232
|
external addMarker: (t, Marker.t) => unit = "addObject"
|
|
228
233
|
@send
|
|
234
|
+
external addDomMarker: (t, DomMarker.t) => unit = "addObject"
|
|
235
|
+
@send
|
|
229
236
|
external getBoundingBox: (t, unit) => Geo.Rect.t = "getBoundingBox"
|
|
230
237
|
@send
|
|
231
238
|
external removeAll: (t, unit) => unit = "removeAll"
|