Commit Graph

30 Commits

Author SHA1 Message Date
Andy Hanson
45c9246c09 Remove esModuleInterop from tsconfigs (no longer mandatory) 2018-02-14 14:55:13 -08:00
Daniel Rosenwasser
fc74694166
Merge pull request #23306 from fabio-silva/master
Mapbox GL: allow data-driven expressions on icon-image
2018-02-12 18:14:13 -08:00
Andy
bef4d2b27d
Enable "esModuleInterop" in all tsconfigs (#23354) 2018-02-05 11:01:56 -08:00
Fabio Silva
bd86d57a18 allow data-driven expressions on Mapbox GL's icon-image 2018-01-31 11:49:34 +00:00
BrennanCB
d8c895891b Added IControl interface in add/remove Control (#23187)
The API documentation specifies that controls only need to implement IControl interface, however the current addControl requires Control class.

Suggestion is to overload the addControl and removeControl methods to allow for this, while to not break the existing controls like NavigationControl.
2018-01-29 12:41:59 -08:00
Netanel Draiman
399a4198af Updated mapbox-gl to include correct FitBoundsOptions (#22950)
As can be seen in the `mapbox-gl-js` [source code](https://github.com/mapbox/mapbox-gl-js/blob/master/src/ui/camera.js#L370), the `fitBounds()` function receives `AnimationOptions & CameraOptions`.

It then calls the `flyTo` or `easeTo` functions according to the options it received.

The `FitBoundsOptions` interface extends `FlyToOptions` as that already extends `AnimationOptions & Camera Options`.
2018-01-23 11:50:35 -08:00
Alexandre
4e9fc99430 Mapbox-gl and Geojson types update (#22544)
* Update mapbox-gl and geojson types

* Make geojson coordinates optional

* Increase mapbox type header

* Remove changes of GeometryObject and use internal mapbox any geometry type
2018-01-12 10:34:37 -08:00
Bryan Johnson
d7848388b9 update mapbox-gl to handle expressions and heatmaps 2017-11-22 14:24:33 -07:00
sthomp
0d5ef0aa4d version bump 2017-11-14 12:46:58 -05:00
Scott Thompson
ea1c4c3764 add heatmap to layer types (added in 0.41.0) 2017-11-14 12:22:08 -05:00
Andy
19f89399e4 Ensure every package has a tslint.json (#21009)
* Ensure every package has a tslint.json

* Fixes
2017-10-25 11:13:50 -07:00
Alexandre
a7a71f2be3 Fix some mapbox-gl mismatching typings (#20472)
* Fix some mapbox-gl mismatching typings

* Increase version and fix ts options

* Remove flag

* Add back strictFunctionTypes: true flag

* More types fix

* Make fill-outline-color optional
2017-10-16 11:57:48 -07:00
Andy
947a8fb761 Enable strictFunctionTypes (#20373) 2017-10-06 14:03:03 -07:00
pvdyck
100636cc24 fix: stops are optional in StyleFunction 2017-09-19 10:53:48 +02:00
Patrick Reames
ab49000acf mapbox-gl: support pitch-alignment v0.39.0
Add new icon-pitch-alignment and circle-pitch-alignment properties https://github.com/mapbox/mapbox-gl-js/pull/4869 https://github.com/mapbox/mapbox-gl-js/pull/4871
2017-08-28 00:27:47 -05:00
Patrick Reames
fa6392d268 mapbox-gl: GeolocateControl support v0.39.0
⚠️ Breaking changes

GeolocateControl breaking changes https://github.com/mapbox/mapbox-gl-js/pull/4479
The option watchPosition has been replaced with trackUserLocation
The camera operation has changed from jumpTo (not animated) to fitBounds (animated). An effect of this is the map pitch is no longer reset, although the bearing is still reset to 0.
The accuracy of the geolocation provided by the device is used to set the view (previously it was fixed at zoom level 17). The maxZoom can be controlled via the new fitBoundsOptions option (defaults to 15).
New option showUserLocation to draw a "dot" as a Marker on the map at the user's location
2017-08-28 00:11:23 -05:00
Sebastian Clausen
4bb9d6ce15 missing types in declaration for source in Layer (#18241)
Add an optional extended description…
2017-08-04 17:07:24 -07:00
bryanjjohnson
24c1979c3b add types for LngLatLike, LngLatBoundsLike and PointLike (#18390) 2017-08-02 11:20:55 -07:00
Dylan Chong
fcf06f299e Merge branch 'master' into fix_mapbox_point 2017-07-06 12:41:59 +12:00
Dylan Chong
a33d6c0acc Fix mapbox-gl.Point constructor and missing x/y fields
The actual type at runtime has a constructor with 2 parameters (that is now
shown above), and there are actually 2 fields (x and y.
2017-07-06 12:33:24 +12:00
Tom Sherman
7c9c69ade0 @types/mapbox-gl: allow StyleFunction for circle-color
Fix regression that removed StyleFunction from circle-color type set
2017-07-02 15:38:39 -07:00
Paul van Brenk
24ccf32c6d Merge pull request #17440 from jczaplew/master
Add maxTileCacheSize to map object on mapbox-gl
2017-06-27 15:03:42 -07:00
Alexandre Paré
38c6c6691e fix typo 2017-06-27 14:09:51 -04:00
John J Czaplewski
4ba0506fb7 Bump version number 2017-06-23 12:08:09 -05:00
John J Czaplewski
b0a675ccaa Add maxTileCacheSize 2017-06-23 12:04:17 -05:00
Bryan Johnson
1e6529ab1f fix parts of mapbox-gl def for v0.38.0 2017-06-12 16:36:39 -06:00
Nathan Shively-Sanders
163f4438df Fix weak type errors (#16845)
* Fix first round of weak type errors

Done through griddle-react

* 95% done with weak type fixes

* Fix last couple of weak type errors

* Remove some lint from mithril tests

* mithril's Lifecycle is not a weak type any more

Restore the Lifecycle constraints in the rest of the definitions.

* Fix react-redux tests after #16652 broke them

* Remove package-lock.json
2017-06-04 22:03:03 -07:00
Abraham
2f8fb93e51 The types for point-geometry as they are currently written do not reflect the real type signatures. (#16558)
Please see:
https://github.com/mapbox/point-geometry/blob/master/README.md
For the type signatures as defined in the library.

The incorrect signatures, render the library essentially unusable from a Typescript environment
2017-06-01 10:29:00 -07:00
bryanjjohnson
d9be5adccd update for mapbox-gl to v0.35.1 (#16005)
* update for mapbox-gl to v0.35.1

* fix to mapbox-gl update
2017-05-01 16:30:55 -07:00
Andy Hanson
354cec620d Move all packages to a types directory 2017-03-24 14:27:52 -07:00