Skip to content

Tag: developer tip

Restoring OpenStreetMapLayer Functionality in ThinkGeo UI

Are you using the ThinkGeo UI OpenStreetMapLayer in your application and experiencing problems with map tiles not loading? This may be due to recent changes on OpenStreetMap’s side in which they are more strictly enforcing their Tile Usage Policy. This policy requires (among other things) that any application consuming tiles from OpenStreetMap’s servers must identify itself with a valid HTTP User-Agent. By default, ThinkGeo’s OpenStreetMapLayer does not specify a User-Agent, but you can (and should) set one yourself.

No matter which edition of ThinkGeo UI you are using, you can specify your own User-Agent on each tile request by handling the OpenStreetMapLayer’s SendingWebRequest event. Continue reading

Leave a Comment