summaryrefslogtreecommitdiff
path: root/platform/macos/src
Commit message (Collapse)AuthorAgeFilesLines
* [core] move gl::Context to Backend and refactor ViewKonstantin Käfer2016-10-251-28/+29
|
* [core] separate Backend from View for headless renderingKonstantin Käfer2016-10-251-11/+18
|
* [core] [node] pass thread pool impl to Map constructorMike Morris2016-10-201-1/+8
| | | | | | | Updates mbgl::Map constructor usage everywhere Adds NodeThreadPool implementation using AsyncQueue to call Nan::AsyncQueueWorker from main thread
* [ios, macos] Change runtime styling category method prefix to mgl_Jason Wray2016-10-173-9/+9
| | | | This makes runtime styling category method naming consistent with the rest of the SDK.
* [ios, macos] Expand changes to entire APIMinh Nguyễn2016-10-171-7/+1
|
* [ios, macos] Deprecate -[MGLMapViewDelegate ↵Jason Wray2016-10-142-11/+17
| | | | mapView:alphaForShapeAnnotation:] (#6706)
* [macos] Fixed compilation error (#6690)Minh Nguyễn2016-10-121-5/+4
| | | Followup to last-minute refactoring in #6637.
* [ios, macos] possibility to set custom images to style (#6637)Roman Blum2016-10-123-159/+179
| | | | | | | | | | | | | | | | | | | | | | | | | | * [ios, macos] possibility to set custom images to style * [ios, macos] setImage:forName now supports MGLImage (UIImage/NSImage) * [ios, macos] update documentation for setImage:forName: and removeImageForName: * [ios, macos] rename method and fix prefix * [ios, macos] change header visibility to project * [ios, macos] update header imports * [ios, macos] delete unnecessary whitespaces * [ios, macos] remove unnecessary nil checks * [ios, macos] delete unnecessary whitespaces * [ios, macos] update documentation * [ios, macos] make mgl_spriteImage a parameter-less instance method * [ios, macos] add asserts
* [ios, macos] Add -mapView:didFinishLoadingStyle: delegate methodJason Wray2016-10-112-0/+25
|
* [ios, macos] Renamed files to match renamed classesMinh Nguyễn2016-10-061-1/+2
|
* [macos,ios] initialize util::RunLoop in SDK rather than by defaultKonstantin Käfer2016-10-061-0/+8
|
* [ios, macos] fixes #6160: allow updating multipoint coordinates (#6565)Justin R. Miller2016-10-041-0/+23
|
* [core] move OpenGL extension loading to their own headersKonstantin Käfer2016-09-291-0/+1
|
* [core] standardize on uint16_t for texture sizesKonstantin Käfer2016-09-271-8/+8
|
* [core] #3980 - Switching Core GL instances of map to unordered_mapBrad Leege2016-09-141-2/+2
|
* Document -mapViewDidFailLoadingMap:withError: (#6145)Minh Nguyễn2016-08-242-1/+17
| | | | | | * [macos] Implement -mapViewDidFailLoadingMap:withError: * [ios] Documented -mapViewDidFailLoadingMap:withError:
* [macos] Avoid negative content insets (#6102)Minh Nguyễn2016-08-231-2/+2
| | | Fixed an issue in which a map view that doesn’t occupy the entire window would consider its center point to be the window’s center point rather than the view’s.
* [ios, macos] Move debug mask options to shared header (#6094)Jason Wray2016-08-231-33/+0
| | | | | | | | | | | | * [ios, macos] Move debug mask options to shared header * Limit buffer debug modes to macOS ... because these modes use OpenGL features that aren't supported by iOS. * Try a different tact: exclude "iPhone" ... which is actually all iOS-like devices.
* [core] add ability show visualize the depth buffer to the GLFW and macOS appKonstantin Käfer2016-08-192-0/+11
|
* [ios, macos] Make Xcode 7.3 the minimum required versionJason Wray2016-08-184-6/+1
| | | | | | | | | - Removes nullability shims for Xcode 6. - Removes MGLTypes.h from files where it was only being used for nullability support. - Accepts that `NS_SWIFT_NAME` is not fully supported by Xcode 7.2 and lower. - Adds documentation about Xcode 7.3 requirement.
* [ios, macos] reuse utility functionFredrik Karlsson2016-08-182-8/+1
|
* [ios, macos] fixes #5974 Move style classes API to MGLStyleFredrik Karlsson2016-08-181-0/+3
|
* [macos] fixes #5956 remove dead codeFredrik Karlsson2016-08-181-4/+0
|
* [ios, macos] Renamed Objective-C++ headers to .hMinh Nguyễn2016-08-166-6/+6
| | | | | | Also removed a redundant reference to MGLStyle_Private.h in ios.xcodeproj. Fixes #5952.
* [ios, macos] Accept absolute file paths as style URLs (#6026)Minh Nguyễn2016-08-161-5/+2
| | | | | It turns out that mbgl::AssetFileSource supports absolute file URLs in addition to relative file URLs. So replace the file: scheme with asset: while percent-escaping as necessary. Also added amsterdam.geojson to macos.xcodeproj for consistency with ios.xcodeproj.
* [core, android, ios, macos] Replaced getPointAnnotationsInBounds() w/ ↵Minh Nguyễn2016-08-121-2/+5
| | | | | | | queryPointAnnotations() (#5165) queryPointAnnotations() accepts a screen rectangle instead of a geographic bounding box, so marker hit testing works at the edges of a rotated, tilted map view. Fixes #5151.
* Runtime styling API for iOS/macOS (#5727)Fredrik Karlsson2016-08-118-15/+98
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * [ios] wip runtime styling * [ios, macos] Outlined header templates * [ios, macos] cleanup and use appropiate data types * [ios, macos] removed refs to mbgl and added convenient color methods on UIColor and NSColor * [ios, macos] updated header template, included doc string * [ios, macos] outlined template for layer implementation files * [ios, macos] moved script to platform/darwin and updated comments * [ios, macos] Cleaned up the implementation template * [ios, macos] removed unused function and added support for more datatypes * [ios, macos] overhauling the type protocols * [ios, macos] removed unnecessary style classes * [ios, macos] added support for more types * [ios, macos] fixed string and number prop values * [ios, macos] enum getters * [ios, macos] added removeLayer() and removed unused layer ref * [ios, macos] fixed remaining layer types and converted style layer into a protocol * [ios, macos] fixed addLayer() and added example for line layer * [ios] GeoJSON source now works * [ios] fixed raster layer and raster source * [ios] fixed attr prop number and outlined prop function * [ios] wip functions * [ios] bool and float function fix * [ios] cleanup * [macos] fixed support for macos * [ios] fixed string functions * [ios] extended array functions * [ios] added tests and fixed a few bugs * [ios] less verbose functions and improved tests * [ios, macos] Removed unnecessary use of default arguments Default arguments aren’t supported in Node v4, and they aren’t needed here anyways, because we’re only testing for truthiness. * [ios, macos] Enum setters Rely on a macro instead of category methods to specialize the setter implementation for enum attributes, since generic types are disallowed in Objective-C method signatures and mbgl::style::PropertyType must be type-qualified. * [ios, macos] Got macOS closer to parity w/ iOS Added various classes and test classes to the macOS workspace. Also fixed lots of compiler errors and updated macosapp runtime styling example to use the new dictionary syntax for function stops. Updated all conversions from Objective-C stops to C++ stops to enumerate over the dictionary. Fixed compiler errors in enum setter implementations. Also corrected path to script in generated file comments. * [ios, macos] Added EJS templates to project * [ios, macos] Code formatting Made code format more consistent. * [ios, macos] Spelled out ID Cocoa convention is to always spell out “ID” as “identifier”, in part to avoid confusion with the id keyword. Also, URL is capitalized in most contexts, including property names. * [ios, macos] Grouped related headers together * [ios, macos] Cleaned up layer transformation Also added support for converting background layers into Objective-C. * [ios, macos] Cleaned up tests Also made the tests work on macOS by introducing a new window to host the map. * [ios, macos] Replaced TODOs with #warnings * [ios] convert array based property values * [ios, macos] color function/undefined getter * [ios, macos] fixed function/undefined getters for bool and float properties * [ios, macos] more function/undefined property getters * [ios, macos] more type conversion and cleanup * [ios, macos] disable macos runtime styling tests for now * [ios, macos] cleaned up style code script * [ios, macos] more type conversion * [ios] added a base layer to handle visibility min/max zoom * [macos] fixed base layer * [ios, macos] use accessor methods * [ios, macos] cleanup * [ios, macos] add geojson to ios and macos * [macos] rebase fix * [ios, macos] fixed enum getters and added tests for enums * [ios, macos] added an update method to base layer * [ios, macos] added some documentation * [ios, macos] docs * [ios, macos] removed refs to filters for now * [ios, macos] various tail work * [ios, macos] missing import and incorrect type
* [macos] Add `showAnnotations:` methods (#5749)Jason Wray2016-07-212-0/+61
| | | | | | | | SDK - Ported `showAnnotations:animated:` and `showAnnotations:edgePadding:animated:` from the iOS SDK. Demo App - Added "Show All Annotations" debug menu item with ⇧⌘A shortcut key. - Disabled "Add Animated Annotation" debug menu item when the annotation already shown.
* [ios,macos,node] Updated changelog about debug options no-ops in release modeBruno de Oliveira Abinader2016-07-201-1/+4
|
* [ios,macos] Partially revert 06af75Bruno de Oliveira Abinader2016-07-142-5/+5
| | | | | Use static_cast<float> to convert from CGfloat when creating PropertyValue<float> and avoid breaking backwards-compatibility.
* [ios,macos] Update {Line,Fill}Annotation properties setterBruno de Oliveira Abinader2016-07-132-5/+5
|
* Merge branch 'release-ios-v3.3.0' into masterJesse Bounds2016-07-071-14/+40
|\
| * [ios, macos] Rewrote MGLMapViewDelegate, MGLAnnotationView docsMinh Nguyễn2016-07-021-14/+40
| | | | | | | | | | | | | | | | Reorganized MGLMapViewDelegate and MGLAnnotationView symbols into sections by task. Wrapped documentation comments at column 80 for readability. Added documentation for -mapViewWillStartRenderingFrame: and -mapViewDidFinishRenderingFrame:fullyRendered:, which are supported and behave as expected (except for the part that has been left undocumented). Synchronized iOS and macOS documentation for MGLMapViewDelegate. Added cross-references between annotation image and annotation view delegate methods and among the various callout delegate methods. Added missing MGLAnnotationViewDragState documentation and also added the symbol to jazzy’s table of contents. Rewrote MGLAnnotationView documentation.
| * [ios, macos] Renamed overdraw to overdraw visualization (#5416)Minh Nguyễn2016-06-232-5/+6
| | | | | | | | | | | | A verb doesn’t make sense in this enum value. Instead, use a descriptive word for this effect and describe it in detail in the documentation comment. Cherry-picked from 415c18294693166472785459f9d5bc8be31b7033.
| * [macos] Renamed OS X SDK to macOS SDKMinh Nguyễn2016-06-1816-0/+4128
| | | | | | Also renamed as many references to OS X as possible to macOS in documentation. Cherry-picked from b9702ef41a4cfdd0ab3107cfe5cec16ba3a4c230.
* [macos] Use gesture recognizer for context menuMinh Nguyễn2016-07-071-0/+12
| | | | | | NSView’s built-in context menu handling preempts non-right-click gesture recognizers, so preempt it with a right-click gesture recognizer that does essentially the same thing. With this change, two-finger double-tapping on a trackpad also zooms out, consistent with MapKit. Fixes #5078.
* [ios, macos, node] “Mapbox GL Style Specification” → “Mapbox Style ↵Minh Nguyễn2016-07-041-1/+1
| | | | Specification” (#5553)
* [ios, macos] Renamed overdraw to overdraw visualization (#5416)Minh Nguyễn2016-06-222-4/+6
| | | A verb doesn’t make sense in this enum value. Instead, use a descriptive word for this effect and describe it in detail in the documentation comment.
* [core] s/Wireframe/Overdraw/gBruno de Oliveira Abinader2016-06-202-7/+6
|
* [core] UnitBezier ctor is now constexprBruno de Oliveira Abinader2016-06-201-2/+2
|
* Color class (#5361)Young Hahn2016-06-151-2/+2
| | | | | | * Color class * Switch to list initialization
* [macos] Renamed OS X SDK to macOS SDKMinh Nguyễn2016-06-1416-0/+4128
Also renamed as many references to OS X as possible to macOS in documentation.