I am using a Mapbox map pad on my website. I would also like to add the footers of maps such as bing-maps or yandex-maps to my mapbox layers to give the user more options. So I want to use layers of other maps while continuing to use mapbox is it possible?
Bing Maps can be added as a raster tile layer. Details on how to directly access Bing Maps tiles is documented here: https://learn.microsoft.com/en-us/bingmaps/rest-services/directly-accessing-the-bing-maps-tiles
If you want vector tiles from Microsoft, there is also Azure Maps (they have traffic data tiles available in vector and raster format too):
https://learn.microsoft.com/en-us/rest/api/maps/render-v2/get-map-tile
https://learn.microsoft.com/en-us/rest/api/maps/traffic/get-traffic-flow-tile
https://learn.microsoft.com/en-us/rest/api/maps/traffic/get-traffic-incident-tile
https://samples.azuremaps.com/?search=vector%2520tile
Note that the Azure Maps Web SDK, uses MapLibre under the hood (a fork of Mapbox) and wraps it with an easier to use developer API. https://learn.microsoft.com/en-us/azure/azure-maps/how-to-use-map-control
Related
I am reading through mapbox JS api but don't seem to find any the geocoding API call that would enable me to provide place lookup using my own typeahead component. So basically I am after sending out a query and receiving an array of results.
I do not mean the example on how to place geocoder Control on or off the map, but rather how can I provide places lookup in my own form [Angular, React, whatever] that does not display any map. Is that possible at all?
[UPDATE May 2020]
Mapbox now does allow you to use a Geocoder without using a map (search form with autocomplete)
July 1, 2019: Removed the default restriction that Services have to be
used in conjunction with a Mapbox map. Point of interest results from
the Geocoding API and Enterprise Boundaries must still be used in
conjunction with a Mapbox map.
Examples can be found from the Mapbox website and from Mapbox Github page.
This previous answer shows an alternative plugin/ service called Algolia that you can use to create a Geocoder.
Another alternative is to use Geocodio.
However, both Geocodio AND Mapbox Geocoder (without a map present) do not support POI (Point of Interest)
E.g. A named place including commercial businesses, public buildings, monuments, and parks, etc.
Hope this helps someone in the future!
This is apparently the violation of Mapbox's terms of service:
You may only use responses from the Geocoding API ("Geocodes") in
conjunction with a Mapbox map.
That's the reason why mapbox-gl-js MapboxGeocoder control (which consumes Mapbox Geocoding API) comes in conjunction with a Mapbox map only and means your scenario is not supported.
July 1, 2019: Removed the default restriction that Services have to be used in conjunction with a Mapbox map. Point of interest results from the Geocoding API and Enterprise Boundaries must still be used in conjunction with a Mapbox map.
Is it possible to use different colors for Tiles in Open Street Map?
In Google Maps API you can style the map - is there a same feature in Open Street Map or even better are there any different tile templates on the web for download and use in OSM?
OpenStreetMap project provides map data. In order to display web maps OSM data needs to be pre-processed and rendered. Depending on whether you use raster (for example default leafler) or vector tiles (mapbox-gl) steps to modify styles are completely different. Raster styles are usually generated using mapnik rendering library with mod_tile and apache web server. OSM data needs to be imported into PostgreSQL database. Depending on the amount of data you want to process it can take different time from couple of hours for single city to days for the whole planet and require very good hardware (6-8 cores/ 32 GB ram and higher). Then you need to edit special CartoCSS styles to change map appearance. Vector maps and tiles is completely different story but it will require comparable efforts to create your custom map style.
What I suggest is to go and find OSM maps provider that have different styles from default OSM by the way here is an excerpt their tile usage policy (https://operations.osmfoundation.org/policies/tiles/):
OpenStreetMap data is free for everyone to use. Our tile servers are not.
So look at these providers, they can save you a lot of time and money:
https://openmaptiles.org
https://getmaps.io
https://stadimaps.com
and others from https://switch2osm.org/providers/
Is there a way to use own custom data for traffic using the gmap, mapbox, leaflet. I just want to show custom data set for traffic using the map like google map indicating traffic in different colors in lanes. I just want to show the same but using own custom traffic data.
Any help would be appreciated.
there is no any Leaflet API to show traffic but you can applies traffic flow data to the map tiles before serving them by using Mapbox to draw on a Leaflet map to represent traffic.Here is the best approach that is not be using Leaflet functionality at all.
A web mapping library allows you to add a map to a web page and define the data it contains, its appearance, and a variety of functionality. Think of it like a toolbox filled with many different map-making tools that can be used together to build beautiful and interactive custom experiences.
I need to use openlayers3 to embed a map in webpage, and I am using tiles from openstreetmap.org, so what API of openstreetmap am I using? The data API or the Image API of something like that?
Also, what license should I use?
OpenLayers, Leaflet and similar libraries display tiles in the background. These are just images.
The license of these tiles depends on the tile server you are using. If you are using tile.openstreetmap.org then take a look at the OSM tile usage policy and Copyright. The latter page states:
The cartography in our map tiles, and our documentation, are licensed
under the Creative Commons Attribution-ShareAlike 2.0 license (CC
BY-SA).
Note that this applies only to the tiles provided by tile.openstreetmap.org. Other tile servers will have other licenses and other tile usage policies.
Don't confuse this with raw OSM data which is licensed under Open Data Commons Open Database Lizenz (ODbL). However since you are only going to display tiles the ODbL doesn't apply to you.
can i use bing map platform with an external mapping source ?
for example, i want to use bing map siverlight client with my own map files instead of the provided maps. (some areas coverage is insufficiant with bings provided mapping)
Thanks.
Another useful tool you may want to utilize if you don't have ArcGIS Server is MapCruncher, which will take a raster image, allow you to georeference it and produce Virtual Earth compatible tiles.
If you need to display vector data, you can either convert it to a format like KML or use a product called SharpMap to render tiled images.
I am assuming that since this was tagged ESRI, that you want a method to use ESRI products for your data sources... There are a lot of ways you can create your own tiles and use them in Bing Maps. If you have ESRI ArcGIS Server, you can use the ESRI JS API to add your own services to Bing Maps.
you can rewrite TileSource class and override GetUri method