Commit Graph

11507 Commits

Author SHA1 Message Date
Konstantin Käfer
2bdecdf9f9 [core] fix pedantic warning messages 2016-06-13 11:16:19 +02:00
Bruno de Oliveira Abinader
9b6c2e6940 [test] Added Projection tests 2016-06-13 10:11:20 +03:00
Bruno de Oliveira Abinader
62d355ab15 [build] Make node_modules non-parallel 2016-06-12 11:31:55 +03:00
Young Hahn
0dee9f81f3 Don't apply textRotate twice. (#5321) 2016-06-11 12:37:28 -04:00
Young Hahn
ecd4aa1439 text-pitch-alignment (#5288)
* First pass at port of https://github.com/mapbox/mapbox-gl-js/pull/2668

* RotationAlignmentType => AlignmentType

* Handle undefined default value for text-pitch-alignment and implement inheritance for this value from text-rotation-alignment

* Update dependencies

* Move handling fo undefined default value out of camelize functions
2016-06-10 23:05:15 -04:00
Young Hahn
a8df0feb54 Use shaders@f0b94dcc5f782958e9aade61d592a207d8a46e0f (#5314) 2016-06-10 14:40:43 -04:00
Bruno de Oliveira Abinader
a78592f9f2 [core] Port pitched circle rendering from gl-js
Extrude scale is already multiplied with altitude by default since
62b4dd554a.

Fixes #5006.
2016-06-10 20:59:43 +03:00
Bruno de Oliveira Abinader
80960b3939 [test] Added style layer properties tests 2016-06-10 17:35:02 +03:00
Bruno de Oliveira Abinader
6a35147fec [core] Redundant id check in TexturePoolDeleter 2016-06-10 17:35:01 +03:00
Bruno de Oliveira Abinader
83a3c18bdb [build] Update compdb & tidy for Linux & OS X 2016-06-10 17:35:01 +03:00
Bruno de Oliveira Abinader
07da939a76 [build] Use Debug folders by default on YCM config
We've recently moved from Release to Debug default build type.
2016-06-10 15:16:57 +03:00
John Firebaugh
ca8b26bbf6 [core] Inline TileSource::isRequired, remove unused isOptional 2016-06-10 12:42:14 +02:00
John Firebaugh
49120b1974 [core] Merge FileBasedTileSource and TileSource 2016-06-10 12:42:14 +02:00
John Firebaugh
94cfb1eb5a [core] Factor common code into FileBasedTileSource 2016-06-10 12:42:14 +02:00
John Firebaugh
a1d1bb0c6d [core] Simplify FileBasedTileSource 2016-06-10 12:42:14 +02:00
John Firebaugh
4596157fe0 [core] Merge ImageTileSource into RasterTileData 2016-06-10 12:42:14 +02:00
John Firebaugh
8d8d03a451 [core] Merge VectorTileSource into VectorTileData 2016-06-10 12:42:14 +02:00
John Firebaugh
91ddcbce20 [core] Merge GeoJSONTileSource into GeoJSONTileData 2016-06-10 12:42:14 +02:00
John Firebaugh
d62baffb1b [core] Merge AnnotationTileSource into AnnotationTileData 2016-06-10 12:42:14 +02:00
John Firebaugh
b45713e5e9 [core] Eliminate TileData dependency on TileSource 2016-06-10 12:42:14 +02:00
John Firebaugh
dbf16440a6 [core] Eliminate Source dependency on TileSource 2016-06-10 12:42:14 +02:00
John Firebaugh
c3a8534a43 [core] Push conditional initialization into subclasses 2016-06-10 12:42:14 +02:00
John Firebaugh
908f3f0832 [core] Introduce GeometryTileData subclasses 2016-06-10 12:42:14 +02:00
John Firebaugh
a7cc291ce1 [core] Move setObserver out of Source::createTile 2016-06-10 12:42:14 +02:00
John Firebaugh
5f05294118 [core] Move cache lookup out of Source::createTile 2016-06-10 12:42:14 +02:00
John Firebaugh
7235ba0bfb [core] Repeat some code so that all branches are parallel 2016-06-10 12:42:14 +02:00
John Firebaugh
ebd19db42a [core] Remove unused includes 2016-06-10 12:42:14 +02:00
Konstantin Käfer
4e5d065000 [core] load parents of missing tiles as optional 2016-06-10 12:42:14 +02:00
Konstantin Käfer
fce5dd5f6a [core] TileData objects now store whether an optional load attempt was performed 2016-06-10 12:42:14 +02:00
Konstantin Käfer
8a8f828e41 [core] rename onPlacementRedone -> onNeedsRepaint 2016-06-10 12:42:14 +02:00
Konstantin Käfer
2c7f7fb566 [core] createTile callback can load optional and required tiles 2016-06-10 12:42:14 +02:00
Konstantin Käfer
4673a9d6b3 [core] remove unused TileSource::loaded 2016-06-10 12:42:14 +02:00
Konstantin Käfer
913d28e745 [core] TileSources always start out as Optional 2016-06-10 12:42:14 +02:00
Konstantin Käfer
91895b9aec [core] only perform optional requests if the FileSource supports it 2016-06-10 12:42:14 +02:00
Konstantin Käfer
f180179d1b [core] allow changing the necessity of a TileSource 2016-06-10 12:42:14 +02:00
Konstantin Käfer
4357fed93b [core] merge similar implementation of VectorTileSource and ImageTileSource 2016-06-10 12:42:14 +02:00
Konstantin Käfer
971807d3b0 [core] move parsePending() call to TileData 2016-06-10 12:42:14 +02:00
Konstantin Käfer
436d8eb5e0 [core] introduce TileDataObserver
avoids passing around bound callback functions
2016-06-10 12:42:14 +02:00
Konstantin Käfer
2b6d0751cf [core] restructure TileSource construction and callbacks 2016-06-10 12:42:14 +02:00
Konstantin Käfer
6b729ccb46 [core] store Resource instead of dependents to build URL 2016-06-10 12:42:14 +02:00
Konstantin Käfer
46b0ebcd3c [core] rename VectorTileData => GeometryTileData 2016-06-10 12:42:14 +02:00
Konstantin Käfer
99b1df4e46 [core] introduce a RasterTileMonitor 2016-06-10 12:42:14 +02:00
Konstantin Käfer
e8d8f52d2e [core] *TileMonitor => *TileSource 2016-06-10 12:42:14 +02:00
Minh Nguyễn
383df9dd21 [ios] Updated changelog for #5302
Cherry-picked from 6998479d05.
2016-06-09 17:11:31 -07:00
Minh Nguyễn
6998479d05 [ios] Updated changelog for #5302 2016-06-09 17:11:01 -07:00
Minh Nguyễn
1eead5ee10 Revert "[ios] Updated changelog for #5302"
This reverts commit 066d9ebdd6.
2016-06-09 17:09:54 -07:00
Minh Nguyễn
066d9ebdd6 [ios] Updated changelog for #5302 2016-06-09 17:09:06 -07:00
Mark Allen
dd565b701b [ios] Support for a customizable zoom gesture centering strategy. (#5302)
* [ios] Support for a customizable zoom gesture centering strategy.

We introduce a new MGLZoomGestureCentering enum and corresponding zoomGestureCentering property on MGLMapView.

Currently, Mapbox automatically adjusts the center of the map relative to the user's gesture location, but for some applications (e.g Uber, Lyft) it is preferable to keep the map center "locked" in response to zoom gestures.

Exisiting code will retain its current behavior without modification and will implicitly use the default value of MGLZoomGestureCenteringFollowsTouch. New code can specify MGLZoomGestureCenteringLockedInPlace to get the new "locked" behavior.

* [ios] Added -anchorPointForGesture: to MGLMapView

Cherry-picked from b915f05a06.
2016-06-09 17:05:50 -07:00
Mark Allen
b915f05a06 [ios] Support for a customizable zoom gesture centering strategy. (#5302)
* [ios] Support for a customizable zoom gesture centering strategy.

We introduce a new MGLZoomGestureCentering enum and corresponding zoomGestureCentering property on MGLMapView.

Currently, Mapbox automatically adjusts the center of the map relative to the user's gesture location, but for some applications (e.g Uber, Lyft) it is preferable to keep the map center "locked" in response to zoom gestures.

Exisiting code will retain its current behavior without modification and will implicitly use the default value of MGLZoomGestureCenteringFollowsTouch. New code can specify MGLZoomGestureCenteringLockedInPlace to get the new "locked" behavior.

* [ios] Added -anchorPointForGesture: to MGLMapView
2016-06-09 17:05:15 -07:00
Brad Leege
511801c17a [android] #5303 - Updating code to take properly merge what each branch intended for nativeUpdateMarker 2016-06-09 17:01:23 -05:00