John Firebaugh
1188707dc3
[core] Use separate attribute component for line normals
...
Selective cherry pick of 822df3dd51
2017-08-18 11:43:24 +02:00
Asheem Mamoowala
5c52401d55
[core] Make Map.addImage tests pass ( #8843 )
...
Fix Node tests suite implementation to parse pixelRatio from style json
Premultiply images in the node binding before sending to mbgl core
2017-05-02 09:54:06 -07:00
Lauren Budorick
f6e79d7073
[core] Render fill-extrusion layers ( #8431 )
2017-04-27 15:56:55 -07:00
John Firebaugh
ddecdeca94
[core] Move ProjectedMeters to projection.hpp
2017-04-18 14:43:31 +03:00
Bruno de Oliveira Abinader
2f4d162deb
[core] Tighten geo.hpp ctors
2017-04-14 12:33:13 -07:00
John Firebaugh
7b041b123c
[core, darwin] Object identity for MGLSource*, MGLStyleLayer*
...
All `MGLSource` pointers referencing the same logical source will now be object identical; similarly for `MGLStyleLayer`.
2017-04-13 10:33:18 -07:00
John Firebaugh
62576e24a0
[core] Revert use of optional<EdgeInsets>, because EdgeInsets has a natural "empty" state
2017-04-11 14:50:22 -07:00
Bruno de Oliveira Abinader
bc7f6da135
[core] Added LatLngBounds::{valid,constrain}
2017-04-11 12:51:09 +03:00
Bruno de Oliveira Abinader
e5aa4d70cd
[core] Updated Size::isEmpty and TransformState::valid checks
2017-04-10 18:01:28 +03:00
John Firebaugh
16a2839e23
[all] Make LatLng coordinates read-only
2017-04-06 09:22:51 -07:00
John Firebaugh
0314a46ee4
[core] Tighten LatLng and other geo.hpp classes
...
* Remove LatLng::null and enforce invariants
* Remove unnecessary operator bool()
2017-04-06 09:22:51 -07:00
Konstantin Käfer
028360b68f
[node] Move util/async_task.hpp to public include directory
2017-03-28 13:53:19 +02:00
John Firebaugh
54cbdc4812
[core] Move ignore.hpp to public include directory
2017-03-28 13:53:19 +02:00
John Firebaugh
3db027751e
[core] Avoid public dtoa.hpp include
2017-03-28 13:53:19 +02:00
John Firebaugh
15833a6b78
[core] Move interpolate.hpp to public include directory
2017-03-28 13:53:19 +02:00
Bruno de Oliveira Abinader
80915992ab
[core] Added Map::latLngBoundsForCamera
2017-03-24 13:51:35 +02:00
Bruno de Oliveira Abinader
e10e37bc20
[core] Pass std::exception_ptr in style::Observer::onStyleError
2017-03-17 11:25:48 +02:00
John Firebaugh
42ad77a888
[core] Avoid -Wundefined-var-template warnings with clang 3.9+
2017-03-09 17:32:24 -08:00
Minh Nguyễn
ac4e13416a
[core] Enable debug events in Debug configuration
2017-03-04 12:48:33 -08:00
Bruno de Oliveira Abinader
c461dad5ee
[core] Safeguard ICU UChar usage
2017-03-02 11:40:42 -08:00
John Firebaugh
94f011895c
[core] Make Image safer
...
Provide Image::copy, which handles copying rectangles from a source to a destination, with thorough bounds checking.
Also fixes an indexing error in SpriteAtlas, where the top row of pixels in a wrapped image was copied from the wrong source row.
2017-02-14 12:29:01 -06:00
John Firebaugh
141e995806
[core] Add support for data-driven styling
2017-02-02 09:44:42 -08:00
Konstantin Käfer
62ea1f2185
[core] remove trailing whitespace, add trailing newlines, add space after //
2017-01-27 11:44:16 +01:00
Konstantin Käfer
46fe0df2a2
[core] add clone() call to Image objects
2017-01-26 15:26:55 +01:00
John Firebaugh
0c0064c050
[core] Get rid of user-specified refs
2017-01-04 17:38:33 -08:00
John Firebaugh
4d6c5b2d3b
[core] Remove constexpr from Color
...
GCC can't cope with it.
2017-01-04 12:10:27 -08:00
John Firebaugh
3d2d57cd30
[core] Assert valid range for color components
2016-11-29 06:52:24 -08:00
Konstantin Käfer
e76de05402
[build] move logging to util
2016-11-22 20:58:51 +01:00
Konstantin Käfer
9353fcbf4c
[build] move default_styles to platform/default
2016-11-22 20:58:51 +01:00
John Firebaugh
66bdbc3b96
[core] Introduce gl::Program template
2016-11-08 08:09:29 -08:00
Konstantin Käfer
358701f475
[core] add ability to upload alpha-only textures + images
2016-11-01 18:41:52 +01:00
Bruno de Oliveira Abinader
38f536049a
[core] Moved util::log2 to its own header
...
- Added util::{MIN,MAX}_ZOOM_F to avoid consecutive conversions from
double to float
- Move util::log2 to its own header (part of mbgl/math)
2016-10-31 16:53:07 +02:00
John Firebaugh
0e57d10d77
[core] Modern C++ bindings for OpenGL
2016-10-28 17:14:01 -07:00
John Firebaugh
a4c82b8a3b
[core] operator bool() must always be explicit
...
Otherwise, it can participate in unexpected conversions. Case in point: GlyphSet::insert was comparing the result of GlyphMetrics::operator bool() where it wanted to use operator==.
2016-10-28 17:10:45 -07:00
Konstantin Käfer
62b56b799a
[core] change std::array<uint16_t, 2> to mbgl::Size
2016-10-27 18:30:58 -07:00
Mike Morris
7bbd49c72c
[core] extract weak_ptr mailbox->receive into Mailbox::maybeReceive
2016-10-20 14:39:11 -04:00
Bruno de Oliveira Abinader
ef62b78fce
[core] TileCoordinate::fromLatLng no longer depens on TransformState
2016-10-19 08:11:41 +03:00
Bruno de Oliveira Abinader
2188d68b6c
[core] Move TransformState::{un,}project() to Projection
2016-10-19 08:11:41 +03:00
Bruno de Oliveira Abinader
f01a829dc9
[core] Move TransformState::worldSize() to Projection
2016-10-19 08:11:41 +03:00
Konstantin Käfer
63e53de157
[core] standardize on uint16_t for texture sizes
2016-09-27 10:42:10 +02:00
John Firebaugh
41bbd4e4f7
[core] Use an actor model for tile worker concurrency
2016-09-16 12:01:06 -07:00
Tobrun
9ef65440b6
[core] [android] - public api configurable base endpoint ( #6309 )
...
add runloop to test
2016-09-15 22:01:09 -07:00
Ivo van Dongen
290bd07a92
[core] OnlineFileSource - rate limit
2016-09-13 14:21:37 +02:00
John Firebaugh
29f4204d1c
[core] Don't use std::move on forwarding references
2016-09-08 16:36:47 -07:00
John Firebaugh
030234c7a6
[core] Rework invokeWithCallback so that the callback is last
2016-09-08 16:36:47 -07:00
John Firebaugh
e4995e8d3a
[core] Extract WorkTaskImpl from run_loop.hpp
2016-09-08 16:36:47 -07:00
Konstantin Käfer
18176605f6
[core] support "scheme": "tms" in TileJSON files
2016-08-16 11:04:30 +02:00
Bruno de Oliveira Abinader
3ae506ee13
[core] Use NDEBUG instead of DEBUG
...
CMake defines 'NDEBUG' by default for release build, so we can check if
that's not defined instead of using 'DEBUG' for debug build.
2016-08-05 11:42:22 +02:00
Vladimir Agafonkin
9ecc0d9597
GeoJSON point clustering ( #5724 )
...
* add supercluster dependency
* prepare GeoJSONTile for Supercluster
* prepare GeoJSONSource for accepting options
* try removing mbgl::GeoJSON
* fix setGeoJSON types
* add GeoJSONSource getURL
* add geojson to include path
* add Supercluster index in GeoJSONSource
* fix GeoJSONSource getZoomRange
* bring back mbgl::GeoJSON header
* fix tidy warnings hopefully
* try test-suite with enabled cluster test
* fix formatting in clustering-related files
2016-07-27 20:18:41 +03:00
John Firebaugh
da35ef9f49
[core] Add support for $id key to filters
...
https://github.com/mapbox/mapbox-gl-style-spec/issues/391
2016-07-18 12:37:36 -07:00