mapbox

Using MapBox for Geolocation in html

眉间皱痕 提交于 2019-12-01 10:46:34
I would like to display the address on dynamics CRM using MapBox API, i have used Google API and it works perfectly, but now i would like to display it using map box. I have looked at the forward geo-location feature of Mapbox but it's not yet clear. So my variable my address variable will be coming from a field. e.g var address = "6 Antares Drive, Ottawa, Ontario K2E 8A2, Canada"; <!DOCTYPE html> <html> <head> <meta charset='utf-8' /> <title>Add a geocoder</title> <meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=no' /> <script src='https://api.tiles.mapbox.com

Code to Display the Tilemills mbtiles in android project

瘦欲@ 提交于 2019-12-01 09:43:54
问题 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 . 回答1: 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

postgis loader issues metadata queries but not data query

落花浮王杯 提交于 2019-12-01 09:16:44
问题 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

Failed to verify bitcode in Mapbox.framework

偶尔善良 提交于 2019-12-01 07:28:58
问题 I have implement mapbox in the project , its ok work in simulator and device but when i am going to create build the issues has come . the issues attach here with screenshoot. 回答1: If I remember correctly, you will have to select your projects target, go from the General tab to the Build Settings tab, search for Enable Bitcode and set it to No. Of course, remember to do a new Archive before uploading it again. I had many many issues with Mapbox and zero support from their team. I also had a

Rotate and change position for markers in latest MapBox SDK 6.7

混江龙づ霸主 提交于 2019-12-01 06:17:53
Mapbox Android SDK: 6.7.0 The requirement in the application we are developing is that we have to add multiple markers in different LatLng positions and also rotate them with some bearing. In the old mapbox version(4.2.1), we could do it without any issues. ////Working code with MapBox SDK 4.2.1//// MarkerViewOptions markerViewOptions = new MarkerViewOptions(); IconFactory iconFactory = IconFactory.getInstance(this); Icon arrowIcon = iconFactory.fromResource(R.drawable.compass_needle); markerViewOptions.icon(arrowIcon); markerViewOptions.position(new LatLng(position)).rotation((float)

Rotate and change position for markers in latest MapBox SDK 6.7

落爺英雄遲暮 提交于 2019-12-01 05:22:09
问题 Mapbox Android SDK: 6.7.0 The requirement in the application we are developing is that we have to add multiple markers in different LatLng positions and also rotate them with some bearing. In the old mapbox version(4.2.1), we could do it without any issues. ////Working code with MapBox SDK 4.2.1//// MarkerViewOptions markerViewOptions = new MarkerViewOptions(); IconFactory iconFactory = IconFactory.getInstance(this); Icon arrowIcon = iconFactory.fromResource(R.drawable.compass_needle);

Leaflet: How to toggle GeoJSON feature properties from a single collection?

戏子无情 提交于 2019-12-01 01:15:49
I have a single GeoJSON object that contains over 2000+ features and each feature is part of one category (i.e. "Electrical", "Military", etc). There are a total of about 38 categories. Here's the schema example of my collection: {"type":"Feature","properties":{"category":"Electrical","Name":"Plant No 1"},"geometry":{"type":"Point","coordinates":[81.73828125,62.59334083012024]}},{"type":"Feature","properties":{"category":"Electrical","Name":"Plane No 2"},"geometry":{"type":"Point","coordinates":[94.5703125,58.722598828043374]}},{"type":"Feature","properties":{"category":"Military","Name":"Base

Swift 3 - Mapbox - Customize User Location Annotation

孤街醉人 提交于 2019-11-30 23:19:18
I'm Looking to change the appearance of the users location annotation. I understand this is now possible using MGLUserLocationAnnotationView , however, I'm unsure how to implement this. Can anyone provide a simple example of how this is done? Thanks You are right. The MapBox API MGLUserLocationAnnotationView description is very short. The user location view customisation is available since MapBox iOS SDK 3.4.0. See also the feature comments on the MapBox GitHub It is important to note: The MGLUserLocationAnnotationView is a subclass of the MGLAnnotationView. It means the

MapBox Android application crashes after update to SDK 4.1.0 on emulator

為{幸葍}努か 提交于 2019-11-30 20:58:12
问题 After the update to Android MapBox SDK 4.1.0/4.1.1 my app crashes on Android emulator with: E/mbgl: [Shader]: Vertex shader fill failed to compile: precision highp float; #ifdef GL_ES precision highp float; #else #define lowp #define mediump #define highp #endif attribute vec2 a_pos; uniform mat4 u_matrix; void main() { gl_Position = u_matrix * vec4(a_pos, 0, 1); } 07-23 00:07:06.818 8965-8965/? A/libc: Fatal signal 11 (SIGSEGV) at 0xdeadcab1 (code=1), thread 8965 (pboxandroiddemo) The app

Swift 3 - Mapbox - Customize User Location Annotation

泪湿孤枕 提交于 2019-11-30 19:16:12
问题 I'm Looking to change the appearance of the users location annotation. I understand this is now possible using MGLUserLocationAnnotationView , however, I'm unsure how to implement this. Can anyone provide a simple example of how this is done? Thanks 回答1: You are right. The MapBox API MGLUserLocationAnnotationView description is very short. The user location view customisation is available since MapBox iOS SDK 3.4.0. See also the feature comments on the MapBox GitHub It is important to note: