Mikko Pulkki
d0c103fa8f
Refactor tileCover to support lod tiles
2020-04-06 12:10:21 +03:00
Thiago Marcos P. Santos
94d1c10727
[core] Fix readability-* errors
...
As reported by clang-tidy-8.
2020-03-30 23:37:44 +03:00
Thiago Marcos P. Santos
d15b9c1f9c
[core] Fix performance-unnecessary-value-param errors
...
As reported by clang-tidy-8.
2020-03-23 12:09:09 +02:00
Thiago Marcos P. Santos
6223fc2898
[core] Fix performance-inefficient-vector-operation errors
...
As reported by clang-tidy-8.
2020-03-23 12:09:09 +02:00
Aleksandar Stojiljkovic
9eff849c74
[core] Fix tileCover / TileCoordinate fromScreenCoordinate( #15442 )
...
Remove unecessary tile coordinate unproject -> project step.
Unproject+project isn't always a noop and this was the issue leading to wrong cover calculation in high pitch values.
Fixes: https://github.com/mapbox/mapbox-gl-native/issues/15442
2019-08-23 16:43:05 +03:00
Konstantin Käfer
3ceabcd3ec
[core] clang-tidy fixes
2019-04-05 11:49:17 +02:00
Konstantin Käfer
4a3c4edb59
[android] add support for gnustl
2018-09-11 11:43:54 +02:00
Sudarsana Babu Nagineni
fc0745a699
[core] Fix build when building Qt Location plugin for Android
...
- log2 is not available on Android before API 18.
- Android doesn't have 'round' on the std:: namespace when using g++.
Co-authored-by: Thiago Marcos P. Santos <thiago@mapbox.com >
2018-08-10 11:19:24 +03:00
Konstantin Käfer
d66251234d
[core] don't use floating point versions of pow/log
...
GLIBC 2.27 added new versioned symbols of powf and logf, while the double versions of pow and log remained stable.
Prefer the double version to avoid introducing a dependency on a newer version of GLIBC than strictly necessary.
See https://lists.gnu.org/archive/html/info-gnu/2018-02/msg00000.html
2018-06-04 10:43:21 +02:00
Asheem Mamoowala
4344812ef5
[core] Streaming TileCover for polygonal regions ( #11267 )
...
A per-tile streaming algorithm for tile cover on points, lines, and polygons. Works for individual zoom levels, and not zoom ranges.
2018-04-26 07:43:38 -07:00
Thiago Marcos P. Santos
c65465c02e
[gcc4.9] Keep compatibility with GCC + Android
...
Needed by Qt builds on Android.
2017-10-31 12:41:40 +02:00
Anand Thakker
b8654b3b04
[core] Move SourceType to the 'style' namespace
2017-10-16 16:32:53 -07:00
Asheem Mamoowala
2d84e2a1ae
Fix platform dependent number type unsigned long -> uint64_t
2017-09-20 09:05:45 -07:00
Asheem Mamoowala
50fd917510
Fast tileCount with help from @mapbox/sphericalmercator module
2017-09-08 17:38:42 -07:00
Bruno de Oliveira Abinader
e5aa4d70cd
[core] Updated Size::isEmpty and TransformState::valid checks
2017-04-10 18:01:28 +03:00
Bruno de Oliveira Abinader
4439aecbcc
[core] Use std::tie in tileCover sort
2017-01-17 17:39:54 +01:00
Konstantin Käfer
62b56b799a
[core] change std::array<uint16_t, 2> to mbgl::Size
2016-10-27 18:30:58 -07:00
Bruno de Oliveira Abinader
ef62b78fce
[core] TileCoordinate::fromLatLng no longer depens on TransformState
2016-10-19 08:11:41 +03:00
John Firebaugh
7e5d0ff49e
[core] Rewrite TileCoordinate in terms of geometry.hpp point
2016-05-17 13:20:25 -07:00
Konstantin Käfer
7332ae0073
[core] retain tiles differently and remove old TileID class
2016-05-10 14:50:56 +02:00
John Firebaugh
9330d674a9
[core] Use geometry.hpp's point
2016-05-05 11:30:53 -07:00
Ansis Brammanis
61d14089e0
[core] implement queryRenderedFeatures
2016-04-29 12:00:24 -07:00
Bruno de Oliveira Abinader
026b6d4c01
[core] Coordinate wrapping fixes
...
- Make returning LatLngs unwrapped by default.
- PointAnnotation and ShapeAnnotation are always wrapped so they can be
selected via intersection from the visible tile boundaries.
- Fixes LatLng::wrap() calculation.
- Fixes LatLng::unwrapForShortestPath() calculation.
The new unwrapForShortestPath algorithm unwraps the start coordinate
either forwards or backwards depending on the end coordinate value, so
we can always cross the antimeridian when needed and still obtain a
wrapped end coordinate in the end.
Fixes #4214 .
2016-03-10 03:36:45 +02:00
Bruno de Oliveira Abinader
fde0ab98ee
[core] Moved TileCoordinate to tile cover scope
2016-03-01 20:58:54 +00:00
Bruno de Oliveira Abinader
4994b3dc57
[core] PrecisionPoint is now ScreenCoordinate
2016-03-01 20:58:54 +00:00
John Firebaugh
62bbf2627a
[core] Organize files that were in map folder better
...
Fixes #996
2016-02-11 17:30:35 -08:00
John Firebaugh
7d6c6c00ca
[core] Refactor tileCover
2016-02-10 15:40:20 -08:00
Konstantin Käfer
d5fb535058
[core] add namespace comment to closing brace
2015-12-03 15:38:36 +01:00
Ansis Brammanis
0d68c4fedf
load correct covering tiles in perspective view
...
port pointCoordinate from -js to convert screen points to tile
coordinates correctly in perspective view.
2015-08-24 18:41:51 -04:00
Konstantin Käfer
78ec33320f
don't use certain STL functions
...
some functions defined in <cmath>, as well as std::to_string aren't available on GNU's STL for some platforms, e.g. Android
2015-08-04 14:08:19 +02:00
Ansis Brammanis
1e044a175c
Reparse tiles when zoom level > source maxzoom
...
so that layout property functions are applied correctly
and so that label placement is redone
js:
https://github.com/mapbox/mapbox-gl-js/pull/1005
and
440bc02505
2015-05-28 19:17:07 -04:00
John Firebaugh
872cf07683
Move tileCover to its own file
2015-04-06 13:58:56 -07:00