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
Add Data to a Map
When the map is up and running and displays a background of the center of London, it is possible to add custom data to the map.
To add custom data:
- Create a folder inside the App_Data folder of your solution and call it Mapzania_Data.
- Download this zipped file: London_Attractions.zip. This file contains a set of ESRI Shapefiles for a number of tourist attractions around the London city center.
- Extract these files inside the Mapzania_Data folder that you created earlier.
- Restart/rebuild your application.
- If you navigate to this link: http://[your site]/mz/sources, you will see the layer-sources that you have just added as well as one for the build-in Open Street Map (OSM) tiles.
- You can now use these layer-sources as data for your map layers when styling your map (see next section).
HOW IT WORKS: When valid layer-source files are added to the Mapzania_Data folder, they are automatically detected when your application starts up and added as new layer-sources that are available for you to use.