mapbox

MapBox iOS SDK within your own Xcode

蹲街弑〆低调 提交于 2019-12-25 07:18:19
问题 I downloaded MapBox example from github using the following git clone --recursive https://github.com/mapbox/mapbox-ios-example.git Which downloaded it including all dependencies. Now I'm trying to create a separate project and include MapBox DSK as it was in that example. I tried creating workspace then creating a single view project then add new file and select .xcodepro for the MapBox DSK but didn't work when I tried importing MapBox.h file. I never tried importing 3rd parties API before

How do I change the marker of Mapbox with directionsjs? It shows A and B markers [duplicate]

放肆的年华 提交于 2019-12-25 07:13:13
问题 This question already has answers here : Mapbox Driving Direction with Custom Marker (2 answers) Closed 3 years ago . How do I change the Mapbox marker (when using directionjs)? It shows A and B markers. I tried editing the marker but lose directions. var x= L.marker([51.508245, -0.087700], { icon: L.mapbox.marker.icon({ 'marker-size': 'large', 'marker-icon': 'monument', 'marker-color': '#fa0' }) }).addTo(map); // Set the origin and destination for the direction and call the routing service

Render a FeatureCollection from a GeoJSON file with multiple types in Mapbox-GL-JS

梦想的初衷 提交于 2019-12-25 06:58:24
问题 We are currently loading layers into mapbox GL from geojson data. If our geojson has a feature collection that contains points and polygons, there does not seem to be a way to have mapbox gl show both because of how you need to set the type of layer. Is there a way to have multiple types for a layer? It seems as if it can't handle multiple. map.addLayer({ "id": "route", "type": "line", //THIS SEEMS TO BE THE LIMITATION "source": "route", }); 回答1: You are correct, GL JS cannot handle multiple

Adjust RMMarker to user's current location automatically in oflline maps using MBTiles

这一生的挚爱 提交于 2019-12-25 05:12:25
问题 Can i adjust RMMarker to user's current location using MBTiles without tapping on map? Is there any method or API to achieve this in mapbox without WiFi/3G? I just wanted to move RMMarker along with user just like in google maps. 回答1: You will probably want to use -[RMMapView setUserTrackingMode:] , which uses Core Location and can operate with just the GPS even when offline (though with less accuracy). 回答2: Use setLocation:location method we get Latitude longitude while moving using Cellular

Scatter mapbox in shiny R will not render

假如想象 提交于 2019-12-25 03:45:17
问题 I have been working on this shiny app for a while and it all seems to work till i get to the end. It is supposed to output a interactive scatter plot. Well I can get the plot to the point that it has a legend and the hover text pops up on a white blank background, but i am missing the visual points and the map. Outside of shiny i can make the plotly work just fine and i get my mapbox map and scatter plots. I have tired quite a few things but am still failing to render the points and the map.

Mapbox cluster's data-driven styling

巧了我就是萌 提交于 2019-12-25 03:14:34
问题 When visualizing clusters with Mapbox's GL JS, how can I show clusters as circles which size/colours are proportional to the average of clustered points' property 'Rev', instead of proportional to the point-count property, as my code is doing it now. Is there any way to do this simply, or should I look into other methods? Here's my GeoJson file, followed by the HTML/JS code: { "type": "FeatureCollection", "features": [{ "type": "Feature", "geometry": { "type": "Point", "coordinates": [-53

How to remove example(label) for map backgroud mapbox in android?

霸气de小男生 提交于 2019-12-25 02:14:14
问题 I made sample project for map MapBox its done but when i am terrain map type set its show perfectly but issue is example(label) shown. How can i remove for this issue? Help me thanks in advance. I show issue for this image. 回答1: This library is open source. Go in and remove the label by editing the source code. There is not a public API for this. 来源: https://stackoverflow.com/questions/22608128/how-to-remove-examplelabel-for-map-backgroud-mapbox-in-android

Turf.buffer and a draggable marker

删除回忆录丶 提交于 2019-12-25 02:06:37
问题 So far I have created a marker, transfered it to geoJSON, and created a buffer around it with Turf.buffer. How can I get this buffer to "stick" to the marker as I drag it around the map? <script> L.mapbox.accessToken = 'fg.eyJ1IjoisdflksdaklsjZWwiLCJhIjoiRHNwX0ZWNCJ9.Ov2O5sslkdqV93_R0lq3Q'; var map = L.mapbox.map('map', 'example.kf6j9ec4') .setView([38.633, -90.319],12); var marker = L.marker(new L.LatLng(38.633, -90.319), { icon: L.mapbox.marker.icon({ 'marker-color': '1B05E3', "marker

Product expression causes features to not render

▼魔方 西西 提交于 2019-12-24 21:52:14
问题 I have a map with linear features that have an offset in the style: "line-offset": { "stops": [ [ 12, 0 ], [ 16, 2 ] ] }, If I try to substitute the value 2 with a product expression, the features fail to render. "line-offset": { "stops": [ [ 12, 0 ], [ 16, ["*", 2, 1] ] ] }, There is no error in the javascript console. I am using the latest version, v0.49.0 . Am I using the expression correctly? 回答1: To use expressions, you would need to change the syntax: "line-offset": [ "interpolate", [

Mapbox Ar does not work in all directions

故事扮演 提交于 2019-12-24 21:23:57
问题 I have built an augmented reality application in Unity through Mapbox. Also, I geolocated some points through Mapbox. Points seems in AR in the application. But, I realized that when application is initialized the direction of the phone is important. It just shows the truth when phone follows the north. I have some searched on internet, but I couldn't find any exact information. I prefer to work application independently from phone direction. Can somebody explain that or are there any