Commit Graph

16768 Commits

Author SHA1 Message Date
John Firebaugh
40051fb68e [core] Keep symbol and non-symbol buckets segregated
Discard prior symbol buckets only when new symbol buckets became available, in order to eliminate flickering when tiles are refreshed.
2017-01-10 10:15:22 -08:00
Tobrun
f18c0b8d1e [android] - cleanup telem, disabled logging, exponential backoff, local broadcast (#7605) 2017-01-10 17:26:06 +01:00
Antonio Zugaldia
92dff9ee93 update gradle files and packages to use smaller versions of MAS and save methods (#7642) 2017-01-10 11:11:09 -05:00
Minh Nguyễn
dea1a30332 [ios, macos] Title case attribution buttons
Also added a category method on NSString for title casing the string, plus tests.
2017-01-10 07:56:06 -08:00
John Firebaugh
f1b56a2c07 [build] Symlink mapbox-gl-js/node_modules so that it shares a cache 2017-01-09 19:05:28 -08:00
John Firebaugh
9f9e820540 [build] Use test-suite integration tests from mapbox-gl-js 2017-01-09 19:05:28 -08:00
Bobby Sudekum
f6f82d15ab Allow new s3 publish location (#7653) 2017-01-09 18:20:20 -08:00
Bobby Sudekum
32660bce34 Bump version, update changelog (v3.4.3) (#7650) 2017-01-09 16:34:45 -08:00
Minh Nguyễn
9d55c0f479 [ios, macos] Replace <q> tags with quotation marks in code blocks 2017-01-09 15:51:50 -08:00
Tom MacWright
a5eae14661 Move package to @mapbox namespace. 2017-01-09 15:47:38 -08:00
Bobby Sudekum
2988ca16c1 Add addImage, removeImage API (#7610) 2017-01-09 13:03:17 -08:00
Minh Nguyễn
0749659727 [ios, macos] Added MGLShape from GeoJSON example
Added an example of deserializing an MGLShape from a GeoJSON file.
2017-01-09 11:41:05 -08:00
Thiago Marcos P. Santos
9c62af2114 [Qt] Removed unused file
Leftover from the gyp -> cmake migration.
2017-01-09 16:41:59 -02:00
Thiago Marcos P. Santos
def6b63cf7 [Qt] Fix cross compilation on OSX
Use mason platform instead of CMake host, because the target won't
always be the same arch as the host.
2017-01-09 15:52:57 -02:00
Minh Nguyễn
2b61880b57 [macos] Include pitch in shared URL 2017-01-09 09:09:47 -08:00
Thiago Marcos P. Santos
eaf03f4103 [Qt] Added line-dasharray to the example app
Showing how to add numbers in an array.
2017-01-09 13:49:35 -02:00
Thiago Marcos P. Santos
0caa496bb3 [Qt] Fixed typo s/maker/marker
It propagated via copy & paste. :-P
2017-01-09 13:49:35 -02:00
Thiago Marcos P. Santos
2a22ff7f1b [Qt] Add more docs 2017-01-09 13:49:35 -02:00
Thiago Marcos P. Santos
6cc37e6065 [Qt] Removed unused methods
They will never return true because Qt only does client side animations.
2017-01-09 13:49:35 -02:00
Minh Nguyễn
e162d4f4c8 Happy new year! 🎉
Cherry-picked from b35deb85bc.
2017-01-09 02:18:52 -08:00
Minh Nguyễn
a4c44c5158 [ios, macos] Cleaned up color, edge insets declarations, comments
Eliminated references to MGLColor within style layer headers.
2017-01-09 01:38:20 -08:00
Minh Nguyễn
e0f9870406 [macos] Flip offsets and translations
The screen origin is at the lower-left, so offsets and translations increase rightwards and upwards, in contrast to iOS and Web contexts, where the coordinate system increases rightwards and downwards. Duplicated style layer property declarations to reflect this difference.
2017-01-09 01:38:20 -08:00
Minh Nguyễn
a5e43f0272 [ios, macos] Note reversed order in NS/UIEdgeInsets 2017-01-09 01:38:20 -08:00
Minh Nguyễn
1ae84db978 [ios, macos] Clarified CGVector, NS/UIEdgeInsets accessors 2017-01-09 01:38:20 -08:00
Jesse Bounds
2a9f883239 [ios, macos] Document that MGLShape can deserialize GeoJSON (#7638) 2017-01-08 20:22:44 -08:00
Minh Nguyễn
c6e60b8c03 [ios, macos] Test unclusterable shape source shapes 2017-01-08 17:45:18 -08:00
Minh Nguyễn
84f90697df [core] Avoid clustering unclusterable GeoJSON
Ignore empty feature collections or non–feature collections for the purposes of clustering or tiling. A source’s clustering option can only be set when the source is constructed, but setGeoJSON() enables the developer to swap a clusterable feature for an unclusterable geometry and back.
2017-01-08 17:45:18 -08:00
Jesse Bounds
226054bf71 Document requirement about adding sources and layers (#7634)
* [ios, macos] Document requirement about adding sources and layers

Sources and layers added outside of mapView:didFinishLoadingStyle:
and mapViewDidFinishLoadingMap: are not guaranteed to appear
since the map may not be fully loaded and ready to accept new
sources and layers.

This also fixes a compiler warning in iosapp.
2017-01-08 17:08:24 -08:00
Jesse Bounds
4cee2b1a69 [ios, macos] Allow creation of shape collections with no shapes (#7632) 2017-01-08 17:07:06 -08:00
Jesse Bounds
901c806916 [ios] Only use non nil presentationLayers to adjust annotation views (#7626)
Views that are added outside of the viewport do not always have an
instantiated presentationLayer. Attempting to use a nil
presentationLayer to move a view offscreen resulted in the view
being pinned to the left side of the view port (at x == 0).
2017-01-08 12:53:23 -08:00
Minh Nguyễn
d3a2ffe747 [ios, macos] Fixed links to paint properties in style spec 2017-01-07 15:54:08 -08:00
Minh Nguyễn
bf8d037fca [ios, macos] -translate → -translation 2017-01-07 15:47:31 -08:00
Minh Nguyễn
17b3ec1edd [ios, macos] Renamed text-field, text-font, text-font-size, circle-pitch-scale
Reduced the likelihood that the developer might attempt to set textField to an NSTextField or UITextField, or textFont to an NSFont or UIFont, or textSize to a CGSize or NSSize, or circlePitchScale to a number (given iconScale).
2017-01-07 15:46:53 -08:00
Minh Nguyễn
d5d6bcee0f [ios, macos] Keep style attribute NSValue categories near enum declarations
Eliminated the separate NSValue+MGLStyleLayerAddition files, moving the categories into their respective style layer headers to be closer to the enumeration declarations.
2017-01-07 14:37:53 -08:00
Minh Nguyễn
80df3090ec [ios, macos] Split NSValue+MGLStyleEnumAttributeAdditions category per style layer type
Also renamed the file to have a slightly more wieldy name.
2017-01-07 14:37:53 -08:00
John Firebaugh
b6894dd4fc [core] Unify update and render into a single step
Update only when, and just prior to, rendering, giving no opportunity to interleave unexpected state changes. This means that every time anything about the state is changed, we'll have to attempt a render to reflect that change. In the case of continuous rendering this has happened before this change as well, but it leaves no room for time to pass between an update and a render. In the case of still image rendering, a render call will only actually paint something to the view when all resources have been loaded.
2017-01-06 12:03:48 -08:00
Minh Nguyễn
428c0fdf70 [macos] Arrange layers top to bottom in sidebar
Implemented a reversedLayers property on MGLStyle based on the layers property.
2017-01-06 07:47:43 -08:00
Tobrun
4617d18e37 [android] - update changeling for 5.0.0 with current progress (#7579) 2017-01-06 16:21:21 +01:00
Chris Loer
d5b878a553 Small line breaking improvements based on testing with Chinese data:
- Put "breakable" punctuation (such as a hyphen) on the line that starts the break, not the line after the break.
- Process all characters with the line breaking algorithm, even if we don't have glyphs for them. Some fonts have glyph-less breakable characters (we end up treating them similarly to a "zero-width space").
- Don't include trailing white space in raggedness calculations
- Make the "favor short final lines" rule more aggressive (unlike the other changes, this one is purely an aesthetic choice)
2017-01-05 10:22:53 -08:00
Chris Loer
12a9932ebc Port raggedness-minimizing line breaking from gl-js. 2017-01-05 10:22:53 -08:00
Chris Loer
35ccb01dbd Render newlines in labels even if there's nothing else on the line. 2017-01-05 10:22:53 -08:00
Chris Loer
f68449aeb8 Cleaning up line breaking code.
* Don't include trailing spacing (as opposed to whitespace) in lineLength
* Modify BiDi interface to require initial bidi layout and linebreaking to happen in one call.
* Code style changes suggested by @kkaefer
2017-01-05 10:22:53 -08:00
Minh Nguyễn
4700c72e15 [ios, macos] Relaxed sources, layers type
Refined the types of MGLStyle’s sources and layers types so that Objective-C code can easily send messages intended for subclasses of MGLSource or MGLStyleLayer that are contained in one of these containers.
2017-01-05 10:22:10 -08:00
Minh Nguyễn
b6f7d03e5d [ios, macos] Sources, layers properties are immutable
If you need a mutable array of layers, use -mutableArrayValueForKey:.
2017-01-05 10:22:10 -08:00
Thiago Marcos P. Santos
f55a6e2b7a [Qt] Expose method for changing the base API URL
Useful for redirecting to a cache server or debugging.
2017-01-05 15:09:02 -02:00
Minh Nguyễn
188a61af55 [macos] Fixed changelog parsing
Updated changelog parsing code to handle subheadings within release notes.
2017-01-05 08:13:13 -08:00
Tobrun
e71d9ac2d4 [android] - rework MarkerView update mechanism (#7581) 2017-01-05 16:58:41 +01:00
Konstantin Käfer
20615a2c15 [android] improve test runner by allowing selective execution of tests 2017-01-05 15:22:48 +01:00
Tobrun
ed4e7a1134 [android] - Show bus stops and route Circle Layer Activity (#7402) 2017-01-05 09:47:51 +01:00
Minh Nguyễn
2382f199c1 [ios] Link guides to each other 2017-01-04 21:48:32 -08:00