Put markers or layers on tags in OSM - openstreetmap

I want to use openstreetmap to put a marker or zone an area with an overlay for certain locations like farmland or commercial buildings.
Is it possible to do a custom map, where I pan around and put a marker, or an area overlay on these specific places?
Looking at the official openstreetmap client I see now way of exposing this information.
For a farmland I want to add a farm building marker, and for a commercial building a commercial marker for example.

Related

Mapbox - Show point of interest markers regardless of zoom level

I'm filtering on the 'poi-label' layer on the default Mapbox Streets V8 data source. What I'd like to have is that certain maki or class labels like 'fitness-centere' to always be visible (both icon and label) regardless of the zoom level.
I see no clear documentation on how to do this using Mapbox studio. Can it be done in that tool?
It is generally not possible to have layers in vector tile sources display at "all zoom levels" because they don't exist at all zoom levels within the vector tile sources.
Generally, the Mapbox tilesets are heavily optimised and only include data at the zoom levels that they are intended to display at in the corresponding Mapbox styles.

Leaflet map with countries border only

OpenStreetMap by default show significant amount of details with regional language labels. I am using leaflet in a scenario that I only need country borders, their names and a few markers on the map. Is there a provider available for leaflet that shows only countries?
I was also wondering if these maps can be rendered by svg tiles instead of images.

Mysterious "markers" using Leaflet (with Omnivore and the MapQuest plugins)

I'm using Leaflet (with omnivore and the MapQuest tile plugins) to display a map with colored polygons. The map and polygons look/work fine, but there are these mysterious blue markers everywhere.
There's nothing in the JS about markers at all, and if I comment out the polygon.addTo(map); line, the markers disappear. So they're definitely related to the polygons, even though they're not directly positioned on the polygons.
Any idea why the markers are appearing, or how I can make them disappear?
SOLVED: It turns out that the problem was that I'm using MSSQL's ".Reduce(n)" function to simplify the polygons (for performance), and if you simplify the polygons too far, the results have "Point(...)" items in them - which leaflet renders as markers!
Now, off to figure out why MSSQL is turning things into points...
Welcome to SO!
Most probably your polygon variable is a Leaflet GeoJSON Layer Group built by the omnivore plugin, and the data you feed it with contains "Point" type geometries.
If you do not specify anything special to handle these points, Leaflet will render them with this default blue marker icon.
In that case, you could simply filter out those point features, whether after omnivore processing (use the ready event) or using a custom GeoJSON Layer Group with its filter option. There should be other posts describing such solutions.
See e.g. Mapbox: Filtering out markers in a Leaflet Omnivore KML layer
If you are not in this case, you would have to provide more information for people to be able to help you. Typically code that you use to build your polygon layer and sample data.

Adding an overlay to a google map

I made my own google map with historical information (of houses and people in the 50-s in Princenhage, The Netherlands):
https://www.google.com/maps/d/viewer?mid=174YNyi2hs_iVpoU0qLqOPq-YUxI&ll=51.57704585455824%2C4.737584814456795&z=18
Now I would like to add an aerial photograph of 1950 as an extra layer on this map so that my map looks as 'google earth in 1950'.
Is this possible and how to do this?
It is possible but you need to make a baseMap of your aerial photo. If you managed that you can use this example to add the basemap to your viewer:
https://github.com/rcknr/basemap-google-maps

Draw routes in Leaflet and Wax

I'm using Leaflet and MapBox. I need to develop an api which will show certain city points with labels, and accordingly draw routes between them. I have BlueMarble tiles till certain zoom, and then MapBox Streets. What is the best way to realize that idea? Are circles and paths the best option? Thank you.
I am not sure that you need to create an API for what you want to do.
http://leaflet.cloudmade.com/examples/geojson.html
In the Leaflet tutorials it shows you how to create LineStrings and Points from GeoJson data. So with latitude and longitude coordinates for the Cities you can create Points and use LineStrings to create the routes and add a them as a GeoJson Layer to the map.