John Firebaugh
fbb074a089
[core] Eliminate temporary vector in Style::queryRenderedFeatures
2016-05-17 13:20:25 -07:00
John Firebaugh
db74459990
[core] Use mapbox::geometry::envelope in Source::queryRenderedFeatures
2016-05-17 13:20:25 -07:00
John Firebaugh
7e5d0ff49e
[core] Rewrite TileCoordinate in terms of geometry.hpp point
2016-05-17 13:20:25 -07:00
John Firebaugh
3e21e3887a
[core] Introduce StyleQueryParameters; push coordinate calculations into Source
2016-05-17 13:20:25 -07:00
John Firebaugh
8ec0b70722
[core] Use mapbox::geometry::box in queryRenderedFeatures
2016-05-13 09:01:32 -07:00
John Firebaugh
57fcfabd77
[core] Make mapbox::geometry::envelope usable without explicit template arguments
2016-05-13 09:01:32 -07:00
John Firebaugh
58863c3974
[core] Remove unused
2016-05-13 09:01:32 -07:00
John Firebaugh
39da776bd7
[core] Use mapbox::geometry::{box,envelope}
2016-05-13 09:01:32 -07:00
Konstantin Käfer
cd65a43855
[core] move from microsecond precision timestamp to integer second precision
2016-05-13 17:24:22 +02:00
John Firebaugh
0e7f3ada64
[core] Fix code style issues
2016-05-12 08:43:08 -07:00
John Firebaugh
5620cea82e
[core] Avoid instantiating temporary vector
2016-05-12 08:36:30 -07:00
John Firebaugh
b87fe16169
[core] CollisionBox::indexedFeature to CollisionFeature::indexedFeature
...
This eliminates the CollisionBox constructor that instantiates an "empty" IndexedSubfeature.
2016-05-12 08:36:30 -07:00
John Firebaugh
00a86ba03f
[core] Replace auto with actual types
2016-05-12 08:36:30 -07:00
John Firebaugh
e79858558d
[core] Avoid instantiating temporary vector
2016-05-12 08:36:30 -07:00
John Firebaugh
e6296479f0
[core] Code formatting
2016-05-12 08:36:30 -07:00
John Firebaugh
1a030e7c33
[core] Normalize tile coordinates in VectorTile ( #4966 )
...
Previously, vector tile coordinates were being normalized to util::EXTENT in each place they were used, and for annotation and GeoJSON sources that don't require normalization.
2016-05-11 13:54:05 -07:00
Bruno de Oliveira Abinader
c13dd32242
[core] Added Viewport mode
...
Satisfies embedding platforms that requires the viewport coordinate
systems to be set according to its standards e.g. viewport mirrored
vertically.
2016-05-11 15:48:51 +03:00
Konstantin Käfer
7332ae0073
[core] retain tiles differently and remove old TileID class
2016-05-10 14:50:56 +02:00
Konstantin Käfer
ec70125e41
[core] move TileData and dependents to new *TileID classes
2016-05-10 14:50:56 +02:00
Konstantin Käfer
bdcbceff80
[core] move Tile to use UnwrappedTileID
2016-05-10 14:50:56 +02:00
Konstantin Käfer
dde59eaf76
[core] move Painter and dependents to new *TileID classes
2016-05-10 14:50:56 +02:00
Konstantin Käfer
5b640fb446
[core] add algorithm for generating clip IDs based on the new TileID classes
2016-05-10 14:50:56 +02:00
Konstantin Käfer
ecc8e018fa
[core] add algorithm for detecting whether an ordered map contains covering children
2016-05-10 14:50:56 +02:00
Konstantin Käfer
82ebcfa14e
[core] introduce three distinct TileID types
...
* CanonicalTileID has z, x, and y, with x/y being within the bounds z defines. z can be anything from 0-32.
* OverscaledTileID is composed of a z value, and a canonical tile. The z value indicates the zoom level the tile is intended for. It is primarily used for indexing overscaled data tiles.
* UnwrappedTileID is composed of a wrap value, and a canonical tile. The wrap value is used for representing tiles to the left and right of the main (0/0/0 based) tile pyramid. It is primarily used for indicating the position a tile should be rendered at.
2016-05-10 14:50:56 +02:00
Minh Nguyễn
5ccb43477f
[ios, osx] Renamed Hybrid to Satellite Streets
...
The style ID has also changed, but the unversioned method will continue to point to the old v8 style ID.
2016-05-06 11:06:51 -07:00
Minh Nguyễn
2a4eeadb29
[core, ios, osx] Version default style URL APIs; deprecated Emerald
...
Updated default styles from v8 to v9. Deprecated the MGLMapView class methods in favor of new methods that take a version parameter. Deprecated Emerald outright in favor of Outdoors. Replaced usage of the unversioned MGLStyle methods with the corresponding versioned methods and MGLStyleCurrentVersion to ensure consistency.
Expanded MGLStyle unit tests to also assert that MGLStyle has the right number of style URL methods and that they’re all public. Linked the OS X SDK unit test bundle to libmbgl-core.a. Removed an unnecessary dependency on osxapp.
Replaced Emerald with Outdoors in iosapp and osxapp.
Fixes the iOS and OS X side of #4577 and #4702 .
2016-05-06 10:57:54 -07:00
John Firebaugh
59a7fbf8e4
[core] Implement has/!has filters ( #4952 )
2016-05-05 14:30:37 -07:00
John Firebaugh
9330d674a9
[core] Use geometry.hpp's point
2016-05-05 11:30:53 -07:00
John Firebaugh
f89cfacab2
[core] Inline LatLng::project definition the one place it's used
2016-05-05 11:16:57 -07:00
John Firebaugh
ce2a06e677
[core] Privatize math.hpp and vec.hpp
2016-05-05 11:16:57 -07:00
Thiago Marcos P. Santos
a818917714
[Qt] Make it possible to disable libwebp and libjpeg-turbo at build time
...
Pull less dependencies.
2016-05-05 18:47:14 +03:00
John Firebaugh
10e522d10b
[core] Privatize various util headers ( #4945 )
2016-05-04 14:09:51 -07:00
Dane Springmeyer
0c6bce2819
[core] consistently protect against invalid tag encoding in vector tile
2016-05-04 10:12:15 -07:00
Brent W
7e6995d153
[core] Merge pull request #4914 from bwhtmn/camera-padding
...
Fix a bug in applying padding to the camera.
Fixes #4862 .
2016-05-04 01:28:27 -07:00
John Firebaugh
a64fe5062f
[core] Simplify FilterEvaluator and fix crash
...
Previous implementation was assigning a temporary to FilterEvaluator<T>::extractor.
2016-05-04 09:56:34 +03:00
John Firebaugh
c8391729c7
[core] Use geometry.hpp feature type
2016-05-03 17:25:49 -07:00
Dane Springmeyer
c82b02c508
[core] port to protozero ( #4906 )
2016-05-03 13:57:17 -07:00
John Firebaugh
fd0f9d1319
[core] Remove duplicate copy of utf.hpp
2016-05-02 12:26:33 -07:00
John Firebaugh
c8c36c395c
[core] Remove unused
2016-05-02 11:26:37 -07:00
Ansis Brammanis
700180a0fe
[core] use a GridIndex for queryRenderedFeatures
2016-04-29 12:00:24 -07:00
Ansis Brammanis
61d14089e0
[core] implement queryRenderedFeatures
2016-04-29 12:00:24 -07:00
John Firebaugh
c1ad321485
[linux] Build with GCC 5 ( #4901 )
...
* [linux] Build with GCC 5
* [build] -fabi-version=0 is the default for GCC 5
2016-04-29 09:57:21 -07:00
Molly Lloyd
c86f558e9d
[core] port outlinepattern for fill-pattern anti-aliasing from gl-js to native
...
add outlinepattern shader class to relevant files
add outlinepattern code to painter_fill.cpp
add outlinepattern code to fill_bucket
refactor painter_fill, fix tests
fix merge conflicts and setDepthSublayer
update render test to no antialiasing so travis will be happy
2016-04-28 17:13:20 -07:00
John Firebaugh
da78422c5c
[core] Prepare Filter for public API ( #4900 )
2016-04-28 16:33:09 -07:00
John Firebaugh
f82803917a
[core] Eliminate interpolate special cases ( #4882 )
2016-04-28 12:14:27 -07:00
Bruno de Oliveira Abinader
1f5587b3ea
[core] Added mbgl::underlying_type
2016-04-28 18:55:55 +03:00
John Firebaugh
189b5c2f60
[core] Rewrite parsePropertyTransition to work around GCC 4.9 bug
2016-04-26 11:44:48 -07:00
John Firebaugh
878310b891
[core] Simplify property parsing
...
This is a followup to #4811 . Now that use of Function is consistent, we can have a single separate parseProperty template function that delegates to a parseConstant template function.
2016-04-26 11:44:48 -07:00
Mike Morris
93b7d245f6
use Clock::time_point::max() instead of frame time
...
For Style::cascade and Style::recalculate, when rendering with
MapMode::Still. Fixes a subtle race condition with animated
transitions exacerbated by cd1a06c2dc .
2016-04-26 11:33:05 -04:00
John Firebaugh
76d6aba8f2
[core] Define mbgl::variant ( #4833 )
...
For parallelism with mbgl::optional, and to avoid exposing namespaces other than `mbgl` in the public API.
2016-04-25 13:58:10 -07:00