mapbox

Leaflet Circle radius changing dependant on y/lng coords

老子叫甜甜 提交于 2019-12-02 00:54:27
I am using mapbox/leaflet to display a picture of a human body rather than a regular map. I am using leaflet draw and I need to be able to create a circle and move it around while maintaining its radius. However, when I move it towards the bottom of the map/screen, the size increases exponentialy. I want it to stay the same size. I assume it's something to do with projection or CRS but I'm not sure what to do to stop it. My code is : var mapMinZoom = 0; var mapMaxZoom = 4; var map = L.map('map', { maxZoom: mapMaxZoom, minZoom: mapMinZoom, crs: L.CRS.Simple, noWrap: true, continuousWorld: true

Use of MBTiles in offline iOS app

南笙酒味 提交于 2019-12-01 22:00:55
I already have a map stored using the MBTiles format that I want to use in an app I am making. It is vital that the app will run with no signal/connection on the mobile device. Mapbox previously had an example of how to use MBTiles together with RMMBTilesSource so that the mapping data could all be stored locally. This has now been deprecated, see https://github.com/mapbox/mapbox-ios-example . I also enquired with Mapbox as to whether they were going to replace this example with another that was similar. In short, I was told that every device must populate its own cache from a direct request

地图js技术调研

三世轮回 提交于 2019-12-01 20:50:36
地图数据格式规范:geojson http://geojson.org/ 类型包括 Point , LineString , Polygon , MultiPoint , MultiLineString , and MultiPolygon等 geojson 1 2 3 4 5 6 7 8 9 10 { "type" : "Feature" , "geometry" : { "type" : "Point" , "coordinates" : [125.6, 10.1] }, "properties" : { "name" : "Dinagat Islands" } } 地图自定义方面,百度地图要优于高德, http://developer.baidu.com/map/custom/ 通过在线编辑器可以对地图背景、道路等要素进行自定义 百度mapv,数据可视化 http://nikai.us/weblog/map-visualization/ (待完善) 3d地图可视化,目前国内的地图开放平台还没有3d视图,智能在2d上做3d视觉转换 需要对2d->3d显示做相关调研 (基于地图的可视化组件cesium http://cesiumjs.org/ ) name link api intro demo 3d vpn open source OpenLayers /api

Mapbox: How to avoid JavaScript errors for tilesets that aren't available at the current zoom level?

一笑奈何 提交于 2019-12-01 20:37:21
I'm using Mapbox GL JS and loading tileset layers from my Mapbox account. Some of these tileset layers are only available for zoom levels 10 to 15. The default zoom level of my map is 5, and when I load the map I get a JavaScript console error, saying that the tileset is 404ing: Is there any way I can avoid this? I don't want to recreate the tileset all the way to zoom level 5, as it will unnecessarily increase its size. I don't think the console error is causing any problems in Chrome, but I don't know whether it will in other browsers. Steve Bennett The easiest way is to replace the default

leaflet circle drawing / editing issue

℡╲_俬逩灬. 提交于 2019-12-01 14:26:28
I am working on leaflet for the very first time and facing the issue with drawing circles and editing (changing location of circle). The problems I am facing are :- Editing (moving) circle from one location to another changes its radius. Note: Pls try to create circle on top of map in given fiddle and then move it to the bottom by clicking edit button. If I create circle on top section of map it works fine. But If I create circle on bottom of map it only prints a single DOT on map. I checked few examples and it works fine everywhere. Here is the working example where circle creation and moving

leaflet circle drawing / editing issue

最后都变了- 提交于 2019-12-01 12:26:35
问题 I am working on leaflet for the very first time and facing the issue with drawing circles and editing (changing location of circle). The problems I am facing are :- Editing (moving) circle from one location to another changes its radius. Note: Pls try to create circle on top of map in given fiddle and then move it to the bottom by clicking edit button. If I create circle on top section of map it works fine. But If I create circle on bottom of map it only prints a single DOT on map. I checked

Code to Display the Tilemills mbtiles in android project

大兔子大兔子 提交于 2019-12-01 12:20:21
I am working on an android project in which i have to show the offline map using mbtiles . Is there any tutorial which shows how to set the mbtiles inandroid project . zed sorry for being mr.Obvious, but it seems that www.google.com isn't your best friend... Anyways, lets be constructive: 1.) You can use the MapBox SDK. Here is the link where is an example on how to use the online map. Now, that isn't of much use for the offline maps, but in there you can find the SDK. Just download it, and in there you can find also a test app where you can find out how the guys did it. I beleive there must

Mapbox Android: How to get directions from current location to a destination you choose?

筅森魡賤 提交于 2019-12-01 11:42:47
Okay so I am fairly new to Mapbox, I have used GMaps prior to this but I found that Mapbox is more capable of doing what I need, the problem is I have hit a bit of a wall. I have used a combination of the examples available on their site e.g. https://www.mapbox.com/android-sdk/examples/geocoding and https://www.mapbox.com/android-sdk/examples/directions I am trying to allow the user to search a destination and then have it turned into coordinates which will be used to plot in the map. I then want to draw a route from their current location to their destination, this is where my problem comes

postgis loader issues metadata queries but not data query

China☆狼群 提交于 2019-12-01 11:32:53
EDIT 1: I just discovered postgis has an ST_AsMVT function built in, which does exactly what I want (I think), so I'm not going to use mapnik at all! EDIT 2: unfortunately that function isn't yet in a released version of PostGIS, but hopefully it will be within the next few weeks. Originally posted as a github issue . When I do something like the following, with logging turned on for my DB, I see that some "metadata" requests are made to postgis, however, no actual data query is ever made. The requests for metadata are (presumably) needed for the logic relating to field names/types and extent

3D Extrusion with mapbox based on local geojson file

核能气质少年 提交于 2019-12-01 11:22:28
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 post . The code goes like this: <html> <head> <meta charset='utf-8' /> <title>Display buildings in 3D