Commit Graph

33 Commits

Author SHA1 Message Date
xylosper
fbbc83aa0e [qt] fix missing Q_MAPBOXGL_EXPORTs
New projection-related functions in QMapbox namespace
are missing Q_MAPBOXGL_EXPORTs.
2019-02-12 11:08:26 +02:00
xylosper
26af7265c3 [qt] add global projection functions
There are 3 methods in QMapboxGL which can be static method.

QMapboxGL::metersPerPixelAtLatitude
QMapboxGL::projectedMetersForCoordinate
QMapboxGL::coordinateForProjectedMeters

Add these functions into QMapbox namespace as global functions.
The methods in QMapboxGL are kept for backward compatibility.
2019-02-12 11:08:26 +02:00
Thiago Marcos P. Santos
2a535a8f5e [qt] Use QVector instead of QList
For our use case `QVector` is more efficient and will
do less memory allocations.

Fixes: #13830
2019-01-30 16:22:13 +02:00
Thiago Marcos P. Santos
07ad29d30d [qt] Fix build when building the Qt Location plugin
- MinGW has to explicitly know that is building a static library.
- Android doesn't have 'round' on the std:: namespace when using g++.
2018-05-14 17:18:51 +03:00
Asheem Mamoowala
099fcc3b3c Use a host interface for CustomLayer instead of function pointers (#11553)
Use a host interface for CustomLayer instead of function pointers

Co-authored-by: Julian Rex <julian.rex@mapbox.com>
2018-04-02 16:15:25 -07:00
Thiago Marcos P. Santos
0a7b4e3eb8 [qt] Fix import/export symbols declarations
Fixes #10875
2018-01-10 21:42:20 +02:00
Bruno de Oliveira Abinader
43aefbffd0 [Qt] Update documentation 2017-11-23 15:36:26 +02:00
Thiago Marcos P. Santos
7e8fe05af0 [Qt] Avoid using brace-list init ctor in QMapboxGL 2017-07-19 16:44:30 +03:00
John Firebaugh
c130d470a1 [core] Remove StyleSourcedAnnotation support
The functionality this provided has been subsumed by the runtime styling API.
2017-05-10 14:22:01 -07:00
Konstantin Käfer
234384ece9 [core] Move OpenGL extension initialization to Backend 2017-03-23 14:50:11 -07:00
Bruno de Oliveira Abinader
10b8ef6441 [Qt] Document QMapbox + qdoc fixes 2017-02-22 13:52:33 +02:00
Bruno de Oliveira Abinader
177a27b48a [Qt] Added missing conversion helpers 2017-02-21 15:26:46 +02:00
Bruno de Oliveira Abinader
7db79da501 [Qt] Added QMapbox::Feature 2017-02-08 15:55:47 +02:00
Bruno de Oliveira Abinader
be43310b6f [Qt] Refactor QMapbox Annotations API 2017-01-26 14:53:45 +02:00
Thiago Marcos P. Santos
1f3424fafa [Qt] Remove QtQuick dependency from the low-level API
Not really needed.
2017-01-24 10:26:33 +01:00
Thiago Marcos P. Santos
003eec633e [Qt] Move QMapboxGL stuff from QMapbox namespace 2017-01-03 16:52:24 -02:00
Thiago Marcos P. Santos
b8564299e5 [Qt] Simplify setTransitionOptions 2017-01-03 16:52:24 -02:00
Thiago Marcos P. Santos
e881795ed1 [Qt] Header cleanup (#6477)
Make some headers private, so we only commit with the QML API.
2016-09-27 16:18:04 +03:00
Minh Nguyễn
0f5b194617 [core, qt] Generalized source change notification
This same notification can in the future be used for other changes to a source.
2016-09-26 15:43:01 -07:00
Minh Nguyễn
f307652548 [core] Source-driven attribution
Implemented observer callbacks so the style knows when the source’s attribution changes and the map knows when the style’s attribution changes. Also implemented a getter for a tile source’s attribution.

Fixes #2723.
2016-09-26 11:37:06 -07:00
Bruno de Oliveira Abinader
1ce6e1b4bb [Qt] Move QMapboxGL::MapChange to QMapbox namespace 2016-09-26 11:47:34 +02:00
Bruno de Oliveira Abinader
7d63847bec [Qt] Use mbgl::LineString instead of mbgl::Polygon as default shape 2016-06-22 18:07:19 +03:00
Bruno de Oliveira Abinader
760a692378 [Qt] Added QMapbox::TransitionOptions to style class functions 2016-06-20 13:01:59 +03:00
John Firebaugh
0fba70d5a8 [all] Rationalize annotation API 2016-06-01 17:37:01 -07:00
Bruno de Oliveira Abinader
d36111abed [Qt] Initialize GL extensions on MapWindow
QMapboxGL relies on its embedding widget to call for the GL extensions
initialization function.

Fixes #5024.
2016-05-13 13:28:49 +03:00
Thiago Marcos P. Santos
8507b8663d [Qt] C++98 compatibility
Yeah, looks horrible.
2016-04-28 19:31:53 +03:00
Thiago Marcos P. Santos
a91d5ad7da [Qt] Initialize GL extensions
It will also enable Vertex Array Objects.
2016-04-28 12:55:46 +03:00
Thiago Marcos P. Santos
d00f55de41 [Qt] Do not use non-Qt headers 2016-04-25 15:00:14 +03:00
Bruno de Oliveira Abinader
8ff17ffc9a [Qt] Expose {add,remove}CustomLayer 2016-04-20 20:55:51 +03:00
Bruno de Oliveira Abinader
fa6421a56f [Qt] Implement QMapboxGL::jumpTo 2016-04-20 20:55:51 +03:00
Thiago Marcos P. Santos
459e72d72a [Qt] Expose API to go full offline/online 2016-04-20 20:55:51 +03:00
Thiago Marcos P. Santos
e974dd282d [Qt] Add function for get coordinates and zoom based on a bounding box 2016-04-20 20:55:51 +03:00
Thiago Marcos P. Santos
19e1129367 [Qt] Add the QMapbox header with QMapbox datatypes 2016-04-20 20:55:51 +03:00