User Manual
Concepts
Get Started
- Pre-Requisites
- Install the NuGet Package
- Obtain Leaflet
- Obtain a License
- Initialize Mapzania
- Initialize Endpoints
- Adding a JavaScript Reference
- Add a Map to a Web Page
- Add Data to a Map
- Style a Map
- Further Reading
JavaScript Client
- Introduction
- Creating a Map Object
- Customize the Map Toolbar
- Map Events
- Mouse and Drawing Behaviour
- Map Extents
- Refresh/Reset the Map
- Working with Layers
- Displaying Layers
- Working with Layer Data
- Styling Layers
- Transforming Layers
- Working with Features
- Displaying Features
- Styling Features
- Working with the QueryEngine
DotNet Server
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:
<head>
...
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.12.3/jquery.min.js"></script>
<script src="mz/scripts/js"></script>
...
</head>