mapbox

3D Extrusion with mapbox based on local geojson file

余生颓废 提交于 2019-11-30 18:04:23
问题 I have seen this example online which does data-driven building extrusion but doesn't provide the code at all. I would very much like to achieve the same thing. I have a geojson file with some kind of attribute that I would like to map onto the building's height. Would you know how that is possible? I have considered the recommended alternative: doing 3D extrusions on circles that are already generated based on my data. The code on this blog post is not provided and so I sued the code this SO

How to integrate OpenStreetMap into a react-native project?

天大地大妈咪最大 提交于 2019-11-30 17:09:44
I'am trying to integrate OpenStreetMap into a react-native project.But i can't find any library or anything related to react-native in their github account(link given below). https://github.com/openstreetmap The only thing i can find relating to these to topics is the below link in which there is no proper answer. https://www.reddit.com/r/reactnative/comments/5fi6bg/how_to_add_openstreetmap_to_a_react_native_project/ But one guy have said that mapbox uses openstreet map as their source.The mapbox suggests a good way to integrate it into a react-native project(link given below). https://github

Custom Drawing on Mapbox Map Canvas

风流意气都作罢 提交于 2019-11-30 05:14:50
I would like to be able to manually draw complex shapes on a mapbox map using the android sdk. I have inherited the map view class and overridden the ondraw event but unfortunately whatever I draw gets over drawn by the map itself. As an example I need to be able to draw polygons with diamond shaped borders among other complex shapes. This i can do no problem in GoogleMaps using a custom tile provider and overriding ondraw. Here is the only code I have so far for mapbox: @Override public void onDraw(Canvas canvas) { super.onDraw(canvas); Paint stroke = new Paint(); stroke.setColor(Color.BLACK)

说好不哭!数据可视化深度干货,前端开发下一个涨薪点在这里~

ⅰ亾dé卋堺 提交于 2019-11-30 03:38:11
随着互联网在各行各业的影响不断深入,数据规模越来越大,各企业也越来越重视数据的价值。作为一家专业的数据智能公司,个推从消息推送服务起家,经过多年的持续耕耘,积累沉淀了海量数据,在数据可视化领域也开展了深入的探索和实践。 个推的数据可视化探索和应用由需求出发,从基于开源平台到结合个性化需求进行定制化开发,打造出个推实时消息推送下发图,人群分布热力图等优秀数据可视化作品。这一过程中,个推积累沉淀了大量的数据可视化组件,打磨了自己的数据可视化技术能力。其中,个推热力图正应用在智慧城市、人口空间规划、公共服务等领域,为其提供强大的数据支撑。 个推消息下发图 个推打造的湖滨商圈区域人口热力图 本文就和大家分享一下个推的数据可视化实践、遇到的问题及解决思路,希望大家能从中有所受益。 一、数据可视化的构成 数据可视化由四类可视化元素构成:背景信息、标尺、坐标系、视觉暗示。 1.1 背景信息 背景信息就是标题、度量单位、注释等附加类的信息。主要是为了帮助大屏受众更好地理解相关背景信息,即5W信息:何人(who)、何事(what)、何时(when)、何地(where)、为何(why)。 1.2 标尺 标尺主要用来衡量不同方向和维度上的数据大小,常用的有数字标尺、分类标尺、时间标尺等,类似我们熟悉的刻度。 1.3 坐标系 坐标系有一个结构化的空间,还有指定图形和颜色画在哪里的规则,用于编码数据的时候

个推数据可视化之人群热力图、消息下发图前端开发实践

此生再无相见时 提交于 2019-11-30 00:45:50
随着互联网在各行各业的影响不断深入,数据规模越来越大,各企业也越来越重视数据的价值。作为一家专业的数据智能公司,个推从消息推送服务起家,经过多年的持续耕耘,积累沉淀了海量数据,在数据可视化领域也开展了深入的探索和实践。 个推的数据可视化探索和应用由需求出发,从基于开源平台到结合个性化需求进行定制化开发,打造出个推实时消息推送下发图,人群分布热力图等优秀数据可视化作品。这一过程中,个推积累沉淀了大量的数据可视化组件,打磨了自己的数据可视化技术能力。其中,个推热力图正应用在智慧城市、人口空间规划、公共服务等领域,为其提供强大的数据支撑。 个推消息下发图 个推打造的湖滨商圈区域人口热力图 本文就和大家分享一下个推的数据可视化实践、遇到的问题及解决思路,希望大家能从中有所受益。 一、数据可视化的构成 数据可视化由四类可视化元素构成:背景信息、标尺、坐标系、视觉暗示。 1.1 背景信息 背景信息就是标题、度量单位、注释等附加类的信息。主要是为了帮助大屏受众更好地理解相关背景信息,即5W信息:何人(who)、何事(what)、何时(when)、何地(where)、为何(why)。 1.2 标尺 标尺主要用来衡量不同方向和维度上的数据大小,常用的有数字标尺、分类标尺、时间标尺等,类似我们熟悉的刻度。 1.3 坐标系 坐标系有一个结构化的空间,还有指定图形和颜色画在哪里的规则,用于编码数据的时候

Custom map style in MapKit

左心房为你撑大大i 提交于 2019-11-29 23:18:31
I am looking for a way to implement a custom map style in iOS 7, just like you can do with Google Maps . I have found some posts saying that this is not possible with MapKit, but they are all posted a while back. To clarify, by style I am talking about custom colors and preferably also fonts. Example of custom Google Map style below. (source: servendesign.com ) I would really prefer using MapKit for performance reasons, but if it is not supported I am open to using other frameworks as well. The ones that I have seen are MapBox and Cloudmade, and of course the Google Maps SDK. Is there a way of

How to save a completed polygon points leaflet.draw to mysql table

我是研究僧i 提交于 2019-11-29 20:43:45
I would like to use leaflet.draw to create outlines of regions. I have managed to get this working ok: https://www.mapbox.com/mapbox.js/example/v1.0.0/leaflet-draw/ Now I'd like to save the data for each polygon to a mysql table. Am a little stuck on how I would go about exporting the data and the format I should be doing it in. If possible I'd like to pull the data back into a mapbox/leaflet map in the future so guess something like geojson would be good. So you could use draw:created to capture the layer, convert it to geojson then stringify it to save in your database. I've only done this

Mapbox Driving Direction with Custom Marker

為{幸葍}努か 提交于 2019-11-29 16:57:01
I have the following code to use mapbox as my driving direction, but unfortunately it doesn't allow me to change the markers, and it keeps using its default marker even though I try to change it with geoJson <script> L.mapbox.accessToken = 'pk.eyJ1IjoiZmFyc2hpZGFsYXZpIiwiYSI6ImNpZjNmNTRrYzQ0b2xzNWx1bXN5MnlmdjUifQ.IvZZfdiPe4rxQNolE88fhg'; var __journey = {"logbook":"29","consumer":"732","account":"1","category":"13","source":"2","platform":"4","vehicle":"25","label":"Farshid","startingodometer":"20000","endingodometer":"22721","note":"","status":"unverified","isreimbursable":"no","isdeductible"

Building custom overlay specifically circle with radius(colored) in Android MapBox GL

别说谁变了你拦得住时间么 提交于 2019-11-29 12:54:58
Building custom overlay specifically circle with radius(colored) in Android MapBox GL. It allows to change radius dynamically using seekbar. I'm trying to build some custom markers and I used SimpleCircleView but Im having problem trying to display it in MapBox GL android, and it created lots of bugs. The map touch event is unresponsive once my CircleOverlay is displayed in map The marker doesnt stay in its coordinates once i zoom-in , zoom-out. Updating markers doesnt work, So I have to remove then add again the marker. The color does not match the color that I set in marker. I'll limit my

Leaflet in google maps

吃可爱长大的小学妹 提交于 2019-11-29 07:40:20
Can we use leaflet in google maps? Searching and reading articles about it, we found that there are some leaflet plugins available. Using that we can build application using google map + leaflet. Just to be clear: Leaflet is just a viewing library, whereas Google Maps provides both the base maps (tiles) and an API (like Leaflet). Google Maps requires that you use exclusively its API when using its base maps. However, there is indeed a plugin for Leaflet that claims to act as a proxy for the Google Maps API, hence respecting its Terms of Use, so YES it sounds do-able. Then you are left with the