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

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Changes to the Mapquest free tile service
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

bmesser

United Kingdom
224 Posts

Posted - Jul 14 2016 :  08:24:09  Show Profile  Reply
Hi

Mapquest has changed the access to their free map tile service. You now have to subscribe and use an API key and keep to less than 15,000 tiles a month as far as I can see. I just wonder if anyone has had chance to see if ImageEnView will still work with the new service. I did think that there was a property that you could use to include your key but I can't seem to find it.

I have a large collection of archived maps so I can still use mapping, it only becomes a problem when I zoom into an area I've not been in before.

http://devblog.mapquest.com/2016/06/15/modernization-of-mapquest-results-in-changes-to-open-tile-access/

Bruce.

xequte

38611 Posts

Posted - Jul 27 2016 :  01:26:10  Show Profile  Reply
Hi Bruce

It looks like MapQuest is not allowing DirectTile access at all, you need to use a different SDK even if you sign up for their free plan.

See discussion at:

http://stackoverflow.com/questions/38315300/mapquest-direct-tile-access-discontinued

So you would be best to change your provider to OSM:

map := TIESlippyMap.Create( iesmpOSM_Mapnik, 'cache' );
  ...




Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

bmesser

United Kingdom
224 Posts

Posted - Jul 28 2016 :  06:05:47  Show Profile  Reply
Hi Nigel

The iesmpOSM_Mapnik map provider didn't work, but since I can now see the source I tried the iesmpMigurskisTerrain provider instead which did. This map is exactly what I'm looking for plotting weather observations on and free's the plotted data from the detailed clutter of the underlying map. It's a little slow, but once the tiles are cached that problem disappears.

I think slippymaps are a wonderful feature of ImageEn and can't understand why either you or someone else hasn't expanded on this as a mapping component in it's own right. Since the demise of TGlobe 10 years ago now there's very little out there except TatukGIS which comes in at $2,500 or the TMS Google maps component.

Thanks again for your help!

Bruce.
Go to Top of Page

xequte

38611 Posts

Posted - Jul 28 2016 :  16:11:39  Show Profile  Reply
Hi

I never knew of the TMS Google maps component. Wow, Bruno has components for everything!

iesmpOSM_Mapnik works fine when I test it here.



Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

bmesser

United Kingdom
224 Posts

Posted - Jul 29 2016 :  03:39:31  Show Profile  Reply
Nigel

I spoke too soon! With my experience from the previous provider I did a world tour at various zoom levels yesterday and picked up a load of the most common tiles that I would ever use. Great I could pan and zoom without much problem because all the images were cached.

This morning however I opened the same application and found that the moths had been at it, and there many 'white' tiles (1kb) which had replaced the simple blue tiles over the oceans that I already had saved from yesterday in the cache.

This may be the tile providers problem, but if I cached the images yesterday the slippy map component should have no need to refetch it and replace it with a white tile. Can you check at your end to see if you see the same problem?

I'm sure on the server there is only one single 256x256 blue tile that is served up - because let's face it the planet is more or less 70% ocean and why keep tens of thousands of blue tiles!

The answer would be to have all the tiles stored locally, which might not need that much space as long as you didn't zoom in too much which for me would be perfect. And to be honest that's what I thought I had using the cache.

Bruce.
Go to Top of Page

sandy771

57 Posts

Posted - Aug 01 2016 :  07:13:46  Show Profile  Reply
Hi Nigel- I have the same issue. Chaning the slippymap provider to iesmpOSM_Mapnik just gives me blank (black) tiles.

Thanks
Go to Top of Page

bmesser

United Kingdom
224 Posts

Posted - Aug 01 2016 :  07:22:22  Show Profile  Reply
Sandy

I don't think 'iesmpOSM_Mapnik' option ever worked.

Mapquest stopped supplying free tiles so I tried swapping to 'iesmpMigurskisTerrain' which worked perfectly first time, but frustratingly produces a fair number of blank tiles now, even though it must hold a good local copy of the tile in it's cache.

Bruce.
Go to Top of Page

sandy771

57 Posts

Posted - Aug 01 2016 :  07:59:06  Show Profile  Reply
Thanks Bruce

I need roads etc and iesmpMigurskisTerrain doesn't provide this :(
Go to Top of Page

xequte

38611 Posts

Posted - Aug 02 2016 :  01:09:47  Show Profile  Reply
Hi

I'm not sure why iesmpOSM_Mapnik is not working for you. It works fine in my testing.



Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

bmesser

United Kingdom
224 Posts

Posted - Aug 02 2016 :  05:58:47  Show Profile  Reply
Hi Nigel

Are you sure you are pulling back new tiles and not just using pre-existing tiles from the cache?

I can't pull any tiles back from the Mapnik provider which may not exist now in a similar way to how mapquest have just closed down.

Did you get a chance to rerun that demo on the iesmpMigurskisTerrain provider and see if you now had missing tiles that should have been fetched from a cached copy?

Bruce.
Go to Top of Page

sandy771

57 Posts

Posted - Aug 02 2016 :  06:10:20  Show Profile  Reply
Hi Nigel

Same code

iesmpMapQuest used to work OK

iesmpMigurskisTerrain works OK but the map is no good for me

iesmpOSM_Mapnik doesn't work
Go to Top of Page

xequte

38611 Posts

Posted - Aug 02 2016 :  19:10:51  Show Profile  Reply
Hi

iesmpOSM_Mapnik works fine for me, and is definitely not using cached tiles:



Where are you based? Perhaps they limit distribution to some locales?


iesmpMigurskisTerrain works too, but the server is dog slow. I cannot reproduce the blank tile issue.



Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

sandy771

57 Posts

Posted - Aug 03 2016 :  03:18:10  Show Profile  Reply
I'm in the UK
Go to Top of Page

bmesser

United Kingdom
224 Posts

Posted - Aug 03 2016 :  06:28:33  Show Profile  Reply
I know it's a bit of a backwater since Brexit but so am I!
Go to Top of Page

bmesser

United Kingdom
224 Posts

Posted - Aug 03 2016 :  06:33:52  Show Profile  Reply
Nigel

I'll try the demo but I copied the code from out of the demo when the new functionality was added to ImageEN and it always worked 100% with mapquest. I did read somewhere that the terrain tiles were for use in the US only.

Bruce.
Go to Top of Page

xequte

38611 Posts

Posted - Aug 03 2016 :  19:19:13  Show Profile  Reply
Hi Bruce

On the subject of backwaters, I am located in New Zealand.



Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

bmesser

United Kingdom
224 Posts

Posted - Aug 04 2016 :  16:17:19  Show Profile  Reply
Hi Nigel

I've tried the original demo and it starts brightly enough fetch in tiles for the whole Atlantic for a number of zoom levels. But run it again and the missing 'white' tile problem starts again. It's not too slow here in my backwater 11mbps. The strange thing is if I start a second program that shares the same cache as the demo, use identical zoom levels, then the demo has some missing white tiles of the second app but not all. But the whole point of the cache is to share existing tiles and prevent unnecessary downloads. The white tiles weren't a problem initially but they seem to be being ignored by the slippymaps component.

Bruce.
Go to Top of Page

xequte

38611 Posts

Posted - Aug 18 2016 :  04:52:07  Show Profile  Reply
Hi Bruce

I've found the issue with white tiles. This will be fixed in 6.3.1 (next week).


Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

bmesser

United Kingdom
224 Posts

Posted - Aug 18 2016 :  07:36:08  Show Profile  Reply
Nigel

Is it possible to patch an earlier version or does that mean I have to consider the cost of an update?

In the next big release would it be possible to add a boolean 'offline' property to slippy maps? If set false, the component would then just use archived images and not even bother attempting to download a tile.

Bruce.
Go to Top of Page

bmesser

United Kingdom
224 Posts

Posted - Aug 18 2016 :  07:38:56  Show Profile  Reply
I forgot to say - good work finding the bug!
Go to Top of Page

xequte

38611 Posts

Posted - Aug 21 2016 :  21:29:27  Show Profile  Reply
Hi Bruce

You can email me for the source changes to make.


Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: