You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MapLibre Native is a free and open-source library for publishing maps in your apps and desktop applications on various platforms. Fast displaying of maps is possible thanks to GPU-accelerated vector tile rendering.
5
+
MapMetrics Native is a free and open-source library for publishing maps in your apps and desktop applications on various platforms. Fast displaying of maps is possible thanks to GPU-accelerated vector tile rendering.
8
6
9
7
This project originated as a fork of Mapbox GL Native, before their switch to a non-OSS license in December 2020. For more information, see: [`FORK.md`](./FORK.md).
10
8
11
-
<palign="center">
12
-
<imgsrc="https://user-images.githubusercontent.com/649392/211550776-8779041a-7c12-4bed-a7bd-c2ec80af2b29.png"alt="Android device with MapLibre"width="24%"> <imgsrc="https://user-images.githubusercontent.com/649392/211550762-0f42ebc9-05ab-4d89-bd59-c306453ea9af.png"alt="iOS device with MapLibre"width="25%">
13
-
</p>
14
9
15
10
## Getting Started
16
11
17
12
### Android
18
13
19
-
Add [the latest version](https://central.sonatype.com/artifact/org.maplibre.gl/android-sdk/versions) of MapLibre Native Android as a dependency to your project.
14
+
Add [the latest version](https://central.sonatype.com/artifact/org.maplibre.gl/android-sdk/versions) of MapMetrics Native Android as a dependency to your project.
@@ -37,7 +32,7 @@ Add a `MapView` to your layout XML file:
37
32
```
38
33
39
34
> [!TIP]
40
-
> There are external projects such as [Ramani Maps](https://github.com/ramani-maps/ramani-maps) and [MapLibre Compose Playground](https://github.com/Rallista/maplibre-compose-playground) available to intergrate MapLibre Native Android with Compose-based projects.
35
+
> There are external projects such as [Ramani Maps](https://github.com/ramani-maps/ramani-maps) and [MapLibre Compose Playground](https://github.com/Rallista/maplibre-compose-playground) available to intergrate MapMetrics Native Android with Compose-based projects.
// activity uses singleInstance for testing purposes
61
+
// code below provides a default navigation when using the app
62
+
NavUtils.navigateHome(this@SimpleMapActivity)
63
+
}
64
+
})
65
+
setContentView(R.layout.activity_map_simple)
66
+
mapView = findViewById(R.id.mapView)
67
+
mapView.onCreate(savedInstanceState)
68
+
mapView.getMapAsync {
69
+
val key =ApiKeyUtils.getApiKey(applicationContext)
70
+
if (key ==null|| key =="YOUR_API_KEY_GOES_HERE") {
71
+
it.setStyle(
72
+
Style.Builder().fromUri(style)
73
+
)
74
+
} else {
75
+
val styles =Style.getPredefinedStyles()
76
+
if (styles.isNotEmpty()) {
77
+
val styleUrl = styles[0].url
78
+
it.setStyle(Style.Builder().fromUri(styleUrl))
79
+
}
80
+
}
77
81
}
78
82
}
79
83
@@ -119,9 +123,9 @@ For more information, refer to the [Android API Documentation](https://maplibre.
119
123
120
124
## iOS
121
125
122
-
You can find MapLibre Native iOS on [Cocoapods](https://cocoapods.org/) and on the [Swift Package Index](https://swiftpackageindex.com/maplibre/maplibre-gl-native-distribution). You can also MapLibre Native iOS [as a dependency to Xcode directly](https://maplibre.org/maplibre-native/ios/latest/documentation/maplibre-native-for-ios/gettingstarted/#Add-MapLibre-Native-as-a-dependency).
126
+
You can find MapMetrics Native iOS on [Cocoapods](https://cocoapods.org/) and on the [Pods](https://cocoapods.org/pods/MapMetrics).
123
127
124
-
MapLibre Native iOS uses UIKit. To intergrate it with an UIKit project, you can use
128
+
MapMetrics Native iOS uses UIKit. To intergrate it with an UIKit project, you can use
> You can also use [MapLibreSwiftUI](https://github.com/maplibre/swiftui-dsl), a wrapper around MapLibre Native iOS that offers a declarative API like SwiftUI.
160
-
161
162
The [iOS Documentation](https://maplibre.org/maplibre-native/ios/latest/documentation/maplibre/) contains many examples and the entire API of the library.
162
163
163
-
## Node.js
164
-
165
-
There is an [npm package](https://www.npmjs.com/package/@maplibre/maplibre-gl-native) for using MapLibre Native in a Node.js project. The source code of this project [can be found in this repository](https://github.com/maplibre/maplibre-native/tree/main/platform/node).
166
-
167
-
## Qt
168
-
169
-
Please check out the [`maplibre/maplibre-native-qt` repository](https://github.com/maplibre/maplibre-native-qt) to learn how to intergrate MapLibre Native with a Qt project.
170
-
171
-
## Other Platforms
172
-
173
-
MapLibre Native can also be built on [Linux](platform/linux/README.md), [Windows](platform/windows/README.md) and [macOS](platform/macos/README.md).
174
-
175
164
## Contributing
176
165
177
166
> [!NOTE]
178
-
> This section is only relevant for people who want to contribute to MapLibre Native.
167
+
> This section is only relevant for people who want to contribute to MapMetrics Native.
179
168
180
-
MapLibre Native has at its core a C++ library. This is where the bulk of development is currently happening.
169
+
MapMetrics Native has at its core a C++ library. This is where the bulk of development is currently happening.
181
170
182
171
To get started with the code base, you need to clone the the repository including all its submodules.
183
172
184
173
All contributors use pull requests from a private fork. [Fork the project](https://github.com/maplibre/maplibre-native/fork). Then run:
The go-to reference is the [MapLibre Native Developer Documentation](https://maplibre.org/maplibre-native/docs/book/).
180
+
The go-to reference is the [MapMetrics Native Developer Documentation](https://maplibre.org/maplibre-native/docs/book/).
192
181
193
182
> [!TIP]
194
183
> Check out issues labelled as a [good first issue](https://github.com/maplibre/maplibre-native/issues?q=is%3Aissue+is%3Aopen+label%3A%22good+first+issue%22).
@@ -203,7 +192,7 @@ The go-to reference is the [MapLibre Native Developer Documentation](https://map
203
192
204
193
Open `platform/android` with Android Studio.
205
194
206
-
More information: [MapLibre Android Developer Guide](https://maplibre.org/maplibre-native/docs/book/platforms/android/index.html).
195
+
More information: [MapMetrics Android Developer Guide](https://maplibre.org/maplibre-native/docs/book/android/index.html).
More information: [MapLibre iOS Developer Guide](https://maplibre.org/maplibre-native/docs/book/platforms/ios/index.html).
208
+
More information: [MapMetrics iOS Developer Guide](https://maplibre.org/maplibre-native/docs/book/ios/index.html).
220
209
221
210
## Other Platforms
222
211
223
212
See [`/platform`](/platform) and navigate to the platform you are interested in for more information.
224
213
225
-
## Getting Involved
226
-
227
-
Join the `#maplibre-native` Slack channel at OSMUS. Get an invite at https://slack.openstreetmap.us/
228
-
229
-
### Bounties 💰
230
-
231
-
Thanks to our sponsors, we are able to award bounties to developers making contributions toward certain [bounty directions](https://github.com/maplibre/maplibre/issues?q=is%3Aissue+is%3Aopen+label%3A%22bounty+direction%22). To get started doing bounties, refer to the [step-by-step bounties guide](https://maplibre.org/roadmap/step-by-step-bounties-guide/).
232
-
233
-
We thank everyone who supported us financially in the past and special thanks to the people and organizations who support us with recurring donations!
234
-
235
-
Read more about the MapLibre Sponsorship Program at [https://maplibre.org/sponsors/](https://maplibre.org/sponsors/).
0 commit comments