Questions tagged [carto-mobile]
24 questions
3
votes
1 answer
Why does Carto Package Manager can't connect to it's database after resuming?
We are using Carto Xamarin Mobile SDK to develop app with offline maps support. It works fine until user does not try to resume application after it has been disposed. Activity creation (activity uses carto package manager) crashes with exception: …

Oleg Kosuakiv
- 174
- 2
- 15
3
votes
1 answer
Connecting Firebase and Carto
I'm working on mobile SDK of Carto (Carto Maps) and I'm using Firebase Database. I'm taking location data from the Firebase and showing that data on map with markers. But I've heard instead of doing this all, you can just connect Firebase and Carto…

Meeran Tariq
- 1,366
- 11
- 23
3
votes
1 answer
Fit map to objects in Carto mobile SDK
I have an array of NTVectorElements, how do I set the map bounds so that it fits every element to the screen? I see the moveToFitBounds function but I’m not sure how to implement it. Do you have an example?

JaakL
- 4,107
- 5
- 24
- 37
2
votes
1 answer
Map localization in Carto Mobile SDK
Does anybody know whether it is available to localize captions of the map objects using Carto Mobile SDK? And if it is possible, how can I obtain it?
For example, I would like to see "Kazakhstan" instead of "Казахстан", however caption above the…

Artem Marakhovskyi
- 25
- 3
1
vote
0 answers
Issue with fetching a custom tileset from CARTO and displaying it on a MapBox map iOS Swift
I'm attempting to fetch a custom tileset from CARTO using the documentation I found that the way to fetch from the API doc is:
curl --location --request GET…

Facundo Barafani
- 23
- 4
1
vote
0 answers
Carto Mobile SDK: How to zoom-in when cluster is clicked
Carto Mobile SDK guide on clusters states, that with cluster you can (among other options):
Indicate the action when clicking on marker. For example, zoom in, or expand the cluster without zooming
I actually can't find any zoom in or expand…

d.aemon
- 761
- 1
- 7
- 20
1
vote
1 answer
How can I add a customised Carto Map Marker via Carto Map Moblie SDK.UWP?
I'm implementing a Universal Windows Platform (UWP) app, and I m using the Carto Map Mobile SDK (UWP). However, I don't know how to add a .png image as a Map Marker programmatically. Here is my code:
/// Preparation - create layer…

Jack Lau
- 41
- 4
1
vote
1 answer
How to Move Map in Background with Fixed Marker Pin in Carto Mobile Swift
I want to fix the marker in the center of the map and when user move map, marker don't change position in Carto Mobile SDK. I want change size marker when map moved begin(touch begin), and resize to first size when end map moved(touch end)(resize…

Gia Joli
- 51
- 1
- 8
1
vote
1 answer
How to make transparent map background with CARTO mobile SDK
I want to show a different View below map (e.g. some animation), and need to make map partially transparent for this. How can I do this with CARTO Mobile SDK?

JaakL
- 4,107
- 5
- 24
- 37
1
vote
2 answers
How to verify that a Map Position is inside the Map Bounds using carto-mobile SDK
what i am trying to achieve is this, when the userMarker be inside the visible bounds accomplish some actions, for that this is my code.
let screenWidth: Float = Float((map.frame.size.width))
let screenHeight: Float =…

Randy Hector
- 89
- 1
- 1
- 9
1
vote
1 answer
How to fit route bounds using CARTO-Mobile-SDK
i calculate the route betwen two points, and i get the polygon produced by the separation of this two points, i create the polygon in this way
let polygon = NTPolygon(poses: vector, style: NTPolygonStyleBuilder().buildStyle())
so, i am creating a…

Randy Hector
- 89
- 1
- 1
- 9
1
vote
1 answer
Offline geocoding using MBTiles with vector tiles
I load an MBTiles Vector Tile data source of my country, using carto-mobile SDK
// Initialize base layer with a bundled styles
let baseLayer = NTCartoOnlineVectorTileLayer(style: NTCartoBaseMapStyle.CARTO_BASEMAP_STYLE_GRAY)
// Use the…

Randy Hector
- 89
- 1
- 1
- 9
1
vote
1 answer
Error decoding tiles in Bundle MBTiles file using CartoDB SDK
I create my .mbtiles following this steps
I use osm-carto style and sources from geofabrik the create my map
I use Kosmtik editor to see the map and a plugin(kosmtik-mbtiles-exporter) to export the .mbtiles
this is my swift code to load my bundle…

Randy Hector
- 89
- 1
- 1
- 9
0
votes
0 answers
Carto Mobile: How to avoid clustering of points with related balloon popups
We are using Carto Mobile SDK in our Android application to display map with POI objects on it. There can be many such objects so we use clustering to avoid clutter over the map in lower zoom levels. So far so good.
Every POI can have a label…

d.aemon
- 761
- 1
- 7
- 20
0
votes
1 answer
Dont work Get x and y pixel of touched in version 4.2.0 to high of Carto mobile SDK
i want to get pixel x and y of map with touched but dont work in version 4.2.0 and higher. and it work in version 4.1.3 and older .
in version 4.1.3 this code is work :
@Override
public boolean…