mapbox

Setting Carmen Feature address to my Address Object (Mapbox Android)

纵饮孤独 提交于 2021-01-07 03:23:40
问题 Basically I need to set this string address returned from CarmenFeature to my Address Object. The below code basically returns the string address using the placeName method. private void reverseGeocode(final Point point) { try { MapboxGeocoding client = MapboxGeocoding.builder() .accessToken(getString(R.string.access_token)) .query(Point.fromLngLat(point.longitude(), point.latitude())) .geocodingTypes(GeocodingCriteria.TYPE_ADDRESS) .build(); client.enqueueCall(new Callback<GeocodingResponse>

Setting Carmen Feature address to my Address Object (Mapbox Android)

▼魔方 西西 提交于 2021-01-07 03:22:59
问题 Basically I need to set this string address returned from CarmenFeature to my Address Object. The below code basically returns the string address using the placeName method. private void reverseGeocode(final Point point) { try { MapboxGeocoding client = MapboxGeocoding.builder() .accessToken(getString(R.string.access_token)) .query(Point.fromLngLat(point.longitude(), point.latitude())) .geocodingTypes(GeocodingCriteria.TYPE_ADDRESS) .build(); client.enqueueCall(new Callback<GeocodingResponse>

Scale marker size relative to the zoom level in Mapbox GL JS

↘锁芯ラ 提交于 2020-12-29 04:45:47
问题 I want to decrease the size of the markers when the zoom level of the map is increased. How can I achieve this? 回答1: You can use the interpolate expression with the zoom expression, along these lines: "icon-size": ['interpolate', ['linear'], ['zoom'], 10, 1, 15, 0.5] Documentation here: https://docs.mapbox.com/mapbox-gl-js/style-spec/expressions/#ramps-scales-curves 来源: https://stackoverflow.com/questions/61032600/scale-marker-size-relative-to-the-zoom-level-in-mapbox-gl-js

mapbox-gl中的web墨卡托转换

扶醉桌前 提交于 2020-12-28 19:33:28
引言 mapbox-gl的api开放了web墨卡托和经纬度的转换,直接使用mapbox-gl的api能够进行web墨卡托的坐标操作。 api说明网址: https://docs.mapbox.com/mapbox-gl-js/api/geography/#mercatorcoordinate web墨卡托的坐标说明: http://epsg.io/3857 api使用说明 将经纬度坐标转换成web墨卡托坐标,包含了高度的信息: let modelAsMercatorCoordinate = mapboxgl.MercatorCoordinate.fromLngLat( [117,36], modelAltitude); 其中的web墨卡托坐标获取: let xcoord=modelAsMercatorCoordinate.x, let ycoord=modelAsMercatorCoordinate.y, let zcoord=modelAsMercatorCoordinate.z, 上述坐标的结果,并不是[ -20026376.39 -20048966.10 20026376.39 20048966.10 ]范围内的坐标信息,需要根据api再进行一次转换,使用下列的方法,转换成米制的单位: let meterunit = modelAsMercatorCoordinate

Mapbox android SDK error - java.lang.ClassNotFoundException: Didn't find class “com.mapbox.android.telemetry.MapboxTelemetry”

假如想象 提交于 2020-12-26 09:08:15
问题 I have added mapbox sdk to existing android project via direct download (https://docs.mapbox.com/android/maps/overview/#add-the-dependency) I have added dependancy to build.gradle file like below. implementation project(':mapbox-android-sdk-9.3.0') After that i have changed my source code using it and it was complied successfully and , but in runtime i got below exception. Caused by: java.lang.ClassNotFoundException: Didn't find class "com.mapbox.android.telemetry.MapboxTelemetry" on path:

Mapbox android SDK error - java.lang.ClassNotFoundException: Didn't find class “com.mapbox.android.telemetry.MapboxTelemetry”

本秂侑毒 提交于 2020-12-26 09:07:01
问题 I have added mapbox sdk to existing android project via direct download (https://docs.mapbox.com/android/maps/overview/#add-the-dependency) I have added dependancy to build.gradle file like below. implementation project(':mapbox-android-sdk-9.3.0') After that i have changed my source code using it and it was complied successfully and , but in runtime i got below exception. Caused by: java.lang.ClassNotFoundException: Didn't find class "com.mapbox.android.telemetry.MapboxTelemetry" on path:

Mapbox android SDK error - java.lang.ClassNotFoundException: Didn't find class “com.mapbox.android.telemetry.MapboxTelemetry”

此生再无相见时 提交于 2020-12-26 09:06:35
问题 I have added mapbox sdk to existing android project via direct download (https://docs.mapbox.com/android/maps/overview/#add-the-dependency) I have added dependancy to build.gradle file like below. implementation project(':mapbox-android-sdk-9.3.0') After that i have changed my source code using it and it was complied successfully and , but in runtime i got below exception. Caused by: java.lang.ClassNotFoundException: Didn't find class "com.mapbox.android.telemetry.MapboxTelemetry" on path:

Flutter : Mapbox symbol on click open google maps

孤人 提交于 2020-12-15 03:00:13
问题 I have project using MapBox to show address location in map. I have latitude and longitude ( -6.192461941069894 , 106.97593586545025 ) like this , i want if i click right on marker, i want open Google Maps Apps based on latitude and longitude i have. But the problem , i can't open google maps after click symbol because latitude&longitude after click maps not same with latitude&longitude i have. Logic Source Code onMapClick: (point, latlng) { if (latlng.latitude == latitude && latlng.longitude

Flutter : Mapbox symbol on click open google maps

大兔子大兔子 提交于 2020-12-15 02:59:32
问题 I have project using MapBox to show address location in map. I have latitude and longitude ( -6.192461941069894 , 106.97593586545025 ) like this , i want if i click right on marker, i want open Google Maps Apps based on latitude and longitude i have. But the problem , i can't open google maps after click symbol because latitude&longitude after click maps not same with latitude&longitude i have. Logic Source Code onMapClick: (point, latlng) { if (latlng.latitude == latitude && latlng.longitude

Flutter : Mapbox symbol on click open google maps

杀马特。学长 韩版系。学妹 提交于 2020-12-15 02:59:30
问题 I have project using MapBox to show address location in map. I have latitude and longitude ( -6.192461941069894 , 106.97593586545025 ) like this , i want if i click right on marker, i want open Google Maps Apps based on latitude and longitude i have. But the problem , i can't open google maps after click symbol because latitude&longitude after click maps not same with latitude&longitude i have. Logic Source Code onMapClick: (point, latlng) { if (latlng.latitude == latitude && latlng.longitude