Commit Graph

19 Commits

Author SHA1 Message Date
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