User Manual

Adding a JavaScript Reference

Each Mapzania NuGet package includes its corresponding JavaScript resources embedded in mapzania.dll.

The benefit of this is that the Mapzania NuGet package with its binaries and the Mapzania JavaScript library are always in sync.

As a result of this, the JavaScript resources are served as WebApi endpoints.

See the REST Documentation documentation for more details on:

  • GET [ROOT]/scripts/js
  • GET [ROOT]/scripts/jsmin

To include a reference to the JavaScript endpoint, add a reference to your page as per the highlighted code in the example below:

	<script src=""></script>
	<script src="mz/scripts/js"></script>