mapbox

Mapbox vector tile MVT is missing data

跟風遠走 提交于 2019-12-11 16:49:02
问题 I'm trying to make my own renderer for Mapbox MVT vector tiles, but I have hit the obstacle and couldn't find the answer. My problem is that MVT tile downloaded form Mapbox server contains all roads, but only a few bulding numbers (should be much more for given area) and no land types (grean area on map) and buildings. Anyone had same problem or know the answer? link I use to download tile is: https://api.mapbox.com/v4/mapbox.mapbox-terrain-v2,mapbox.mapbox-streets-v7/18/143415/87627.mvt

How to get destination point?

醉酒当歌 提交于 2019-12-11 16:12:38
问题 I am trying to navigation application on Mapbox with Unity. I want to get destination point from the user. I mean that user will write to where it wants to go and i will plot the road on the map according to destination point. I tried reload map scrip, but it is just geolocate the map. namespace Mapbox.Examples { using Mapbox.Geocoding; using UnityEngine.UI; using Mapbox.Unity.Map; using UnityEngine; using System; using System.Collections; public class ReloadMap : MonoBehaviour { Camera

How 3D map visualizations on iOS using Mapbox

偶尔善良 提交于 2019-12-11 15:45:58
问题 I am trying to achieve to draw this in mapbox, came across https://docs.mapbox.com/ios/maps/examples/extrusions/ but nothing helpfull as I have the latitude and longitude, I want to draw the shape like the yellow shown below .but not sure where to start they are doing using three.js as mentioned here -----Update--- tried the below just able to render GEOJson in flat view, not the height. import UIKit import Mapbox class SignUpAccount: UIViewController, MGLMapViewDelegate { var mapView:

Switching on custom property to change image of MGLSymbolStyleLayer

*爱你&永不变心* 提交于 2019-12-11 15:29:41
问题 I have such enum which I'd like to assign to the pins, so that depending on this enum value, the pin image is different: typedef NS_ENUM(NSInteger, MyType) { MyTypeUnknown = 0, MyTypeOne, MyTypeTwo, }; I've got my layer for non-clustered pins: MGLSymbolStyleLayer *markerLayer = [[MGLSymbolStyleLayer alloc] initWithIdentifier:@"markerLayerId" source:source]; markerLayer.predicate = [NSPredicate predicateWithFormat:@"cluster != YES"]; [style addLayer: markerLayer]; and I know I want to add

In a compiled node module, why do I see (private) methods omitted from the compiled version that exist in the source?

拈花ヽ惹草 提交于 2019-12-11 14:40:23
问题 I'm using Mapbox GL JS, and I've found a private method that might be useful in solving a problem. It's _requestRenderFrame in map.js, and looks like this: /** * Request that the given callback be executed during the next render * frame. Schedule a render frame if one is not already scheduled. * @returns An id that can be used to cancel the callback * @private */ _requestRenderFrame(callback: () => void): TaskID { this._update(); return this._renderTaskQueue.add(callback); } If I try to

Using an array of longitudes and latitudes to plot on mapbox

北战南征 提交于 2019-12-11 14:16:13
问题 i am trying to implement Mapbox api into my web application however i have reached a snag. My objective is to grab the longitudes and latitudes from my array and insert them into the coordinates. I have tried using a loop that loops through but it does not seem to work. If anyone has any solution it be greatly appreciated! note i took out my access token <!DOCTYPE html> <html> <head> <meta charset='utf-8' /> <title>Draw GeoJSON points</title> <meta name='viewport' content='initial-scale=1

MapBox User Location Icon (Android)

旧街凉风 提交于 2019-12-11 14:15:10
问题 I use MapBox for my Android App, and I need to modify the standard blue "dot" that is used to indicate the current user location and orientation. I found this thread indicating that past MapBox Android APIs offered methods to modify the User Location Icon: https://github.com/mapbox/mapbox-android-sdk-legacy/issues/717 The thread mentions these methods: mapView.getUserLocationOverlay().setDirectionArrowBitmap(); mapView.getUserLocationOverlay().setPersonBitmap(); The newest MapBox Android SDK

MapBox Android application crashes after update to SDK 4.1.0 when loading credentials

旧巷老猫 提交于 2019-12-11 13:45:53
问题 After the update to Android DropBox SDK 4.1.0 my application most of the time crashes with: MapboxEventManager: Error Trying to load Staging Credentials: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.os.Bundle.getString(java.lang.String)' on a null object reference and no stack trace. MapBox example on https://github.com/mapbox/mapbox-android-demo crashes with the same error (both compiled locally and downloaded from Google Play). Is this known

Get capture date from mapbox satellite imagery

淺唱寂寞╮ 提交于 2019-12-11 12:13:42
问题 I am following the mapbox tutorial here. I have the static map displaying nicely inside of my web page. I would like to include a capture date on the image provided by map box. I am using the mapbox.satellite mapId . So, my url looks like this: https://api.mapbox.com/v4/mapbox.satellite/${lng},${lat},19/1000x700.jpg90?access_token=${accessToken} My access token is provided by Digital Globe in a trial account. Does anyone know if the capture date is available, and if so, how to retrieve it? 来源

How can I query the feature that's closest to the geocode result in Mapbox?

纵然是瞬间 提交于 2019-12-11 12:08:49
问题 I'm trying to create a Mapbox map with thousands of points. I want the user to be able to type an address and a div to be filled with information from the closest point to that address. I'm using the mapbox-gl-geocoder control What would be perfect is if I could use something like: geocoder.on('result', function(e) { var features = map.queryRenderedFeatures(e.result.center) }); But queryRenderedFeatures doesn't accept latlong coordinates, it requires viewport coordinates. The next thing I