mapbox

I can't inflate a view in a custom infowindow in Mapbox. (Setting getinfowindow with images)

自闭症网瘾萝莉.ら 提交于 2019-12-08 09:50:34
问题 I am doing a map guide for Android using Mapbox and Android Studio IDE, but I am having a hard time dealing with the custom infowindow. I want to inflate the infowindow (the one after I click on a marker) but as of yet I want to use an XML for that for an easy customization (I am open for suggestions, I still need to add a different image for each of the markers.). I am using a customization in the code itself just for testing, but I want to inflate an XML for that purporse. The following

Current location in Offline Indoor Navigation in ios

旧城冷巷雨未停 提交于 2019-12-08 09:45:51
问题 As a part of my ibeacon based ios application i have to find the current location of the user in my indoor map offline, I am using mapbox SDK for displaying my offline indoor map there is any way to calculate the user location with the help of near by beacons.Thanks in advance. 回答1: Yes! You can use Radius Networks' NavigationKit framework to do offline indoor navigation. There is a reference app that shows you how to use it with an image-based map, but you can modify it to work with mapbox

Major issue overlaying GeoTIF in Mapbox GL JS

被刻印的时光 ゝ 提交于 2019-12-08 09:33:12
问题 I have some general questions to understand what has become a very serious issue in my project. I hope that I might come to some sort of understanding on what is happening here, as I am perplexed well over 2 months into this issue. Let me just dive in : I am in the process of making a weather app using Mapbox which displays both radar (rain) and satellite (visible clouds) over the state of Texas. I am using image overlays to accomplish this. The process is simple, but the overlays are not

Leaflet omnivore + clustering markers + filtering marker cluster group

故事扮演 提交于 2019-12-08 08:08:23
问题 I try to make a map with mapbox and omnivore plugin of Leafet in order to search a data with the tutorial. I don't know how integrate this code from omnivore plugin in my case. I use for my datas a geojson url $.getJSON , clustering markers with MarkerCluster of Leaflet. Thank you for your response. Best regards. Sandrine EDIT I try to filter marker cluster group with Mapbox js tool. It works very well but I would like to insert this feature to my project. But I don't know how to make with

Customize MGLPolyline using mapbox

南楼画角 提交于 2019-12-08 06:32:47
问题 Just started using Mapbox, managed to draw a MGLPolyline by adding this in the locationManaged didUpdateLocations var shape = MGLPolyline(coordinates: &a, count: UInt(a.count)) mapView.addAnnotation(shape) Changing the line width doesn't change it on the screen func mapView(mapView: MGLMapView, lineWidthForPolylineAnnotation annotation: MGLPolyline) -> CGFloat { return 20.0 } How do I change the stroke default color from black to something else? 回答1: You need to set the map delegate to self

Unable to upload local json file to mapbox using tileset Uploads API

强颜欢笑 提交于 2019-12-08 06:24:25
问题 I am following steps given in this Mapbox Uploads API documentation for uploading my local json file to Mapbox through API. I've created C# console app for that. I am able to get Mapbox temporary s3 credentials but when I try to upload file to s3 using those temporary mapbox credentials, I get following error: The AWS Access Key Id you provided does not exist in our records. Below is my console app code: class Program { static void Main(string[] args) { var getS3AccessDetailsUrl = @"https:/

Get Marker Feature Instance in MapBox

自闭症网瘾萝莉.ら 提交于 2019-12-08 06:09:14
问题 I'm new to mapbox GL JS and am following this example: Add custom markers in Mapbox GL JS https://www.mapbox.com/help/custom-markers-gl-js/ Let's say I modify the example above to include 100 different animal markers. How do I change the draggable property of a specific marker after it has been added to the map? Example: Change the draggable property of the dog marker. It would be nice to do something like this: map.getMarker('dog').setDraggable(true); I don't see a way to query any of the

proper implementation of invalidateSize() to display mapbox/leaflet on mobile device

烂漫一生 提交于 2019-12-08 05:53:58
问题 I started a question about a bootstrap leaflet map not displaying on mobile devices How can I fix bootstrap leaflet map mobile display? Since then I have used a simple mapbox template for a map and with invalidateSize() as outlined here https://www.mapbox.com/help/why-map-cropped-hidden-shown/ But still no luck getting the map to display on a mobile phone. Can anyone assist me with the proper implementation of invalidateSize()? Thanks Barry There is a single div element: <div id='map' class=

setBounds to two different featureGroups at once mapbox leaflet?

不想你离开。 提交于 2019-12-08 05:45:42
问题 I am working on a map where I have two feature layers. var myFeatureGroup1 = L.featureGroup().addTo(map); var myFeatureGroup2 = L.featureGroup().addTo(map); I am setting bounds like: map.fitBounds(myFeatureGroup1.getBounds()); map.fitBounds(myFeatureGroup2.getBounds()); But for obvious reasons, myFeatureGroup2 is set bounds on. Is ther a way by which I can fit bounds to multiple layerGroups? Like both of them at once? Is there a way I can merge them into a third layerGroup and fit bounds on

Customize MGLPolyline using mapbox

為{幸葍}努か 提交于 2019-12-08 05:02:30
Just started using Mapbox, managed to draw a MGLPolyline by adding this in the locationManaged didUpdateLocations var shape = MGLPolyline(coordinates: &a, count: UInt(a.count)) mapView.addAnnotation(shape) Changing the line width doesn't change it on the screen func mapView(mapView: MGLMapView, lineWidthForPolylineAnnotation annotation: MGLPolyline) -> CGFloat { return 20.0 } How do I change the stroke default color from black to something else? You need to set the map delegate to self for the functions to work. Here is the code: Initiate your viewController with MGLMapViewDelegate class