NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

Hi everyone!

This newbie has an urgent question: I am using the following URL in a Visual Basic (2010) program to show the OSM map in a web browser control. (The VB Webbrowser control uses the settings of the IE on the machine the software runs on.)

Me.Map.Navigate("http://www.openstreetmap.org/?mlat=" & lat & "&mlon=" & lon & "&zoom=" & level)

Thus, the URL given to the control looks something like this at runtime:

http://www.openstreetmap.org/?mlat=51.9112&mlon=8.1318&zoom=17

This always worked for the last three years. But strangely, it doesn't work anymore since yesterday(or maybe the day before, I don't know for sure). When I paste the URL into IE, it shows the map as usual, but when my software is told to open the link, it only shows a white page with the OSM Navigation bar on the left and nothing else.

Can anyone help me with this, or at least tell me if anything has been changed in OSM lately? It does look like it, because the above mentioned URL automatically gets changed to the following when opened in a web browser:

http://www.openstreetmap.org/?mlat=51.9112&mlon=8.1318&zoom=17#map=17/51.91120/8.13180

The last part beginning with #map seems to be new to me. But even when I change the URL in my program to the above, extended version, the map won't get shown.

Any help would be very much appreciated, as my software runs on several computers and people start asking me what's wrong.

Thanks,

Dirk.

asked 25 Sep '13, 09:37

Dirk_R's gravatar image

Dirk_R
41114
accept rate: 0%

1

Not sure why your application can't handle the page anymore but this is actually not an extended version but a shorter one: http://www.openstreetmap.org/#map=17/51.91120/8.13180 (zoom/lat/lon) is now the new format.

(25 Sep '13, 10:09) scai ♦
1

@scai - not really, the original URL had a marker in it hence the one in the question really was the equivalent (with 2 sets of co-ordinates - one for the marker, one for the map centre).

(25 Sep '13, 10:25) SomeoneElse ♦
1

Are you sure the Webbrowser control uses the settings of IE on the machine the software runs on? I just threw a control on a Windows Form and navigated to the URL in your example and it looks the same as if I switch IE10 to IE7 standards mode.

(25 Sep '13, 10:32) EdLoach ♦
1

@SomeoneElse Oh I missed that, you are right.

(25 Sep '13, 10:43) scai ♦
1

Hi all and thanks for the fast replies!

EdLoach, you are right! When I turn IE10 back to IE7 settings, that's exactly the picture I get in my program! Only why VB puts the browser element in IE7 mode, I don't know. But I will look into the settings of my project, maybe there's something I overlooked.

Second thing I don't quite get is why this problem only started appearing two days ago. Maybe some of the latest MS security patches?!

Thanks again for your prompt answers!

Dirk

(25 Sep '13, 11:08) Dirk_R

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×11
×5
×2
×1

question asked: 25 Sep '13, 09:37

question was seen: 4,734 times

last updated: 25 Sep '13, 11:24

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum