Author |
Topic |
|
bmesser
United Kingdom
224 Posts |
Posted - Oct 10 2016 : 15:28:48
|
Hi
I now have a key to access free tiles (up to a limit of 15,000 a month) from MapQuest. I set the key property and directed my TSplippyMap provider to iesmpMapQuest without any luck. Did the URL also change when MapQuest stopped their free tile mapping service, and if so does anyone know what it is and how to change it in the component?
Bruce. |
|
xequte
38615 Posts |
Posted - Oct 11 2016 : 03:46:41
|
Hi Bruce
Did they give you any integration details? Compare the URL against the ImageEn source.
Nigel Xequte Software www.xequte.com nigel@xequte.com
|
|
|
bmesser
United Kingdom
224 Posts |
Posted - Oct 19 2016 : 09:55:26
|
Hi Nigel
As far as I know the URL should look something like this, although this may not be the case because I can download tiles without a key!
http://tile.openstreetmap.org/7/63/43.png
I changed the code to this (see below) and tried various other permutations without much luck. I'm guessing that the [abc] is replaced with the correct folder path somewhere. It may need to be /$0/1/256 but that would hardwire it, which would be wrong I assume.
I know I'm a pain, and running a very old version of ImageEN, but I would have thought that you would have had to fix this bit for the latest release anyway.
Bruce.
providers: array [TIESlippyMapProvider] of string = ('http://tile.openstreetmap.org[abc]',
'http://[abc].tile.opencyclemap.org/cycle',
'http://[abc].tile2.opencyclemap.org/transport',
'http://[abc].tile.cloudmade.com/$0/1/256',
'http://[abc].tile.cloudmade.com/$0/2/256',
'http://[abc].tile.cloudmade.com/$0/3/256',
'http://otile[1234].mqcdn.com/tiles/1.0.0/osm',
'http://oatile[1234].mqcdn.com/naip',
'http://tile.stamen.com/terrain-background');
|
|
|
bmesser
United Kingdom
224 Posts |
|
bmesser
United Kingdom
224 Posts |
Posted - Nov 21 2016 : 10:33:22
|
Nigel
Interestingly the new Map demo works here with this line:
map := TIESlippyMap.Create(iesmpOSM_Mapnik, 'cache');
I try exactly the same thing and nothing using version 5.
In my version copy of hyieutils
line 4857 looks like this:- TIESlippyMapProvider = (iesmpOSM_Mapnik, iesmpOpenCycleMap, iesmpOpenCycleMapTransport, iesmpCloudMadeWebStyle, iesmpCloudMadeFineLineStyle, iesmpCloudMadeNoNamesStyle, iesmpMapQuest, iesmpMapQuestOpenAerial, iesmpMigurskisTerrain);
The provider on line 39635 look like this:-
providers: array [TIESlippyMapProvider] of string = ('http://tile.openstreetmap.org[abc]', 'http://[abc].tile.opencyclemap.org/cycle', 'http://[abc].tile2.opencyclemap.org/transport', 'http://[abc].tile.cloudmade.com/$0/1/256', 'http://[abc].tile.cloudmade.com/$0/2/256', 'http://[abc].tile.cloudmade.com/$0/3/256', 'http://otile[1234].mqcdn.com/tiles/1.0.0/osm', 'http://oatile[1234].mqcdn.com/naip', 'http://tile.stamen.com/terrain-background');
I think mine is not working because the Mapnik URL points at the defunct openstreetmap provider but I may be wrong.
Can you let me have a copy of the code with the new mapnik provider to see if that works?
Bruce.
|
|
|
xequte
38615 Posts |
|
bmesser
United Kingdom
224 Posts |
Posted - Nov 22 2016 : 05:33:25
|
Hi Nigel
That mapnik provider works but only if you set the cache path to 'cache' i.e. in the same folder as the exe. If I set the path to 'E:\Maps' (where I've historically saved the map tiles so literally dozens of programs can use them) it fails to return a map let alone cache it.
If I go back to using the 'http://tile.stamen.com/terrain-background' provider the mapping works fine and saves to the E drive.
So I am now running your demo and caching as many tiles, at as many zoom levels as I can, saving them to the 'cache' folder, and then copying them all to 'E:\Maps' where my programs can access them and all is well until I find that I don't have the required tile to display!
Perhaps the answer is to write an application to grab all the tiles for the whole world and at all the zoom levels that you require and save them.
Have I hit on a bug, or is it because I need to update my copy of ImageEN?
Bruce.
PS Another problem that I've noticed is that from the UK mapnik seemed to have only released a map of Europe and not the entire world, which of course is not your problem, but it does cause your demo a few problems!
PPS If I rename the cache folder in the demo and then create a new cache folder to replace it in the same folder as the exe mapping stops working. |
|
|
xequte
38615 Posts |
Posted - Nov 22 2016 : 15:02:14
|
Hi Bruce
1. You are using an old version of ImageEn. There have been a number of changes since then, so the issue is probably resolved
2. It sound like geolocking. Have you confirmed using a VPN?
3. If you can reproduce it with the current version, then let me know the steps.
Nigel Xequte Software www.xequte.com nigel@xequte.com
|
|
|
bmesser
United Kingdom
224 Posts |
Posted - Nov 22 2016 : 16:08:05
|
Nigel
A VPN is a bit technical for me Nigel!
Please let me know when you issue a new version of ImageEN and maybe you can do me a upgrade deal, I think it's about time that I treated myself.
In the meantime I've found an excellent free application called Maperitive that has no problem with mapnik and it allowed me to collect the tiles for the area that I was interested in and at the zoom levels I wanted.
They use a folder structure in their cache rather than just dumping the tiles in just a single folder - E:\Maps\Z\X\Y.png, where Z is the zoom level, and X and Y identify the tile. But I wrote a convertor and copied them into the format ImageEN requires and now I'm mapping again!
Bruce.
|
|
|
|
Topic |
|