Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What is the mapbox model like in GIS development?

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

Editor to share with you what the mapbox model in GIS development is like, I believe most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!

Mapbox can be like Amap or Baidu map, zoom in to a certain extent, show some simple models, and can paste some maps to achieve a flat three-dimensional effect. In the mapbox example, it shows how to load some stereo models using online slicing data on mapbox.

Https://docs.mapbox.com/mapbox-gl-js/example/3d-buildings/

By downloading the data of the outline of the building on the Internet, we can also achieve the effect of loading this model. In one way, the data is converted into geojson format and loaded directly. This disadvantage is that when the amount of data is very large, the system performance consumption is also very large. The other is to slice it into vector tile and load it, just like map slices, according to the zoom range. The effect of this three-dimensional building needs to have a height field in the data, or it can be set to a uniform height.

The code is the way to load the layer, the key is to set 'type':' fill-extrusion', 'fill-extrusion-height': [and' fill-extrusion-base' 'three attributes, through the setting of base and height, can also achieve a floating effect, the specific implementation method see the official example.

However, according to the current implementation of the class library, the edge of the building can not be set, so it can not show a border effect.

These are all the contents of the article "what is the mapbox model like in GIS development?" Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report