FAQ¶
Which .NET versions does Web Maps support?¶
ThinkGeo.UI.Blazor runs on .NET 8 or later. ThinkGeo.UI.WebApi runs on .NET 8 or later and on .NET Framework 4.6.2 or later.
Blazor or WebAPI?¶
| Choose | When |
|---|---|
| Blazor | Your application is a Blazor app and you want the map as a component, written in C#. It runs on Blazor Server, WebAssembly and Auto. |
| WebAPI | You want a map service: your data as vector or raster tiles that any page or framework can show, with MapLibre, Leaflet or OpenLayers. |
The quick start builds both, side by side.
Which IDE do I need?¶
Visual Studio, or any editor with the .NET SDK installed; the quick start has the dotnet commands.
Can the server run Linux or Docker?¶
Yes. A service that serves vector tiles needs nothing installed; drawing on the server needs fontconfig, and some formats need their Linux packages. The Deployment Guide has the details and a Dockerfile.
How is it licensed, and can I try it first?¶
The first build on a machine starts a free 30-day trial, with a watermark on Blazor maps and on the images WebAPI draws on the server. A license key from helpdesk.thinkgeo.com removes the watermark, and the servers you deploy to need nothing installed or activated. The License Guide for ThinkGeo 15 has the details.
Can the map run entirely in the browser?¶
Yes, with Blazor WebAssembly: the same MapView and overlays run in the browser, and the app downloads its data instead of reading it on a server. Some formats need a server; see Supported Data Formats. The Blazor WebAssembly guide builds such a map, and says what to keep out of the browser, such as credentials.
What map data can I use?¶
ThinkGeo Cloud or any tile service for the basemap, and shapefiles, databases, rasters, tile archives and web services for your own data. Supported Data Formats lists them.
How do I upgrade a Blazor app from ThinkGeo 14 to 15?¶
Use these steps for the Blazor host and any WebAssembly client project that references ThinkGeo.UI.Blazor. Keep the existing application structure; moving to a new Blazor Web App template is not required just to upgrade the package.
- Update the packages and target framework. Use .NET 8 or later and update
ThinkGeo.UI.Blazorand any directly referenced ThinkGeo packages to compatible 15.x versions. Resolve build errors and obsolete warnings using the 15.0.0 upgrade notes, which also cover changes in ThinkGeo.Core. - Remove any old ThinkGeo CDN references. If the application still uses the old CDN setup, in the host document (
_Host.cshtml,wwwroot/index.html, orComponents/App.razor, depending on the application), remove the ThinkGeo script and stylesheet references whose URLs begin withhttps://cdn.thinkgeo.com/blazor/1.0.0/. ThinkGeo 15 loads its own JavaScript and CSS from the NuGet package under_content/ThinkGeo.UI.Blazor/. Do not replace those old tags with manually maintained tags for individual package files. Keep the framework's Blazor startup script and the application's own styles. - Check static assets and interactivity. Keep the host's static web asset serving configuration. In a Blazor Web App, use an interactive render mode for the page or its parent; static server rendering alone cannot run the map. On a static WebAssembly host, ensure
.mjsfiles are served as JavaScript (text/javascript). When testing, check the browser's Network panel for failed requests under_content/ThinkGeo.UI.Blazor/; a missing loader or a wrong MIME type prevents the map from starting. - Review rendering changes before changing layers.
MapView.Rendererdefaults toMapViewRenderer.Auto, which can select MapLibre for Web Mercator maps. To retain the OpenLayers renderer while checking an existing map, setRenderer="MapViewRenderer.OpenLayers". Existing classicLayerOverlaylayers andZoomLevelSetstyles remain supported; converting them to vector tiles is optional. To adopt the vector-tile path, useVectorTileOverlaywithFeatureSourcesand a style document as shown in the quick start. Review Classic Rendering for the classic path. - Review application-specific code. Read
MapView.ActualWidthandActualHeightfor measured pixel dimensions instead of assumingWidthandHeightcontain those measurements. For custom overlays, put setup and cleanup inInitializeAsyncCore()andReleaseAsyncCore(); the public lifecycle methods also coordinate initialization and disposal. Check handlers and custom components against the upgrade notes. - Move to ThinkGeo 15 licensing. Product Center activation and ThinkGeo 14 runtime license files are no longer the licensing mechanism. Follow the ThinkGeo 15 License Guide to place the Web developer key on the build machine, or configure it for CI. Build again; deployed servers need no license activation. A ThinkGeo Cloud API key used for basemap requests is separate and is still needed when the basemap uses it.
After upgrading, build and run the app, check map loading, pan and zoom, layers, markers and popups, and inspect the browser console for errors. Publish and test using the actual deployment host as well, especially for static WebAssembly hosting and applications deployed under a URL subpath.
Where do I find samples and help?¶
- The How Do I samples show, one small sample at a time, most of what Blazor and WebAPI can do.
- The Blazor guides explain the
MapViewcomponent, overlays, events, markers and popups, vector tiles and WebAssembly. - The community forum is where to search earlier questions or ask your own.
- Support tickets go through helpdesk.thinkgeo.com.
- For licensing and purchasing questions, see the FAQ on thinkgeo.com or email sales@thinkgeo.com.