Join Gordon Luckett for an in-depth discussion in this video Using the MapGuide web viewer, part of Up and Running with MapGuide Open Source.
- View Offline
MapGuide has two main flavors of the web-based map Viewer. We will explore these two flavors and what tools come with each type. More tools than just zooming and panning are offered in both of these Viewers. First, we'll look at the basic web layout. The basic web layout is simple. It's basic. It has Layers on the left and Properties on the left and a Taskbar or a Task Pane on the right. Let's zoom in and look at this map, so I'll pick the Zoom In. I'll zoom a rectangle. And you'll see as I zoom in, more detail is available.
If I pick on a individual parcel, or I pick on several, you'll see in the Properties pane that I've picked two different parcels. I can zoom to them by clicking the Zoom button. Let's try another tool. If I right-click and choose Buffer, there's many tools in here: Measure, Buffer, Printing. Let's do Buffer. I'm going to Buffer 10 feet around those two selected parcels. I'll pick Feet of the Parcels layer. We will put it on the Buffer 1 layer.
And the buffer will be red with a 50% transparency. This is the default settings. I'll just leave them alone and click Done. A 10 foot buffer was created on the Buffer 1 layer. I can turn it off and on like that. I can select it. And now I can I can Select Within, so if I go, Select More, Select Within, I can say, "Select all the things within that Buffer." In this case, select all the Parcels, hit Done, and now all the Parcels that intersect with that Buffer, it looks like there's seven of them.
Down at the bottom, it says "7 Parcels selected," are now available. Let's look at the Fusion web layout. The Fusion web layout is a fusion between MapGuide and OpenLayers. OpenLayers gives us the ability to do much more complex and visual stunning maps. Under the External Providers, we have Google Streets, Satellite, Bing, and Open Street Map. Each of these external providers are streaming through the OpenLayers technology.
We are able to use Google, Bing, or Open Street Map to put background maps into our current map. Even if we don't have data in that area, Open Street Map, Bing, or Google will give us some context to our current maps. That's one of the big advantages to using the Fusion layout. Let's look at another advantage. We'll do a measure. Let's Zoom in. Let's click on the Measure button, and we'll start measuring, so from here to here. And from here to here to here.
You can see each segment of the line has a distance. And the center of the polygon I just drew has an area. Right now, it's using meters, but we can change the units at any time. For example, if I hit Stop measurement, we can right-click over the map, choose Options, and choose Imperial, Degrees or Metric, so now my units will be in feet. In Fusion, your layouts are much more flexible. You'll notice that the Legend, Selection, and Tasks are docked on the left, and the Overview Map is floating on the right.
If we change from Slate, which is the color we're currently using, to Aqua, you'll notice there are no docked windows. There's an Overview Map in the corner and nothing else. To see the other panes, we click View, Show Task Pane, View, Show Legend, and View, Show Selection Panel. We can move these widgets around, minimize them, or close them at will. This is the advantage of using the Fusion layout versus the basic AJAX one. For those who are familiar with online mapping, MapGuide offers a robust and far more inclusive array of tools for the end user.
Buffers, selecting within a boundary, and detailed measurements can all be accomplished right out of the box using both Viewers in MapGuide Open Source.
- Installing MapGuide
- Connecting to data with Maestro
- Loading data with Maestro
- Creating and labeling layers
- Building maps and basic web layouts
- Creating application definitions
- Publishing your MapGuide projects