Questions tagged [mapbox-gl]

A client-side map rendered with implementations in native platforms utilizing OpenGL.

Mapbox GL is an open-source framework and API being developed by Mapbox. Mapbox GL differs from Mapbox as it downloads vector map data and renders the map image on the client.

1207 questions
0
votes
2 answers

Run a map natively in a cordova app

is it possible to run a map (using mapbox) natively in iOS/Android and embed it in a cordova app? The map should have interactive elements, like markers and popups, which interact with the html/JS interface. Must this be done via a custom…
otmezger
  • 10,410
  • 21
  • 64
  • 90
0
votes
2 answers

Inherit MGLPolygon in Mapbox iOS SDK 3.3.1

I'm trying to define a class Building which inherits MGLPolygon. MGLPolygon is defined as: public class MGLPolygon : MGLMultiPoint, MGLOverlay { public var interiorPolygons: [MGLPolygon]? { get } public convenience init(coordinates coords:…
YOUNG
  • 515
  • 3
  • 13
0
votes
1 answer

Mapbox: Set zoom level on location found

The leaflet documentation tells me that you should use the maxZoom option on location but it's not working (http://leafletjs.com/reference.html#map-locate-options). When a user is using geolocation on my site and finds their position at the map it…
J. Sveum
  • 29
  • 1
  • 7
0
votes
1 answer

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

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…
david
  • 2,900
  • 5
  • 28
  • 48
0
votes
1 answer

React Native: Center MapBox in a given area, not just in center coordinate

Here I am trying to achieve centering a MapBox map in a given area: The area can be defined ideally by a (sub) set of annotations Alternatively it can just be an a rectangle for simplicity From what I know from its documentation, MapBox only…
Peter G.
  • 7,816
  • 20
  • 80
  • 154
0
votes
1 answer

How to use mapbox.js default style in mapboxGL.js

before i used mapbox.js now i need use mapsboxGL.js but the mapbox.js style corresponds better to my app.. Mapbox.js VS MapboxGL.js you know how? Thanks
0
votes
1 answer

Mapbox iOS GL black background layer issue

I try to implement raster tiles in mapbox-iOS-SDK gl 3.2.3 This is my local style source: { "version": 8, "name": "2GIS tiles", "sources": { "mainSource": { "type": "raster", "tiles": [ …
ShurupuS
  • 2,923
  • 2
  • 24
  • 44
0
votes
1 answer

Transform MGLAnnotationView Subview

I'm trying to apply a transform in order to rotate a view that I've added as a MGLAnnotationView's subview. It worked well for MKAnnotationView but it doesn't for the new annotation view class. What should the correct approach be for this?
Fran Sevillano
  • 8,103
  • 4
  • 31
  • 45
0
votes
1 answer

Using custom fonts and recoloring for MapboxGl markers

Is it possible to use Foundation Icon Fonts or Font Awesome icons as the markers on the map for MapboxGL, basically embedding HTML like "" into the "marker-symbol" field? Also, is there a "icon-color" or "marker-color"…
user3226932
  • 2,042
  • 6
  • 39
  • 76
0
votes
0 answers

MAPBOX - Unable to use Custom Marker and Fly-to Location feature in same web application

I am trying to use MapBox JS for creating a customized map with following 3 main features: Custom marker image (icon) Fly-to Location (slowly or general one either) Filtering markers It seems that feature 1 and 2 does not fall under same JS…
0
votes
1 answer

How to enable mouse wheel scrolling for zooming in mapbox?

I have mapbox map in a website, I can do zoom with the default buttons of the map and making click in the map but I need to enable do the zooming with the mouse wheel. Any ideas, Thank you.
Rivero Felipe
  • 177
  • 2
  • 18
0
votes
2 answers

how to get mapbox-gl-js webgl/opengl to work on ubuntu chrome?

We are trying mapbox-gl page here: https://www.mapbox.com/blog/data-driven-styling/ We see This is the Chrome Version: Google Chrome 50.0.2661.94 (Official Build) (64-bit) Revision …
Ralph Yozzo
  • 1,086
  • 13
  • 25
0
votes
2 answers

Consume ArcGIS Map Service into MapBox GL API?

Can someone provide a code sample to consume an ArcGIS Map Service into MapBox GL API? Thanks!
0
votes
0 answers

mapbox-gl.js with PGRestAPI vector tile(pbf)

I have own vector tile from PGRestAPI, url like below "http://192.168.1.4:3001/services/postgis/cleantech2/geom/vector-tiles/{z}/{x}/{y}.pbf" and I try use mapbox-gl.js to render the map, but nothing display. I am doing wrong? thx var style = { …
max
  • 146
  • 1
  • 8
0
votes
1 answer

No resource identifier found for attribute '' in package Android Layout

I have the following layout in Android Studio 2.1
Mitch
  • 1,716
  • 3
  • 25
  • 41