Commit Graph

7032 Commits

Author SHA1 Message Date
Minh Nguyễn
1d11624efd Test fit to bounds; added MGLCoordinateBounds functions
Added a bunch of functions to work with MGLCoordinateBounds in a separate header analogous to MKGeometry.h. Added resolution-independent tests for common fit to bounds scenarios.
2015-06-25 21:54:57 -07:00
Minh Nguyễn
68e404c522 Fit to bounds with padding
Each side of the bounding box is specified independently, allowing more flexibility than the offset + padding construct supported in mapbox/mapbox-gl-js’ Camera.
2015-06-25 21:54:57 -07:00
Minh Nguyễn
c57799f26c Reimplemented fit to bounds
The new implementation is now public and takes advantage of MGLCoordinateBounds. It is re-ported from `Camera.prototype.fitBounds()` in mapbox/mapbox-gl-js to ensure correct behavior. A new function, MGLCoordinateBoundsMake(), makes it easier to create an MGLCoordinateBounds for use with this method.
2015-06-25 21:54:53 -07:00
Jason Wray
f5c1e2630e Remove redundant didChangeAuthorizationStatus: in favor of didFailWithError:
Listening to both `locationManager:didChangeAuthorizationStatus:` and `locationManager:didFailWithError:` delegate methods is unnecessary. Setting `showsUserLocation = NO` in the first means that the second never gets called and our `mapView:didFailToLocateUserWithError:` delegate method never gets called.
2015-06-25 16:02:55 -07:00
Brent Whitman
64c05d02e2 Fix typo which caused MGLMultiPoint to return longitude as latitude of bounds. 2015-06-25 15:00:21 -07:00
Brent Whitman
ae8af8f2ea Add xcpretty dependency to README 2015-06-25 14:59:27 -07:00
Mike Morris
396fcc8b8c 1.1.3 [publish binary] 2015-06-25 14:00:09 -04:00
Mike Morris
f550a11ff5 update changelog 2015-06-25 13:59:43 -04:00
Mike Morris
716f97f40c Merge pull request #140 from mapbox/remove_environment
Remove mbgl::Environment from logging
2015-06-25 13:58:01 -04:00
Minh Nguyễn
fc209e31c5 Reversed direction to be clockwise
For consistency with MapKit, the Google Maps SDK, and these methods’ own documentation.

Fixes #1780.
2015-06-25 10:20:48 -07:00
Thiago Marcos P. Santos
d41d2c63dd Remove mbgl::Environment from logging
mbgl::Environment was dropped and since most of the errors are being
forwarded to the NodeMap render callback, we can handle them there
and pinpoint exactly what NodeMap object is failing.
2015-06-25 18:23:28 +03:00
Thiago Marcos P. Santos
b99831198e Bump Mapbox GL Native to v0.4.0+
Removed mbgl::Environment.
2015-06-25 18:22:47 +03:00
Thiago Marcos P. Santos
7a30a0d316 Be more strict on escaping at the test regex
Apparently libc++ is more strict about escaping
than libstdc++.

Also, restrict the set of tiles we expect to the
only possible tiles.
2015-06-25 18:13:01 +03:00
Thiago Marcos P. Santos
07086981fe Get rid of Environment et al.
mbgl::Environment is not used anymore and can
removed.
2015-06-25 16:26:22 +03:00
Thiago Marcos P. Santos
e32b0b7e20 Introduce GLObjectStore
Make a class for keeping GL objects ids and attach it
to the ThreadContext instead of hanging it on the Environment.
2015-06-25 16:26:21 +03:00
Thiago Marcos P. Santos
be4cb6786b Make the FileSource available from the ThreadContext
For now we set the FileSource for the Worker context
but in the future after fixing #1664 we can assert()
that FileSource are set only for the Map thread context.
2015-06-25 16:26:21 +03:00
Thiago Marcos P. Santos
b56c356de7 Use ThreadContext data for logging
Do not use the Environment anymore. The Environment ID is not
really necessary anymore as we are forwarding exceptions to the
main thread, so we always know which Map object triggered the
error.
2015-06-25 16:26:21 +03:00
Thiago Marcos P. Santos
57ddb386d8 Add unit tests for ThreadContext 2015-06-25 16:26:21 +03:00
Thiago Marcos P. Santos
a8b6b67dfe Introduce the ThreadContext
mbgl::Thread will keep a ThreadContext for each running instance
in a thread_local so we don't need to lookup a man in the Environment
every time we need some info about the current thread.

This patch is moving the ::currentlyOn check used on Debug build from
the Environment class to the ThreadContext.
2015-06-25 16:26:21 +03:00
John Firebaugh
7bb86368d4 Remove unused 2015-06-24 14:56:48 -07:00
John Firebaugh
a05698fe06 Remove MapData dependency from AnnotationManager 2015-06-24 13:08:37 -07:00
John Firebaugh
4ba78b6bcf Transform needs only a single TransformState 2015-06-24 13:08:36 -07:00
Bruno de Oliveira Abinader
3396bcaaac Cleaned up remaining bool function return values 2015-06-23 19:59:22 +03:00
Bruno de Oliveira Abinader
71ed184bc4 Improve readibility for style parser results
Introduces StyleParser::Result being a std::tuple<Status, T>, where
StyleParser::Status is a boolean enumerator which improves readibility.
2015-06-23 19:58:14 +03:00
Bruno de Oliveira Abinader
7bfae2a1a5 Fix result value from parseProperty when T = std::array<float, 2> 2015-06-22 22:46:37 +03:00
Thiago Marcos P. Santos
43d69b6a65 Fix resource loading flaky test
When testing failed vector tiles requests, we check for error messages
of a very specific tiles, but mbgl will requests 4 tiles.

We might get the error callback before the tile we are checking for
reports error, so the test fails.

Now we use a regex to match the log message we are looking for.
2015-06-22 22:00:24 +03:00
Brad Leege
641046138c Adding extraneous settings files to gitignore 2015-06-22 13:10:45 -05:00
Minh Nguyễn
555e1f141e Substitute lightweight generics macros in docset
Followup to 91641ffb01 for #1711: also preprocess the generics macros when generating a docset.
2015-06-22 10:41:05 -07:00
Mike Morris
a107680bc9 Update CHANGELOG.md 2015-06-22 13:35:15 -04:00
Mike Morris
22c2076c5e 1.1.2 [publish binary] 2015-06-22 12:06:33 -04:00
Mike Morris
e2db5c46b5 update changelog 2015-06-22 12:06:00 -04:00
Mike Morris
2fce35b0a1 Merge pull request #134 from mapbox/134-crash_without_style
segfault instead of JS error requiring style to be set
2015-06-22 11:58:58 -04:00
Thiago Marcos P. Santos
e6c442bf4e Adjusts tests for the new API
Unskip tests that should be passing now and adjust error
messages to reflect recent changes.
2015-06-22 08:49:53 +03:00
Thiago Marcos P. Santos
1ae7dd585d Throw when style is not loaded
mbgl::Map won't throw if the style is not set but we
can track that on NodeMap.
2015-06-22 08:48:44 +03:00
Thiago Marcos P. Santos
d37e22b9c2 Bump Mapbox GL Native to v0.4.0
Pull the fixes for the "rendering without setting a style" crash.
2015-06-22 07:59:09 +03:00
Nicholas Hallahan
ef31fc5aed attempting to put one annotation on the map - gets to the native call and then nothing happens 2015-06-20 16:21:41 -07:00
Justin R. Miller
1779dd870d Screenshot III: The Reducening 2015-06-19 15:59:26 -07:00
Justin R. Miller
0955dfc19f Merge branch 'release-v0.4.0' 2015-06-19 15:56:53 -07:00
Justin R. Miller
cfa0890d82 Screenshot II: The Return of Screenshot 2015-06-19 15:53:58 -07:00
Thiago Marcos P. Santos
d434746a46 Better error messages
Use the error message passed by the error exception instead of
always reporting "Error rendering image".
2015-06-19 16:52:03 -04:00
Justin R. Miller
18d8d4475e avoid release candidates in determining version 2015-06-19 12:57:42 -07:00
Mike Morris
898f4d3f08 Check libuv version semver-ishly
Fixes https://github.com/mapbox/node-mapbox-gl-native/issues/137
2015-06-19 11:48:41 -07:00
Justin R. Miller
8f8fdaad88 [publish ios-v0.4.0] 2015-06-19 11:21:12 -07:00
Justin R. Miller
c7f9e79d54 fixes #1756: call out breaking changes 2015-06-19 11:20:55 -07:00
Justin R. Miller
7ad3b1cedc update podspec (0.4.0 final, no symbols) 2015-06-19 11:17:41 -07:00
Justin R. Miller
fe991ce54e another symbol fix for appledoc parsing 2015-06-19 11:13:26 -07:00
Justin R. Miller
59362a1e55 Merge pull request #1761 from mapbox/unavailable-docs
remove docs for unavailable API
2015-06-19 11:11:12 -07:00
Justin R. Miller
afb7095ecc refs #1759: remove header docs for now-unavailable API 2015-06-19 11:07:24 -07:00
Justin R. Miller
d786550677 slight changelog tweaks to avoid appledoc problems 2015-06-19 09:55:09 -07:00
Justin R. Miller
9369defa66 fixes #1756: update changelog for 0.4.0 2015-06-19 09:47:45 -07:00