Commit Graph

5925 Commits

Author SHA1 Message Date
Tobrun
77df026adc Correct behaviour when switching between tracking modes, added javadoc 2015-11-30 11:30:28 +01:00
Tobrun
43aad4eb1d [android] #3071 - Make docs navigation more obvious for MapChangeListener
[android] #3071 - improve javadocs: removed reference to Google Maps

Consistent documentation style in constants package

[android] #3071 added documentation to MathConstants class

[android] #3071 added javadoc class documentation for MapboxConstants

[android] #3071 added documentation to the GeoConstants class, also added white line at end of the class for consistency

[android] #3071 make clear that public static final fields are used for MapChange, add link to MapView.OnMapChangeListener
2015-11-30 11:22:57 +01:00
Minh Nguyễn
4240dfb0a8 Updated links to access token manager
The old URL redirects to a Mapbox Studio page not specifically about access tokens.
2015-11-29 01:39:29 -08:00
Bruno de Oliveira Abinader
92856f394c [core] Collision debug is now MapDebugOptions::Collision 2015-11-27 17:47:02 +02:00
Bruno de Oliveira Abinader
d55aa7929c [core] Source should receive a ref to MapData just once 2015-11-27 17:47:02 +02:00
Bruno de Oliveira Abinader
1f0820c8e8 [core] Added MapDebugOptions
Map debug options are now cycled up to all debug options enabled, then
back to none.
2015-11-27 17:47:02 +02:00
Bruno de Oliveira Abinader
044e92f5e8 [core] Display modify, expires debug information 2015-11-27 17:47:02 +02:00
Bruno de Oliveira Abinader
591e0dde2f [core] Added modified, expires information to TileData 2015-11-27 17:47:02 +02:00
Bruno de Oliveira Abinader
31fd2822f5 [core] Replace time_t with std::chrono::seconds
Added aliases for std::chrono typedefs (eg. 'Seconds' for
std::chrono::seconds). These aliases are used together with templated
helper functions to replace time_t with std::chrono::seconds for most
cases, in particular for 'modified' and 'expires' values in Response.
2015-11-27 17:47:02 +02:00
Thiago Marcos P. Santos
4475f54860 [android] Remove autogenerated file from tree
developer-config.xml gets generated on build time with the token
set for the env var MAPBOX_ACCESS_TOKEN. Because the file was checked to
the git repo, it was not being regenerated and thus, crashing the
test app accusing no token set.
2015-11-27 17:32:09 +02:00
Thiago Marcos P. Santos
873eabcf28 [node] Fix build on GCC 4.9.2 2015-11-26 19:40:36 +02:00
John Firebaugh
1d33790dc0 [core] Fix image type of Map::renderStill
It's a premultiplied image. This implies that we were misusing encodePNG
in most cases, as we were passing premultiplied pixels which were then
interpreted as unmultiplied. I changed encodePNG to accept premultipled
pixels, and unpremultiply in the implementations.
2015-11-25 15:57:37 -08:00
John Firebaugh
ed5eb9edc1 [test] Add pixelmatch; use in annotation tests 2015-11-25 15:57:37 -08:00
John Firebaugh
54eff4b4c1 [core] Add image tests 2015-11-25 15:57:36 -08:00
John Firebaugh
f3d6f68106 [core] Always manually premultiply libpng output
It appears to be the only way to get the results we want in all cases.
2015-11-25 15:57:36 -08:00
John Firebaugh
0c1e378bc9 [core] Rewrite image handling
* Consolidate Image and StillImage
* Typecheck unassociated vs premultiplied images
* Rewrite default platform image decoding implementation
2015-11-25 15:57:36 -08:00
Minh Nguyễn
2de0a351a0 [core] [iOS] Completion handlers for animated methods
Added transition frame and finish functions to CameraOptions. Added Objective-C equivalents to the three main entry points to easeTo() in MGLMapView.

Fixes #1581.
2015-11-25 15:20:25 -08:00
Minh Nguyễn
e3992c41c3 [iOS] Wait for didChange notifications instead of timer 2015-11-25 14:39:32 -08:00
Minh Nguyễn
6916675e61 [iOS] Ensure consistent willChange/didChange notifications
Coalescing willChange/didChange notifications means keeping track of how many gestures are currently in progress; a boolean isn’t enough to track this state. This change refactors the gesture recognizers, making them more consistent with each other and more consistent in the case where more than one of them has fired. It also explicitly cancels transitions before all programmatic viewport-modifying methods, since mbgl only does so when animating.

Fixes #2313, fixes #2379, fixes #3062.
2015-11-25 14:39:32 -08:00
Mike Morris
dcf3eb9083 node-v2.0.1 2015-11-25 16:34:39 -05:00
Mike Morris
1762611505 [node] test and publish binaries for Node.js v5.x 2015-11-25 16:31:42 -05:00
Tobrun
0f976ef7d2 [android] #3008 - upgrade android grade plugin to 1.5.0
[android] #2386 - Add vector drawable and rippleDrawable for attribution icon

[android] #2736 - Replace bitmap assets with vector drawable
2015-11-25 21:25:32 +01:00
Tobrun
99dd6140fd Merge branch 'android-quickzoom-fix' of git://github.com/brewin/mapbox-gl-native into brewin-android-quickzoom-fix 2015-11-25 20:40:38 +01:00
Thomas Voß
3f786c7171 Fix GCC5 complaining about -Wunused-variable. 2015-11-25 14:23:13 +01:00
Braden Ewing
ad0b37fcfd Don't double-tap zoom when quickzooming on Android 2015-11-25 01:15:34 -07:00
Minh Nguyễn
146533e377 Corrected changelog
[skip ci]
2015-11-24 14:02:21 -08:00
Minh Nguyễn
062746291b Demonstrate show annotations in iosapp
ref #3110
2015-11-24 13:27:19 -08:00
Minh Nguyễn
f782f5eeb7 Attach compass gesture recognizer to compass view
Fixes #3099.
2015-11-24 12:11:10 -08:00
Mike Morris
e87834f15d [node] update package.json deps 2015-11-24 14:09:57 -05:00
Minh Nguyễn
047107113f Updated guide URL 2015-11-23 19:17:20 -08:00
John Firebaugh
6ff3ef55f8 [core] Remove unused 2015-11-23 17:28:44 -08:00
John Firebaugh
36081f6486 [core] For binary image data use uint8_t, not char 2015-11-23 17:28:44 -08:00
Justin R. Miller
a620912176 change iOS Bitrise Slack room
[skip ci]
2015-11-23 16:39:20 -08:00
Justin R. Miller
c6edcf69b3 reduce framework binary size with more stripping 2015-11-23 12:49:33 -08:00
Mike Morris
76253eb1d1 node-v2.0.0-pre.16 2015-11-23 14:13:22 -05:00
John Firebaugh
c4c3a19d85 [node] Allow GC in spite of reference loops through the request method
The following produces a reference cycle:

var map = new mbgl.Map({
    request: function () { ... }
});

map has a reference to the request function, which has a reference to
its closure, which has a reference to map.

Storing a the map options in an internal field, rather than a Persistent,
allows V8 to collect the reference cycle when none of its members have
other references.
2015-11-20 16:33:46 -08:00
Minh Nguyễn
8a0bce7808 Discourage code usage of styleURL__ property
A hack atop the hack added in #2632. Pre-declare `styleURL__` with an attribute that prevents it from appearing in code completion suggestions, while leaving it available to Interface Builder, which is unable to parse attributes.
2015-11-20 11:31:46 -08:00
Minh Nguyễn
b3dbdb389f [iOS] Set application root as asset root
As of #2746, we no longer bundle any styles with the SDK, so the asset: URL scheme is unused. Instead, point asset: to the application root for developer convenience and consistency with the Android and default asset roots. Also fixed an issue that prevented relative URLs from being treated as asset: URLs.

Fixes #1208, fixes #3050.
2015-11-20 10:44:12 -08:00
Tobrun
566b108248 [android] - #2658 improve window background PopupWindowView 2015-11-20 15:32:24 +01:00
Konstantin Käfer
b5f7cafab4 [core] more robust max-age parsing 2015-11-20 14:39:44 +01:00
Minh Nguyễn
94e2d8a02c [iOS] Added missing documentation comment 2015-11-20 01:02:21 -08:00
John Firebaugh
d08861daf4 [core] Force style-sourced annotations to be visible 2015-11-19 19:50:29 -08:00
John Firebaugh
afa04de152 [core] Followup fix to #3037
The previous fix resulted in annotations sometimes never being added.
This would happen if, during the execution of MapContext::update where
Update::Annotations was set, the style itself was loaded but some of
its subresources (sprite or sources) were not.

#3082 is a follow up issue to make MapContext::update less error-prone.
2015-11-19 18:01:42 -08:00
Minh Nguyễn
dc5a55c670 Fixed Linux builds; code style 2015-11-19 12:35:28 -08:00
Minh Nguyễn
a983dc8259 Ported replaceTokens() tests from GL JS 2015-11-18 19:06:33 -08:00
Justin R. Miller
f2a28f095b refs #2380: plop Settings.bundle inside of framework distribution 2015-11-18 18:41:14 -08:00
Justin R. Miller
a0533d8244 refs #2922: update display link in all common modes (inc. scrolling) 2015-11-18 18:27:46 -08:00
John Firebaugh
46a6b03582 [node] Fix race condition in tests
The message callback races with the rest of this test. We already have
tests for errors being emitted from mbgl, so just remove it.
2015-11-18 16:53:11 -08:00
John Firebaugh
f2772309fe Rewrite CustomSpriteImages test
Previous test was invalid; Map::setSprite is only for annotations.
2015-11-18 16:29:18 -08:00
John Firebaugh
db1c4f2cc2 [core] Avoid calling AnnotationManager::updateStyle until the style is loaded
Fixes #3037
2015-11-18 16:05:13 -08:00