Commit Graph

5798 Commits

Author SHA1 Message Date
Mike Morris
7ed3667092 pack images with pngjs
https://www.npmjs.com/package/pngjs
2015-05-18 16:12:41 -04:00
Minh Nguyễn
245823e474 Removed “private” header
Instead of exposing these methods in a private header that winds up triggering warnings publicly, just redeclare the methods in a category. Since this is a test app, we’ll catch any issues that arise from refactoring simply by testing.

Fixes #1579.
2015-05-18 11:55:54 -07:00
Minh Nguyễn
2c7d0567fa Privatized MGLMapboxEvents
`-pauseMetricsCollection` and `-resumeMetricsCollection` were originally introduced to mitigate concerns around battery usage, but `MGLMapboxEvents` has since evolved to tread much lighter on the battery. There’s no longer any need for the client to call these methods directly. The iOS test project now includes MGLMapboxEvents.h explicitly to avoid having to package a header that will go unused.
2015-05-18 11:55:54 -07:00
John Firebaugh
b3546ccc48 Move mobile logo to internal repo
[skip ci]
2015-05-18 11:51:04 -07:00
Thiago Marcos P. Santos
0f46810497 Merge pull request #1461 from mapbox/1458-partial_tiles_reparse
Do not process partial tiles if no new resources have arrived
2015-05-18 11:42:32 +03:00
Thiago Marcos P. Santos
aaaf1e4c14 Only emit tile updated signals when the tile really changes
We only emit signals when the number of buckets increase (i.e. the
new data that arrived added a new bucket to the tile).

Also, if we try to reparse a partial tile but it is not possible, we
keep the flag up for trying to reparse it again on the next update,
because the data might have arrived after the bucket that is waiting
for the data was processed but before the end of the parsing.

Fixes #1458
2015-05-18 10:42:05 +03:00
Thiago Marcos P. Santos
4e7c97466c Allow reparsing partial tiles when we have new tiles
When parsing a tile, we request resources from the network, like
sprites and glyphs.

In the rare case of the resources arriving before the tile is
parsed for the first time, if we don't mark it for being parsed
again, it can end up with a tile eternally stuck in the partial
state.
2015-05-18 10:42:05 +03:00
Thiago Marcos P. Santos
3f445e8578 Do not process partial tiles if no new resources have arrived
Partial tiles are now only processed again when there is a new resource
available. If we don't have new resources - like new glyphs - the end result
of the reparsing is the same, because no new SymbolBuckets would are created.

In my tests debugging with PowerTOP, this patch drops the CPU utilization
during the sampling period from 100ms/s to 40ms/s. The improvements on
slow connections (i.e. more time waiting for resources) are even more
noticeable.
2015-05-18 10:42:05 +03:00
Thiago Marcos P. Santos
41dc5e836a Emit the signal on the MapThread
We were previously emitting the signal on the thread parsing the
glyph, but signals can only be trigger from the MapThread
because the observers are living there.
2015-05-18 10:42:05 +03:00
Thiago Marcos P. Santos
f222efb939 Keep a pointer to GlyphStore on ResourceLoader
For now, keep a pointer so we can subscribe/unsubscribe to events. In
the future, we should move this object completely to ResourceLoader, but
we can't do it now because we delete the ResourceLoader when changing
the style.
2015-05-18 10:42:05 +03:00
Minh Nguyễn
27e5d18c42 Merge pull request #1573 from mapbox/1ec5-designable-redux-1568
Restore IB designable support
2015-05-16 21:36:24 -07:00
Minh Nguyễn
f16b353e43 Merge pull request #1577 from mapbox/1ec5-did-fail-to-fail
Properly fail to load the map
2015-05-16 20:37:44 -07:00
Minh Nguyễn
563fed5ca9 Properly fail to load the map
A typo in a selector literal meant that `-[MGLMapViewDelegate mapViewDidFailLoadingMap:withError:]` would never be sent to delegates even if `MGLMapView` had called it. Along for the ride, create a proper `NSError` to pass into that callback, and an error domain for that error.
2015-05-16 20:26:28 -07:00
Minh Nguyễn
b6a4ee0615 Revert "refs #1568: remove IBDesignable support for now"
This reverts commit 5a918cbb2c. The designable works fine because of #1469.

Fixes #1568.
2015-05-16 15:34:31 -07:00
Leith Bade
9ceda19363 Merge pull request #1571 from mapbox/android-styles
Update Android to use new styles
2015-05-16 12:47:23 +10:00
Leith Bade
7a2548edf1 Update Android to use new styles 2015-05-16 10:21:13 +10:00
Justin R. Miller
b021c4f39c Merge branch 'ios-b1' 2015-05-15 15:19:31 -07:00
Justin R. Miller
61d67676c8 update changelog for 0.3.1 2015-05-15 15:19:17 -07:00
Justin R. Miller
5ab27fd65a Merge branch 'ios-b1' 2015-05-15 15:15:22 -07:00
Justin R. Miller
e20ef135f1 use full raw screenshot for portability into API docs 2015-05-15 15:15:03 -07:00
Justin R. Miller
d41d69e9cd [publish ios-v0.3.1] 2015-05-15 15:05:05 -07:00
Justin R. Miller
568524eb56 bump podspec to 0.3.1 2015-05-15 15:04:24 -07:00
Justin R. Miller
fe99697c27 add podspec site docs URL 2015-05-15 15:03:50 -07:00
Justin R. Miller
f297cf9e0d add iOS screenshot to README, which goes into API docs 2015-05-15 15:01:21 -07:00
Justin R. Miller
5a918cbb2c refs #1568: remove IBDesignable support for now 2015-05-15 14:59:19 -07:00
John Firebaugh
83a5aae6c5 Render translucent background layers (fixes #1514) 2015-05-15 12:17:32 -07:00
Mike Morris
830a9b3972 drop CompressPNG 2015-05-15 13:24:04 -04:00
Mike Morris
2d5a73b25b Merge pull request #88 from mapbox/node-exe
Add support for and test against Node.js v0.12 and io.js v2.0.1
2015-05-15 12:27:10 -04:00
Konstantin Käfer
4798c502aa Merge pull request #1567 from mapbox/threadset-emplace-followup
Removed unneeded unique_ptr
2015-05-15 16:04:48 +02:00
Thiago Marcos P. Santos
d0b2db3826 Removed unneeded unique_ptr 2015-05-15 16:49:02 +03:00
Konstantin Käfer
c85df38bbb Merge pull request #1408 from mapbox/1408-fix-integer-overflow
Coverity [64756] Unintentional integer overflow
2015-05-15 14:57:05 +02:00
Konstantin Käfer
8dd32e7d22 make sure bit shifts happen with unsigned integers
fixes #1407 and #1408
2015-05-15 14:42:43 +02:00
Thiago Marcos P. Santos
c7b513ad42 Merge pull request #1291 from mapbox/threadset-emplace
emplace into threadSet
2015-05-15 13:22:59 +03:00
Thiago Marcos P. Santos
b162fb7c6f Make the MapContext object run on its own thread on the tests
The MapContext can only run on its own thread because it is
registering a EnvironmentScope and it is making many assertions
on Debug mode if its methods are being called on the Map thread.
2015-05-15 13:06:23 +03:00
Mike Morris
f3c2093502 emplace into threadSet
Map thread and Main thread should be separated in Mode::Static now
2015-05-15 12:58:22 +03:00
Thiago Marcos P. Santos
377a10d257 Merge pull request #1566 from mapbox/test_output
Add output of RepeatedRender test to .gitignore
2015-05-15 12:49:34 +03:00
Thiago Marcos P. Santos
4b061a0588 Add output of RepeatedRender test to .gitignore
Also delete files that are test output but were checked in.
2015-05-15 12:34:57 +03:00
Thiago Marcos P. Santos
f9beb850e5 Merge pull request #1539 from mapbox/1539-figure_out_deps_first
Figure out Glyph PBF dependencies in the first parsing step
2015-05-15 10:38:12 +03:00
Thiago Marcos P. Santos
397bbfe495 Always request the SymbolBucket dependencies at the first pass
When processing a layer, we request the dependencies of all the
SymbolBuckets even if we are not processing it completely.
By doing that we are now requesting glyphs in parallel instead of
sequentially as we were doing before.

This patch is also simplifying the SymbolBucket creation code by getting
rid of the ugly "needsResources" return value passed by reference as
argument.
2015-05-15 10:22:57 +03:00
John Firebaugh
c1d004b8fb Restore sprite load check
This is necessary to ensure that background and fill images are ready
to render.

Fixes #1563
2015-05-14 18:15:54 -07:00
John Firebaugh
5aa5976a71 Speculative fix for PNG alpha/gamma handling
The libpng documentation is hopelessly impenetrable and I have no idea
what I'm doing, but this seems to fix the headless rendering failures.
2015-05-14 18:02:15 -07:00
John Firebaugh
2efaeb8816 Upload headless results in after_script
I need to see the results even for passing builds, so I can tell how
allowed failures are still failing.
2015-05-14 17:44:33 -07:00
Justin R. Miller
816796172a Merge branch 'ios-b1' 2015-05-14 15:34:05 -07:00
Justin R. Miller
6ab4f974ca touch up README around CocoaPods 2015-05-14 15:31:26 -07:00
Justin R. Miller
1bb7be6702 update podspec homepage 2015-05-14 14:53:26 -07:00
Minh Nguyễn
00b2e13b64 mapID → styleID
Deprecated `-mapID` and `-setMapID:` to accurately reflect the APIs the ID is used for. Marked the property unavailable but reimplemented its getter and setter to assert with helpful messages.

Fixes #1500.
2015-05-14 14:49:26 -07:00
Justin R. Miller
e7d60f8e0b [publish ios-v0.3.0] 2015-05-14 14:17:17 -07:00
Justin R. Miller
b1fac0a796 bump podspec to 0.3.0 2015-05-14 14:17:03 -07:00
Brad Leege
594603f929 Merge pull request #1560 from friedbunny/compass-device-rotation-rotation
Rotate compass on device orientation changes
2015-05-14 16:10:00 -05:00
Jason Wray
03a129176c Rotate compass on device orientation changes 2015-05-14 13:13:24 -07:00