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
MapStyler Access Control
You can control access to the MapStyler endpoint in the following ways:
Control access in source-code
void Application_Start(object sender, EventArgs e)
{
...
// Start Mapzania
Mapzania.Services.Start(this, new Options {
MapStylerAccess = Access.AllowLocal
});
AreaRegistration.RegisterAllAreas();
GlobalConfiguration.Configure(WebApiConfig.Register);
RouteConfig.RegisterRoutes(RouteTable.Routes);
BundleConfig.RegisterBundles(BundleTable.Bundles);
...
}
Control access as appSettings in web.config file
<configuration>
<appSettings>
...
<add key="Mapzania_MapStylerAccess" value="AllowLocal"/>
</appSettings>
...
</configuration>
NOTE: If both options are configured, appSettings takes precedent.
See Mapzania.Services.Start for reference documentation.