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

Hello, Does anyone has a sample of how to use OpenStreetMap on a Asp.net website?

Thanks

asked 29 Feb '12, 12:48

LouisGi's gravatar image

LouisGi
26113
accept rate: 0%

2

Can you be more specific about how you would like to use OpenStreetMap on your website. Do you mean deploying your own slippy map? ( http://wiki.openstreetmap.org/wiki/Deploying_your_own_Slippy_Map ) <-- See example there. Many will work using plain HTML and javascript which might be used outside of any ASP logic, so what do you want ASP logic to do? Loading marker locations from a database? Be more specific

(29 Feb '12, 14:52) Harry Wood

What I wanted to see is to add markers to my map and load data from my DB. I've implemented it twith Google maps and with Bing Maps but I haven't found any help to implement this with OpenStreetMap. As I browse the internet I think I found something with Silverlight but I would prefer not to use it. I took a short look to the page you mentioned but this use Javascript. which isn't very easy to handle for what I want ...

(29 Feb '12, 18:12) LouisGi

I do not have a sample, but if you already have Google maps running, this might help: http://blog.nestoria.co.uk/why-and-how-weve-switched-away-from-google-ma

(29 Feb '12, 19:40) LM_1

OK "add markers to my map and load data from my DB". Now you say you've implemented it with google maps and with bing maps... and you imply that you've done this "without using javascript". Are you sure your existing solution doesn't use javascript? Is it using google maps static image API? ActionScript flash API?

(01 Mar '12, 16:30) Harry Wood

Yes Harry, There are some controls to implemented it without the use of javascript (I used for example Microsoft.Live.ServerControls.VE.dll for Bing maps). I'm not writing here to make any impressions I just want to see how this can implemented. My knowledge of Javascript is very basic. If you have an example of that, it is more than welcome because I think I can make it happen!

(01 Mar '12, 17:07) LouisGi

If you want a really simple Javascript example I'd have a look here - about 12 lines in total.

(01 Mar '12, 18:49) SomeoneElse ♦
showing 5 of 6 show 1 more comments

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:

×9

question asked: 29 Feb '12, 12:48

question was seen: 8,722 times

last updated: 01 Mar '12, 18:49

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