What URL for download OpenStreetMap tiles - openstreetmap

I download tiles from zoom level 11 - 16.
But my map is small then other OSM map application.
....
I downloaded tiles from this URL: http://tile.openstreetmap.org/13/4096/3659.png
It's work normally. but I noticed many tiles are different from http://www.openstreetmap.org
Thanks.

try using downloadosmtiles.pl
very simple and will load what you need for example:
downloadosmtiles.pl --lat=49.5611:49.6282 --lon=10.951:11.0574 --zoom=13:14
https://metacpan.org/pod/distribution/Geo-OSM-Tiles/downloadosmtiles.pl

Related

TileOverlay requests tiles after it was made invisible [maps 18.0.2]

Note: problem appears when using MapsInitializer.Renderer.LATEST
Goal: I am using several tile overlays in order to switch the data user sees above the map. Several overlays needed to avoid flickering that user sees when we clear the overlay tile cache if using single overlay. For example: showing different weather data depending on the selected time moment.
Steps: When I add a TileOverlay I make it invisible with TileOverlay.isVisible=false right after map.addTileOverlay. Also added some logs to see when the TileProvider actually requests the tiles.
Problem: In the logs I see that overlay requests tiles when I move the map or change a zoom level. Previously the TileOverlay was not requesting tiles if one is set to invisible.
Demo app source code is here https://github.com/olkazmin/googlemaps-tileoverlay-sample.git
Pixel 3a, Android 12
Google Play Services client library version: com.google.android.gms:play-services-maps:18.0.2
Google Play Services version on the device: 22.06.15
compileSdkVersion 31
buildToolsVersion 31.0.0
All was working ok in com.google.android.gms:play-services-maps:17.0.0. Everything works as expected when using MapsInitializer.Renderer.LEGACY

Raster Map for leaflet

i'm developping an app using leaflet. I need to have some map datas offline on my device.
To do that i have tried to download some tiles of openstreetmap.
I'm wondering if there is a simple way to create Raster images of my zones, and how i can add them on leaflet.
Thanks.
Depending on you requirements, it might be a lot of data (the whole OpenStreetmap tileset would consume 54TB disk space).
Leaflet.TileLayer.PouchDBCached/ might be a solution for you, this question has some notes on a different implementation.
You can always refer to loading and displaying a single image over specific bounds of the map, georeference specific image using example code
Example 1:
var imageUrl = 'http://www.lib.utexas.edu/maps/historical/newark_nj_1922.jpg',
imageBounds = [[40.712216, -74.22655], [40.773941, -74.12544]];
L.imageOverlay(imageUrl, imageBounds).addTo(map);
Full resource can be find here:
http://leafletjs.com/reference.html#imageoverlay
Example 2:
Or something little more robust from this great and detailed step by step tutorial:
http://build-failed.blogspot.hr/2012/11/zoomable-image-with-leaflet.html
Hope it helps

Static Image of Open Street map not showing clear

Can someone help me or guide me to show clear static image of open street map.
I am using following code.
http://staticmap.openstreetmap.de/staticmap.php?center=40,-50&zoom=2&size=500x350
You have to customize the rendering of OpenStreetMap data if you don't like that rendering.
For example you could design the map as your client likes with Tilemill (https://www.mapbox.com/tilemill/) and then use MapBox APIs (https://www.mapbox.com/blog/mapbox-static-api/).
If you only need an image, Tilemill can export directly a static image.
If you want a custom font on your map you'll have to go a commercial provider Tilemill or MapCreator (2 of the most popular)
As a side note: both offer retina ready static maps (so that the fonts will look good also on retina/xxhdpi devices)

how can use openlayers in iphone sdk

I want to create a customize map using by openlayer.But I am unable to use openlayer. I want to create map without using google map in iphone so I want to use other way in which I can fill own data in map. i think it possible by open layer , but how I dont know.So please help me.
OpenLayers is a javascript library. As a client-based map viewing utility it allows to "display map tiles, vector data and markers loaded from any source". It is similar to Leaflet.
Both of them are only helpful if you want to render on the web (in which case you would need to grab map tiles or a map image from somewhere (OpenStreetMap for instance), or set up your own map server).
If what you want is to render a map natively on iOS, then you'll probably need a toolkit to fetch and render the map tiles or image. Here're a few that could be helpful:
WhirlyGlobe-Maply;
tangram-es;
GLMap;
Mapzen iOS SDK;
Nutiteq SDK;
Mapbox iOS SDK
QuartzMaps;
you can use this by help of phonegap.
if you dont want to use phonegap then you can simply use UIWebView for that.you can load your data in it.
load HTML files in UIWebView. html file including javascript and css and image files without any problem.
NSString *fullPath = [NSBundle pathForResource:#"filename" ofType:#"html" inDirectory:path];
[yourWebView loadRequest:[NSURLRequest requestWithURL:[NSURL fileURLWithPath:fullPath]]];
for more info on openLayers
It sounds like you are simply interested in providing custom maps in an iOS app. If that is so then MapBox-iOS-SDK will allow you to use many different map sources without the need for a web view. If you look at the MapBox projects on github they also have tools to help you create the maps that the SDK can use.

How to Display offline map in iphone using Mapkit

How to Display offline map in iphone using mapkit?
if i use static image then how do i get current location and pin drop on it?
anyone has idea please suggest some solution.
Thank you.
Try this post Force MapKit use cached map tiles only/disable network programmatically
It tells about open source map OSM , helps offline map browsing.
Source from here http://developers.cloudmade.com/projects/show/iphone-sdk.
Hope this helps , or r u looking for some thing else.
Similar to What SDKs can be used for creating offline maps application for iPad/iPhone?
In iOS4+, you can use an image MKOverlay to overlay whatever you want on top of a MapKit map. You can provide a semi-transperant base map of your own providing to display when the underlying Google Map can not be loaded. But you can not control what MapKit is doing under the hood caching Google maps.