Copy/paste from a ResourceManifest.cs file of mine:
manifest.DefineScript("GMap3_GoogleAPI").SetUrl("
http://maps.googleapis.com/maps/api/js?sensor=false");
// GMap3 core
manifest.DefineScript("GMap3").SetUrl("gmap3.min.js", "gmap3.js").SetVersion("4.1").SetDependencies("jQuery", "GMap3_GoogleAPI");
In my view I do:
Script.Require("GMap3").AtHead();
Result @ output:
<script src="/Modules/AIM.GMap3/Scripts/gmap3.min.js" type="text/javascript"></script>
<!--[if lt IE 9]>
<script src="/Core/Shapes/Scripts/html5.js" type="text/javascript"></script>
<![endif]-->
<meta content="Orchard" name="generator" />
<meta content="IE=edge,chrome=1" name="X-UA-Compatible" />
<link href="/modules/orchard.themes/Content/orchard.ico" rel="shortcut icon" type="image/x-icon" />
<script src="
http://maps.googleapis.com/maps/api/js?sensor=false" type="text/javascript"></script>
Notice how it first included gmap3.min.js and THEN the dependency! This breaks our site currently..