ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 MapQuest Again

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
bmesser 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.
8   L A T E S T    R E P L I E S    (Newest First)
bmesser 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.

xequte 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 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 Posted - Nov 22 2016 : 03:47:35
Hi

The provider is now: 'http://[abc].tile.openstreetmap.org'

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
bmesser 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.

bmesser Posted - Oct 19 2016 : 10:06:00
Nigel

The documentation and all the API's are here but no mention of Tile server and the URL you use:-

https://developer.mapquest.com/documentation/


The static map API has a very complex URL to grab a map and you can see the key. I don't know how the key gets into the function I've changed.

https://www.mapquestapi.com/staticmap/v4/getmap?key=lYrP4vF3Uk5zgTiGGuEzQGwGIVDGuy24&size=600%2C600&type=map&imagetype=jpg&zoom=10&scalebar=false&traffic=false¢er=39.750307%2C-104.999472&xis=https%3A%2F%2Fs.aolcdn.com%2Fos%2Fmapquest%2Fyogi%2Ficons%2Fpoi-active.png%2C1%2Cc%2C40.015831%2C-105.27927&ellipse=fill%3A0x70ff0000%7Ccolor%3A0xff0000%7Cwidth%3A2%7C40.00%2C-105.25%2C40.04%2C-105.30

Bruce.
bmesser 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');


xequte 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