mapbox

Creating a custom UI view class to use as a map annotation

纵然是瞬间 提交于 2019-12-31 05:12:10
问题 I created a custom UIView using storyboard. I don't want this at the coordinates that it is in in my storyboard, but I want to be able to reuse it throughout my app at different locations on a map like this. I also want to be able to update the text in there at the users request, and the number in there should increase whenever the green button is clicked. I also want to customize the image below it, like I learned in this question so that the user annotation has an image and this callout

Mapbox gl js - draw a car marker

匆匆过客 提交于 2019-12-31 05:11:08
问题 I need to draw a car marker based on it's position. But, unlike all official examples, like this, I want size of my marker to be dependent on zoom level. And, I want it to have heading as well - I need to rotate it based on the car's heading. Is it possible with Mapbox GL JS, and how to do it? 回答1: The Symbol layer https://www.mapbox.com/mapbox-gl-js/style-spec#layers-symbol is best suited for this, see this example https://www.mapbox.com/mapbox-gl-js/example/rotating-controllable-marker/ 来源:

Map won't show building numbers (tileMill + OSM)

不想你离开。 提交于 2019-12-30 07:55:10
问题 i'm using tileMill for creating offline map for my iPhone app, long story short - i've downloaded OSM data for Ukraine region from here. I've checked that online map(from link) is showing building numbers as you can see in picture: but after importing data, that i've download, to tile mill there's no building numbers: any idea why this is happening? Thanks! EDIT: I figure out how to set up house numbers label, but when i'm importing data to tilemill (with this tutorial) i can't find layer

Custom map style in MapKit

微笑、不失礼 提交于 2019-12-29 18:02:40
问题 I am looking for a way to implement a custom map style in iOS 7, just like you can do with Google Maps. I have found some posts saying that this is not possible with MapKit, but they are all posted a while back. To clarify, by style I am talking about custom colors and preferably also fonts. Example of custom Google Map style below. (source: servendesign.com) I would really prefer using MapKit for performance reasons, but if it is not supported I am open to using other frameworks as well. The

Custom map style in MapKit

折月煮酒 提交于 2019-12-29 18:02:11
问题 I am looking for a way to implement a custom map style in iOS 7, just like you can do with Google Maps. I have found some posts saying that this is not possible with MapKit, but they are all posted a while back. To clarify, by style I am talking about custom colors and preferably also fonts. Example of custom Google Map style below. (source: servendesign.com) I would really prefer using MapKit for performance reasons, but if it is not supported I am open to using other frameworks as well. The

Directions between Two-point location in mapbox-gl - React Native?

限于喜欢 提交于 2019-12-28 07:08:07
问题 I have two point i get it from database and i want to render a line From start point to end point what I got is the Straight line in two points without consideration the routes and directions on the maps So how can i handle it to take a look for routes and Directions on the map? here's what i got here's what i expect here is my code import MapboxGL from '@react-native-mapbox-gl/maps'; import React, {Component} from 'react'; import {PermissionsAndroid, StyleSheet, View} from 'react-native';

Mapbox: Filtering out markers in a Leaflet Omnivore KML layer

徘徊边缘 提交于 2019-12-25 18:24:38
问题 I am exporting Google Directions routes as KML and displaying them on a Mapbox map by reading them with Omnivore and adding them to the map, The Google KML stores each route as two Places (the start and end points) and one LineString (the route). In Mapbox I would like to show only the routes, that is to filter out the markers somehow. I'm displaying markers out of my own database and the Google markers clutter it up. Here is my code. I change the styling of the LineStrings just to show that

Reading CSV file into javascript string or array

元气小坏坏 提交于 2019-12-25 15:50:09
问题 I'm having a very specific problem so I hope someone can help. I'm building a map app with a CakePHP backend framework. I'm currently attempting to import some data into my application for manipulation, I have a google docs CSV file (i also have a local version) and I'm also using an custom js library. So i have a declaration that goes like so: mapbox.markers.layer().csv('csvstring'); csvstring equates to a standard string of CSV data, i looked at some examples on the mapbox website but all

How to zoom and change color in leaflet

自古美人都是妖i 提交于 2019-12-25 15:13:30
问题 I am using leaflet and leaflet-fusesearch. This is my code for pop up a box when searching for a line plotted in leaflet: var map = L.map('map').setView([1.3096622448984000, 103.7689017333800], 12); L.tileLayer('https://api.tiles.mapbox.com/v4/{id}/{z}/{x}/{y}.png?access_token=token', { maxZoom: 18, attribution: 'Map data © <a href="http://openstreetmap.org">OpenStreetMap</a> contributors, ' + '<a href="http://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>, ' + 'Imagery © <a href="http

Mapbox.js returns tiles in wrong order

﹥>﹥吖頭↗ 提交于 2019-12-25 08:14:13
问题 When using Mapbox-gl.js in the latest chrome browser, everything works fine. When I want to use the default mapbox.js implementation, the map tiles are getting al mixed up and shown totally wrong. See screenshot I have totally no idea why this does not work with mapbox.js, while I did not experience any problem with mapbox-gl.js 回答1: Make sure you're loading the CSS files for the mapbox.js library. Tiles being arranged that way are usually a symptom of missing CSS rules. 来源: https:/