Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. Bing Maps API - Why JavaScript??

Bing Maps API - Why JavaScript??

Scheduled Pinned Locked Moved The Lounge
csharpjavascripthtmlasp-nethardware
27 Posts 11 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Marco Bertschi

    I am working currently on a project which needs to display an address in a map. As far as I am not a total Google Groupie :^) (I like the webmaster tools and stuff but not the Maps API) I decided to use the Bing Maps API. And i simply cannot understand why Microsoft forces you to use JavaScript and can't simply offer a ASP.Net user control (which would be much safer because you wouldn't have to expose your Maps API key). And as far is I know have all the map APIs only a JavaScript, a mobile and a HTML 5 API. And i like UserControls ;P ... However, I have now a file which is called Map.html (Do clickety here) embedded in an iFrame. Maybe I am going to develop an user control for ASP.Net later. But however, I don't like this bunch of javascript stuff :( .

    L Offline
    L Offline
    Lost User
    wrote on last edited by
    #21

    They actually provide a web service and you really do not have to expose any key to the browser. Not sure what you are trying to do, but I assure you can even write a wrapper around their web services that suits whatever needs you have.

    M 1 Reply Last reply
    0
    • L Lost User

      They actually provide a web service and you really do not have to expose any key to the browser. Not sure what you are trying to do, but I assure you can even write a wrapper around their web services that suits whatever needs you have.

      M Offline
      M Offline
      Marco Bertschi
      wrote on last edited by
      #22

      Sitalkes wrote:

      They actually provide a web service and you really do not have to expose any key to the browser.

      Yep, you are right (DoClickety()[^]). Was my bad, I was looking for a web solution and haven't had the Idea to look for client SOAP services (which are obviously needed to develop a client map app) which I could use for my purposes :sigh: . Thanks for putting me up to this :thumbsup:.

      I am not good with signatures.

      1 Reply Last reply
      0
      • M Marco Bertschi

        Pete O'Hanlon wrote:

        The thing that I'm reading here is that you aren't comfortable with JavaScript development.

        You kinda nailed it. To be honest, it is not the JavaScript dev thing which annoys me, it is the fact that there is not a huge support for it built-in in VS 2010... Maybe I am just a bit weak from the comfortable .Net Environment I am provided with :~ :sigh: In fact I think JavaScript is basically a good thing but it should be easier to develop - Yes, Coffe Script does it make easier (at least at the first quick glance i had one their homepage), I just haven't known it before and I am truly sorry for this fault :~:~ And I'll have a look at typescript too, thanks a lot! :thumbsup:

        M Offline
        M Offline
        Marc Arbesman
        wrote on last edited by
        #23

        I've written some code to integrate into Bing Maps and when I started I could see where you were coming from. I can understand the notion of moving backwards with JavaScript when coming from a tool rich environment like ASP.NET. There is much to be learned about objects and functions that differs from our strongly typed world of C#. But I see the current iteration of JavaScript as one of the most exciting advances in web tech currently. Microsoft sees this too. HTML5 is baked into Windows 8 and most mobile operating systems. IE 9 and 10 represent a significant effort to advance support for JavaScript. (Which, honestly is just taking cues from Google Chrome) And now Visual Studio 2012 treats JavaScript as a first class citizen. Here are some links to resources that may help you see JavaScript's potential. They helped me for sure. A book called JavaScript Patterns is a great starting point for someone with a strong programming background and a little JavaScript knowledge. A video from Scott Hanselman on JavaScript support in VS 2012 Some tips for .NET developers working with JavaScript John Resig (the author of jQuery) has some interesting thoughts on Classes in JavaScript. The concept of Classes helped me make better sense of JavaScript coming from the world of C#. There are many Javascript libraries that can provide a Class implementation. I hope this helps. And I urge you to keep an open mind about JavaScript.

        1 Reply Last reply
        0
        • M Marco Bertschi

          I am working currently on a project which needs to display an address in a map. As far as I am not a total Google Groupie :^) (I like the webmaster tools and stuff but not the Maps API) I decided to use the Bing Maps API. And i simply cannot understand why Microsoft forces you to use JavaScript and can't simply offer a ASP.Net user control (which would be much safer because you wouldn't have to expose your Maps API key). And as far is I know have all the map APIs only a JavaScript, a mobile and a HTML 5 API. And i like UserControls ;P ... However, I have now a file which is called Map.html (Do clickety here) embedded in an iFrame. Maybe I am going to develop an user control for ASP.Net later. But however, I don't like this bunch of javascript stuff :( .

          R Offline
          R Offline
          RafagaX
          wrote on last edited by
          #24

          As this API will probably be used in a web site, Javascript is the most obvious way to use it (Everyone loves Javascript, isn't? :rolleyes: ).

          CEO at: - Rafaga Systems - Para Facturas - Modern Components for the moment...

          M 1 Reply Last reply
          0
          • M Marco Bertschi

            I am working currently on a project which needs to display an address in a map. As far as I am not a total Google Groupie :^) (I like the webmaster tools and stuff but not the Maps API) I decided to use the Bing Maps API. And i simply cannot understand why Microsoft forces you to use JavaScript and can't simply offer a ASP.Net user control (which would be much safer because you wouldn't have to expose your Maps API key). And as far is I know have all the map APIs only a JavaScript, a mobile and a HTML 5 API. And i like UserControls ;P ... However, I have now a file which is called Map.html (Do clickety here) embedded in an iFrame. Maybe I am going to develop an user control for ASP.Net later. But however, I don't like this bunch of javascript stuff :( .

            P Offline
            P Offline
            Paul Horstink
            wrote on last edited by
            #25

            There is a Silverlight version of the control...

            1 Reply Last reply
            0
            • R RafagaX

              As this API will probably be used in a web site, Javascript is the most obvious way to use it (Everyone loves Javascript, isn't? :rolleyes: ).

              CEO at: - Rafaga Systems - Para Facturas - Modern Components for the moment...

              M Offline
              M Offline
              Marco Bertschi
              wrote on last edited by
              #26

              RafagaX wrote:

              (Everyone loves Javascript, isn't? :rolleyes: ).

              There is a difference between love and just living together because you'll get serious problems otherwise (eg because her father would show up with a shotgun if I'd move out :wtf: ) :-\ . However, I respect JavaScript as a language which is very important to webdevs. But I ain't gonna love it.

              R 1 Reply Last reply
              0
              • M Marco Bertschi

                RafagaX wrote:

                (Everyone loves Javascript, isn't? :rolleyes: ).

                There is a difference between love and just living together because you'll get serious problems otherwise (eg because her father would show up with a shotgun if I'd move out :wtf: ) :-\ . However, I respect JavaScript as a language which is very important to webdevs. But I ain't gonna love it.

                R Offline
                R Offline
                RafagaX
                wrote on last edited by
                #27

                :laugh:

                CEO at: - Rafaga Systems - Para Facturas - Modern Components for the moment...

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups