Fredrik Karlsson
ad095e458d
[ios, macos] fixes #5962 added geojson options to support clustering
2016-09-02 14:41:47 -07:00
Jesse Bounds
7e208c46ce
[ios] Check for bool value with char
...
We convert NSNumbers (and NSStrings) to the appropriate mbgl value
so that we can use NSPredicates to describe mbgl filters we want
to apply to style layers at runtime.
This change fixes an issue where
the conversion from an NSNumber that represented a bool was not
recognized as such. encode(bool) returns a 'c' or 'b' on 32 bit and
64 bit systems respectively and objCType of an NSNumber representing
a bool always returns 'c'. Now the implementation checks for 'c'
always and NSNumbers representing bool don't fall through and
trigger the exception.
2016-09-02 22:42:48 +02:00
Fredrik Karlsson
d77a13eb73
[ios] Added support for filters (NSPredicate)
...
[ios, macos] cleaned up filters
[ios] added a filter example
[ios] utest filters
[ios, macos] nested predicates
[ios] refactored
[ios] filter -> NSPredicate
[ios] fixed mbgl::Any/AllFilter -> NSPredicate
[ios] translate nested mbgl::NotIn filters
[ios] cleanup and added more utests
[ios] fixed a bug in the None filter conversion and improved utests
[ios, macos] doc
[macos] added missing category
[ios, macos] additional utests
[ios, macos] updated documentation
2016-09-02 22:42:05 +02:00
Cameron Mace
6a39cf5aae
[android] Checkstyle fixes round 1 ( #6234 )
...
* removed last of hungarian notation from testapp and fixed other checkstyle issues
* added back MapboxMap for espresso
2016-09-02 14:48:49 -04:00
Jesse Bounds
0c4e51adf8
[ios] Silence MGLCalloutView related warnings in tests ( #6231 )
...
The annotation view test uses a fake MGLTestCalloutView that
declares conformance to the MGLCalloutView protocol. However,
several properties and a method were not implemented in the test
which caused several warnings that were visible if you compiled
the SDK tests. This change stubs out the properties and method
so the warnings go away.
2016-09-01 16:49:30 -07:00
Cameron Mace
5e8e00561d
[android] introduce checkstyle ( #6214 )
2016-09-01 10:21:49 -04:00
Dane Springmeyer
1d7ec30ab0
upgrade to protozero 1.4.2 ( #6227 )
2016-08-31 20:51:11 -07:00
Jason Wray
5a3bba6fc4
[ios] Add -ObjC to static podspec; update custom CocoaPods steps
2016-08-31 22:32:47 -04:00
Dane Springmeyer
be08c79b6f
update filter doc usage example ( #6202 )
2016-08-31 15:33:43 -07:00
Jason Wray
fcee1a85cd
[ios] Allow implicit animation of annotation views
...
- Allows the user location annotation to again animate its movements while no tracking mode is enabled.
2016-08-31 15:55:34 -04:00
Tobrun
57e7cc97d0
[android] - fix breaking build on master ( #6225 )
...
* [android] - fix breaking build, by implementing mapboxMap on VideoViewActivity
* fix layout file for auto generated tests
* [android] fix resource id
2016-08-31 21:27:01 +02:00
Cameron Mace
fe28b57fe0
[android] added video view example ( #6198 )
...
* [android] added video view example
* removed map ready callback
2016-08-31 11:56:57 -04:00
Konstantin Käfer
1e2189266f
[macos] Explicitly link the OpenGL framework for compatibility with macOS Sierra
2016-08-31 15:40:32 +02:00
Ivo van Dongen
3e71b84d28
[android][build] Only strip the resulting libraries ( #6222 )
2016-08-31 15:16:16 +02:00
Jason Wray
dd4d1a9927
[ios] Update INSTALL doc for -ObjC; use local podspec path
...
- Adds -ObjC flag for static lib.
- Fixes link to iOS SDK site.
- Pushes CocoaPods down the list.
- Changes CocoaPods to use local path, not HTTP.
- Emphasizes that INSTALL.MD is only for custom builds.
2016-08-30 21:23:34 -04:00
Jesse Bounds
c95ffe65a6
[ios] Update change log for centerOffset bug fix
2016-08-30 16:57:43 -07:00
Romain Quidet
4d74e73e5e
[iOS] Using contentInset for setCenterCoordinate: and flyToCamera methods everywhere.
2016-08-30 16:37:45 -07:00
Jason Wray
c075386a98
[ios] Remove misleading MGLOverlay documentation ( #6211 )
2016-08-30 16:19:53 -04:00
Fredrik Karlsson
5588935412
[ios, macos] fix imports ( #6209 )
2016-08-30 17:57:36 +02:00
Jesse Bounds
22cc375da0
[ios] Avoid updating sprite backed annotations in view update method ( #6199 )
...
Previously, annotations backed by sprite had their frames updated
by the view backed annotation update method. This guards against
that by aborting an update for an annotation if an associated
view cannot be found.
In addition, some dead code is removed.
2016-08-29 16:20:29 -07:00
Jason Wray
c075a879b8
ios-v3.4.0-alpha.3
2016-08-29 14:17:18 -04:00
Tobrun
8deb7aaa79
[android] - 5844 remove stop gap for update-able shape annotations ( #6187 )
...
* [android] - remove stopgap updatable shape annotations
2016-08-29 17:43:32 +02:00
Sylvain HOCQ
eca745d63a
[android] add method addMarkerViews with only one invalidate
...
* add method addMarkerViews with only one invalidate
* clean sample BulkMarkerActivity
2016-08-29 17:37:09 +02:00
John Firebaugh
e126dc3a5a
[core] Fix updates of line and fill annotations
2016-08-29 08:08:44 -07:00
Tobrun
d9f63c6d76
[android] add spoon gradle plugin ( #6089 )
2016-08-29 15:23:01 +02:00
Tobrun
58f7310749
[android] added missing rotation, cleanup duplicate entries ( #6153 )
2016-08-29 15:10:55 +02:00
Tobrun
4db99d2024
[android] alpha not applied from builder fix for marker view ( #6152 )
2016-08-29 14:50:52 +02:00
Tobrun
e759f1c948
[android] #6113 - receiver not registered exception ( #6130 )
2016-08-29 14:47:38 +02:00
Tobrun
1d66eda14b
[android] #5875 - MapboxMap options not parceling drawables ( #5984 )
...
* [android] #5875 - MapboxMap options not parceling the MyLocationView drawables
* [android] #5875 - disabled parceable test for bitmaps
* [android] #5876 - correct restoration of bitmapdrawable for unit test
* disable check for drawable type
2016-08-29 13:43:22 +02:00
Tobrun
7af5542226
[android] Anchoring was only set once while it was still unmeasured. There are times that a view is still unmeasured even after a measure call. We need to validate again before setting the offset. ( #6154 )
2016-08-29 13:31:17 +02:00
Tobrun
ed431c925c
[android] #6083 - add circle example ( #6086 )
...
* add method addMarkerViews with only one invalidate
* [android] #6083 - add circle example
2016-08-29 13:18:32 +02:00
Minh Nguyễn
f4be8260ba
[ios, macos] Specialize color properties by platform
...
Duplicate each color-typed property once per platform using conditional compilation macros. Let’s just hope we never have to throw CGColor into the mix.
2016-08-26 22:27:55 -07:00
Minh Nguyễn
35a1c01166
[ios, macos] Test roundtripping property functions
2016-08-26 22:27:55 -07:00
Minh Nguyễn
b1cc89fc9c
[ios, macos] Fixed roundtripping padding functions
2016-08-26 22:27:55 -07:00
Minh Nguyễn
1e1ae8fd25
[ios, macos] Fixed roundtripping enum values
...
Also support unsetting enumeration-typed properties.
2016-08-26 22:27:55 -07:00
Minh Nguyễn
1e7a5ce273
[ios, macos] Test enum values, not just types
2016-08-26 22:27:55 -07:00
Minh Nguyễn
72bee845b6
[ios, macos] Fixed getting enum functions
...
Fixes #6161 .
2016-08-26 22:27:55 -07:00
Minh Nguyễn
5d06a4370d
[ios, macos] Simplified test code generation
2016-08-26 22:27:54 -07:00
Minh Nguyễn
a648f42bc7
[ios, macos] More specific default value types
...
The documentation for runtime style API properties now spells out the value of the default type, to help developers infer the type of the property itself.
2016-08-26 22:27:51 -07:00
Minh Nguyễn
9d368ea98d
[ios, macos] Mark MGLStyleLayer properties null_resettable
...
If the property is unset, return the default value.
Fixes #6126 .
2016-08-26 15:40:10 -07:00
Jason Wray
8dff7ab2f0
[ios] Improve user location annotation documentation
...
- Add note to mapView:viewForAnnotation: delegate method.
- Edit docs in iosapp's implementation of that delegate method.
2016-08-26 17:48:27 -04:00
Jason Wray
018f395442
[ios] Ignore non-conforming user location annotation views
2016-08-26 17:48:27 -04:00
Justin R. Miller
2501b2cc7b
[ios] preserve annotation transforms during perspective scaling
2016-08-26 14:29:31 -07:00
John Firebaugh
f07f592078
[core] Simplify GeoJSONTile constructor
2016-08-26 10:30:55 -07:00
John Firebaugh
d2abb1b6d5
[core] Change GeoJSONSource::getURL() to return an optional<std::string>
...
GeoJSON sources may have inline GeoJSON rather than a URL; returning an optional type ensures that consumers handle this case.
2016-08-26 10:30:55 -07:00
John Firebaugh
50ae6c738a
[core] .gitignore more .db-shm's
2016-08-26 10:30:55 -07:00
John Firebaugh
2d6f04dfb9
[core] Clean up and simplify geojson_tile.cpp
2016-08-26 10:30:55 -07:00
John Firebaugh
7c801696eb
[core] const consistency
2016-08-26 10:30:55 -07:00
John Firebaugh
a79d2afe1b
[core] Rename data ⇢ tile; use Resource::Necessity
2016-08-26 10:30:55 -07:00
John Firebaugh
8ac03f3870
[core] Inline Source::Impl::getTile
2016-08-26 10:30:55 -07:00