Commit Graph

8640 Commits

Author SHA1 Message Date
Tobrun
3456e086ac [android] Fixes disappearing markers when crossing dateline, remove debug exception catch.
Fixes #5402
2016-06-27 10:18:38 -04:00
Tobrun
0d17bb1cc8 [android] #5479 - don't invalidate MapView when we are animating MyLocationView with an ObjectAnimator. 2016-06-25 10:03:04 +02:00
Tobrun
871f82dceb [android] #5479 - Don't disable rotate gesture if we have tracking disabled 2016-06-25 10:00:18 +02:00
Tobrun
76f9c1ac02 [android] #5479 - apply preRotate instead of postRotate for a correct transformation 2016-06-25 09:57:20 +02:00
John Firebaugh
b8326870e1 [core] Increment completedTileCount when appropriate (#5475) 2016-06-24 15:28:10 -07:00
Jesse Bounds
2d9ffcbadb Update podspec files for v3.3.0-beta.2 2016-06-24 14:45:42 -07:00
John Firebaugh
3d16cd088f [core] Protect against invalid geometries 2016-06-24 12:21:44 -07:00
John Firebaugh
3ccda59099 [android] Fix crash adding line or polygon annotation 2016-06-24 12:21:44 -07:00
Mike Morris
bc24da11b2 [node] add BUILDTYPE=Debug support to make node 2016-06-24 14:39:06 -04:00
Jesse Bounds
d9a1033b2a [ios] Use transparent image for annotations backed by views (#5461)
The current implementation of view backed annotations mostly relies
on the existing annotation model manager and the associated underlying
boost query implementations for annotation management. However, since
the representation of the model is a view, an image was not installed
for view backed annotations. Because the underlying annotation
management implementation is not entire comfortable working without
an image, it would report
`[INFO] {Worker}[Sprite]: Can't find sprite named 'default_marker'`
when annotation models without an image were encountered.

This updates the annotation adding logic in to create (or reuse) and
install a small, invisible image for each view backed annotation.
2016-06-24 11:27:23 -07:00
Fredrik Karlsson
d29bef957f [ios] fixes #5036 draggable annotation views (#5373) 2016-06-24 19:42:20 +02:00
John Firebaugh
021d4199cb [core, node] Implement bindings for addSource 2016-06-24 09:39:51 -07:00
John Firebaugh
16c435b151 [core, node] Implement bindings for addLayer 2016-06-24 09:39:51 -07:00
John Firebaugh
c4e4cc5081 [core] Adjust layer source properties to better reflect reality
* Layer source ID is immutable; must be provided to the constructor
* Layer source layer is mutable
* Layers with GeoJSON sources do not have a source layer

While here, make Layer::copy impl-private.
2016-06-24 09:39:15 -07:00
John Firebaugh
089c4e413f [core] Split up and clean up conversion.hpp 2016-06-24 09:39:15 -07:00
John Firebaugh
cb6a519f7c [core] Include what you use 2016-06-24 09:39:15 -07:00
Tobrun Van Nuland
64da7fa684 [android] Addresses marker view flat bug
Fixes #5427
2016-06-24 09:14:58 -04:00
Tobrun Van Nuland
b37de9f8f4 [android] - Fix locational runtime permissions
Fixes #5450
2016-06-24 08:56:11 -04:00
Jesse Bounds
05b6e72493 [ios] Cycle through both UIView and UIImage backed annotations
This changes the way the the calculation for the largest visual
annotation representation (stored in
_unionedAnnotationRepresentationSize) is done so that it includes both
images and views. The `annotationTagAtPoint` method is then able to
find annotation objects that are in a query rect formed from the
sizes of all manner of point annotation visual representations.

The `annotationTagAtPoint` method also gains new logic in a conditional
to handle annotations backed by MGLAnnotationViews. Similarly to
the image case, it filters out disabled annotations and calculates
a centered rect for the view. The hit test logic remains the same but
now works correctly for both the centered rects of both images and views.

This also fixes a bug where the `largestAnnotationViewSize` was always
holding the last annotation view size and not necessarily the largest.
This would affect when annotation views are put into a reuse queue since
the size is used to help determine when an annotation view has gone
offscreen.
2016-06-23 12:04:23 -07:00
Tobrun Van Nuland
cff1a8929f [android] Make markers View.GONE when being added for the first time to the map
Fixes #5439
2016-06-23 12:13:36 -04:00
Tobrun Van Nuland
6b1a753fd4 [android] Recalculate offset with new anchor
Fixes #5421
2016-06-23 12:00:47 -04:00
Minh Nguyễn
f5f39c8b3a [ios, macos] Renamed overdraw to overdraw visualization (#5416)
A verb doesn’t make sense in this enum value. Instead, use a descriptive word for this effect and describe it in detail in the documentation comment.

Cherry-picked from 415c182946.
2016-06-23 00:03:51 -07:00
Minh Nguyễn
415c182946 [ios, macos] Renamed overdraw to overdraw visualization (#5416)
A verb doesn’t make sense in this enum value. Instead, use a descriptive word for this effect and describe it in detail in the documentation comment.
2016-06-22 23:22:41 -07:00
Stephen Niedzielski
4c87da6b8f Allow Mapbox to be served to devices without Wi-Fi
android.permission.ACCESS_WIFI_STATE implies an android.hardware.wifi
requirement. Make Wi-Fi optional.
2016-06-23 08:08:13 +02:00
Jesse Bounds
5832f63acc [android] Cancel other gestures during shove.
This adds a guard so that when a shove gesture is occurring, no other
gestures take place. This helps avoid the disorienting feeling of
having the map move left and right and rotate while trying to tilt it
and looks more like Google maps.
2016-06-22 21:54:44 +02:00
John Firebaugh
699076c2fa [core] Remove TexturePool from style::UpdateParameters (#5442) 2016-06-22 12:32:06 -07:00
Bruno de Oliveira Abinader
9b533eb916 [build] Bump mapbox-gl-test-suite@9a7de2fb72607be6ffa0040bf3d84651719a45e3
Ignore 'debug/overdraw' until #5435 is fixed.
2016-06-22 19:59:20 +03: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
Konstantin Käfer
d58ed6f9f3 [core] remove TexturePool dependency from Raster constructor 2016-06-22 16:28:32 +02:00
John Firebaugh
3459b83736 [core, node] Node bindings for setFilter 2016-06-21 18:24:49 -07:00
John Firebaugh
220fc7adc9 [node] Support setLayoutProperty(..., "visibility", ...) 2016-06-21 16:30:35 -07:00
John Firebaugh
8a9ee26b0e [core] Use mbgl::style::conversion in node bindings 2016-06-21 16:04:22 -07:00
John Firebaugh
a18d6dda5d [core] Rewrite style parsing logic for reuse in node bindings 2016-06-21 15:38:13 -07:00
Thiago Marcos P. Santos
7ea0a0db32 [tests] Run memory tests on travis
Qt4 will run tests with libjemalloc.so. The Memory.Footprint and
the Memory.Fragmentation will only run with libjemalloc.so because
we have then a better control over the results.
2016-06-21 19:12:32 +02:00
Thiago Marcos P. Santos
ddc6bc330f [tests] Add memory tests
Simple tests that will render a raster and a vector map and
hopefully the valgrind bot will detect something wrong if any.

The other test will look for application lifetime leaks that cannot
be detected with valgrind. It can also detect GL leaks if they are
very expressive.  A threshold is needed because of memory will grow
anyway due to fragmentation.
2016-06-21 19:12:32 +02:00
Thiago Marcos P. Santos
178e0e9da9 [tests] Add resources for rendering offline
The StupFileSource of the memory test will do the rendering
completely offline with a vector tile that is densly populated
with features and a raster tile of the same region.

The styles are streets and satellite respectivelly.
2016-06-21 18:58:48 +02:00
Thiago Marcos P. Santos
2be2340c30 [tests] Do not re-trigger answered requests
This happens on real file sources when tiles expire or in case
of error. Here we only retry on error.
2016-06-21 18:58:48 +02:00
Fredrik Karlsson
3995d6ff68 [ios] fixes #5406 view for annotation (#5413) 2016-06-21 15:21:22 +02:00
Bruno de Oliveira Abinader
b06176cf11 [core] Replace boost iostream with standard {i,s}stream
Fixes #4915.
2016-06-21 10:29:15 +03:00
Antonio Zugaldia
fa54b7dd06 [android] #5415 - add 4.1.0-beta.3 to CHANGELOG.md 2016-06-20 16:12:45 -04:00
Antonio Zugaldia
1e2d567942 [android] #5415 - fix fabric version name 2016-06-20 16:11:11 -04:00
Antonio Zugaldia
fb13713ac0 [android] #5398 - Rename Custom Dynamic InfoWindow Adapter in testapp (#5414) 2016-06-20 14:16:22 -04:00
Jason Wray
a7d5717cf5 [ios] Disable telemetry while Low Power Mode is enabled
Low Power Mode is iOS 9+, so some availability checks must be made.
2016-06-20 14:06:54 -04:00
Antonio Zugaldia
b1aecc2faf [android] Rename Custom Dynamic InfoWindow Adapter in testapp
Fixes #5398
2016-06-20 13:43:21 -04:00
Antonio Zugaldia
7fb5c097bf [android] Add scaling marker activity to TestApp using the View Marker API
Fixes #5409
2016-06-20 13:17:08 -04:00
Bruno de Oliveira Abinader
77f309e7a0 [core] Factor out thread name setter/getter 2016-06-20 13:42:30 +03:00
Bruno de Oliveira Abinader
6c9e00be3a [node] Read 'options.showOverdrawInspector' 2016-06-20 13:24:20 +03:00
Bruno de Oliveira Abinader
97dffeb03d [core] s/Wireframe/Overdraw/g 2016-06-20 13:24:20 +03:00
Bruno de Oliveira Abinader
df5a395708 [core] Refactor wireframe to match JS overdraw mode 2016-06-20 13:24:20 +03:00
Bruno de Oliveira Abinader
7e549b9020 [core] Added BlendColor GL config value 2016-06-20 13:24:20 +03:00