Hi! I'm Gabriel, an Argentinian programmer (please excuse my english). I'm using the service published on http://ojw.dev.openstreetmap.org/ to get maps for an application, on regular time intervals. From some days i've been detecting some errors in my log when loading the image data, on a .NET component designed to such end. These errors are related to the info on the downloaded stream (the image). After some hours of debugging, i've noticed that if i call this url: ... i've got an incorrect response, in terms of image data. If I change the zoom parameter (the z=15 part of the url) from 15 to 16, the service works as expected. After looking the raw data of the image in an hex editor, i've notice this error at the firsts lines of the stream: Warning: imagecreatefrompng(): '../../data/tiles/mapnik151114420132.png' is not a valid PNG file in /home/ojw/publichtml/StaticMap/map.php.inc on line 49 If i remove this bytes from the stream, i got a "correct" image data. When open it from a image browser, the image appears correct but with a grey block at the lower right part of it. What can i do to fix it? Thanks in advance!
This question is marked "community wiki".
asked 11 Sep '13, 18:54 Kaleb |
This (and indeed anything on I'd recommend instead that you use the MapQuest Open Static Maps API. These maps are made from OSM data just the same, but are likely to offer a more reliable service. Make sure to read MapQuest Open's terms of service and any attribution requirements before deploying it. answered 11 Sep '13, 20:15 Richard ♦ Also take a look at static map images in the wiki for alternative solutions, such as Bigmap. And please make sure to read the tile usage policy first.
(28 Dec '14, 22:15)
scai ♦
|