mapbox

cesium添加mapbox自定义风格底图

ε祈祈猫儿з 提交于 2020-01-06 19:46:16
前段时间一直想把mapbox的底图添加到cesium中,一直没找到方法。刚刚在cesium的api 中找到了相关的接口,发现现在各种应用开发越来越简便了;里面相关参数写的很详细,如下: 以下是代码: /* * @Author: dzj * @Date: 2020-01-06 18:37:18 * @LastEditTime : 2020-01-06 18:38:40 * @LastEditors : Please set LastEditors * @Description: In User Settings Edit// * @FilePath: \undefinedg:\学习文档汇总\cesium\cesiumAPI.js */ // 添加mapbox自定义地图实例 var layer=new Cesium.MapboxStyleImageryProvider({ url:'https://api.mapbox.com/styles/v1', username:'dengzengjian', styleId: 'ck5290o2z121u1cle7mdtfmdk', accessToken: 'pk.eyJ1IjoiZGVuZ3plbmdqaWFuIiwiYSI6ImNqbGhnbWo1ZjFpOHEzd3V2Ynk1OG5vZHgifQ.16zy39I

iOS Mapbox annotation not opening

夙愿已清 提交于 2020-01-06 19:27:26
问题 Fairly new to iOS dev and I'm following the "first steps with the iOS MapBox SDK" tutorial for Swift (https://www.mapbox.com/help/first-steps-ios-sdk/). Things were fine with displaying the map, custom style, and adding an annotation. But then encountered an issue when trying to interact with the annotation to display its title and subtitle. The print("allow") print("tap on callout") don't seem to ever get called. Even mapView.selectAnnotation(point, animated: true) doesn't do anything (and

can't implement L.mapbox.simplestyle with geoJson

一个人想着一个人 提交于 2020-01-06 12:57:44
问题 I'm trying to implement simplestyle's options for marker size and color , but can't get them to render. In this simple test case, I'm trying to follow Mapbox's own example quite closely: var myData = [ { "type": "Feature", "geometry": { "type": "Point", "coordinates": [4.509373,51.932994] }, "properties": { "marker-size": "large", "marker-color": "#ffcc00" } } ]; var map = L.mapbox.map('map', 'examples.map-20v6611k') .setView([51.932994,4.509373], 8); L.geoJson(myData, { style: L.mapbox

can't implement L.mapbox.simplestyle with geoJson

∥☆過路亽.° 提交于 2020-01-06 12:56:39
问题 I'm trying to implement simplestyle's options for marker size and color , but can't get them to render. In this simple test case, I'm trying to follow Mapbox's own example quite closely: var myData = [ { "type": "Feature", "geometry": { "type": "Point", "coordinates": [4.509373,51.932994] }, "properties": { "marker-size": "large", "marker-color": "#ffcc00" } } ]; var map = L.mapbox.map('map', 'examples.map-20v6611k') .setView([51.932994,4.509373], 8); L.geoJson(myData, { style: L.mapbox

MapBox marker offset

元气小坏坏 提交于 2020-01-06 08:16:20
问题 I'm using the MapBox SDK for iOS and encountered a problem I can't find a good solution for. In the iOS the MKAnnotationView allows me to do the following: view.centerOffset = CGPointMake(0, -15); Is there a MapBox RMMarker equivalent for this? So basically I need to move the marker a few pixels up from its original position, taking the zoom level into account as well. (So when you zoom, the marker's bottom part keeps fixed on the same point) As you can guess, there's a little arrow at the

Mapbox Android SDK: Bring marker to front

▼魔方 西西 提交于 2020-01-05 04:31:05
问题 I have multiple markers on a map. Some of them overlap. Is it possible to bring a certain marker to the front? 回答1: Yes. Starting with Mapbox Android SDK v4.1, the selected marker will come to front. You can select a marker with mapboxMap.selectMarker(marker); . 来源: https://stackoverflow.com/questions/38153574/mapbox-android-sdk-bring-marker-to-front

Move 'Reset North' button on Android studio for mapbox

泪湿孤枕 提交于 2020-01-05 04:13:09
问题 I was wondering if there was a way to move the location of the 'Reset North' button that is generated by Mapbox. It is in the top right of the screen where my EditText (search) is, so my EditText blocks it. 回答1: You can change the placement of the compass with: mapboxMap.getUiSettings().setCompassMargins(left, top, right, bottom); 来源: https://stackoverflow.com/questions/52832100/move-reset-north-button-on-android-studio-for-mapbox

In Mapbox.js, how to smooth a polyline?

不打扰是莪最后的温柔 提交于 2020-01-04 13:26:39
问题 The code can be viewed at http://jsfiddle.net/qsr5bs6v/ Following are the lines to add a polyline L.polyline([[31.233, 121.465], [31.233499, 121.500634], [31.190172, 121.588107]], { color: '#000', smoothFactor: 10.0 }).addTo(map) As can be seen, there is an angle in the joint point of every two lines belonging to the polyline, like this, which is not so attractive: I was wondering whether there is an easy way to make the angle into a rounded curve in Mapbox.. (I saw this post about smoothing

Leaflet GeoJSON points *behind* polygon

我是研究僧i 提交于 2020-01-04 02:17:10
问题 I have two leaflet geojson layers - they both have Point and Polygon features. I would like to be able to order them on the map, but when I do that today (attempting to order them by adding them in a certain order, using bringToBack/bringToFront, etc) the Point icons from both layers sit on top of all polygons. The reason (from my limited experience) appears to be that they're drawn on a completely different pane in the map. I'd very much like to have the points from a layer drawn on the same

Mapbox Marker Symbol with Three Digits

萝らか妹 提交于 2020-01-03 15:51:28
问题 I'm trying to label the standard Mapbox markers with two- and three-digit ids using 'marker-symbol'. The two-digit markers work well, as seen below, but when I try to include three digits, i.e. 112, the markers do not display on the map. Is there an easy way to do this with the built-in marker and not creating a custom div marker? 回答1: Sorry to say, there is no easy way to do this. Not with the built-in marker. Those markers are just images which get loaded from the Mapbox server. They exist