NRKirby
NRKirby

Reputation: 1634

How do I add a JavaScript library to my C# MVC project?

I'm not sure how to add this Google maps Geolocation marker library to my project. I am using Visual Studio 2013 - how should I add it so I can then use the geolocation objects?

I have tried Googling and looking on this site but couldn't find anything useful - can anybody help?

Upvotes: 0

Views: 122

Answers (1)

kdtong
kdtong

Reputation: 184

You have a few options.

  • Grab the minified version of the library in the dist folder, add the file to your project and link it in your pages.
  • Grab the uncompiled version in the src folder, add to your project, and link it in your pages
  • Use bower (http://bower.io/, you'll have to set it up if you've never used it before). You can then just do a bower install bower-geolocationmarker to grab the files, which you can then link to in your pages

Upvotes: 1

Related Questions