TechTalk Jackie Ng Zero to Bing in 60 seconds: Give your MapGuide maps real-world context with commercial map layers

Bloggers

Jackie Ng
"Jackie Ng has not set their biography yet"
Jonathan Hardiman
"Jonathan Hardiman has not set their biography yet"
Jarrod Mudford
"Manufacturing & Process and Power Plants"
Darcy Farrar
"Structural Solutions and BIM Management"
Mike Bronson
"Mike Bronson has not set their biography yet"
Shane Brown
"Shane Brown has not set their biography yet"
Panteha Niknafs
"Panteha Niknafs has not set their biography yet"
Clay Perkins
"Clay Perkins has not set their biography yet"
Alex Varas
"Alex Varas has not set their biography yet"
Scott Isouard
"Scott Isouard has not set their biography yet"
Scott Gallacher
"Scott Gallacher has not set their biography yet"
Paul Elstone
"Paul Elstone has not set their biography yet"
Christian Theis
"Christian Theis has not set their biography yet"
Zarko Grncarevski
"Zarko Grncarevski has not set their biography yet"
Marcel van Oosterom
"Marcel van Oosterom has not set their biography ye..."
Jay Joshi
"Civil & Geospatial"
Dean Petersen
"Senior Civil & Geospatial"
Guy Penfold
"Guy Penfold has not set their biography yet"
Jason Mainwaring
"Jason Mainwaring has not set their biography yet"
Sean Twomey
"Technical Director"
Administrator
"Administrator has not set their biography yet"

Blogger login



Zero to Bing in 60 seconds: Give your MapGuide maps real-world context with commercial map layers

By Jackie Ng on
Jackie Ng
Jackie Ng has not set their biography yet
User is currently offline
Sep 16 in Civil, Survey & Geospatial 1 Comment

mapguide_PreviewOne of the new features in Autodesk MapGuide Enterprise 2011 is the ability to underlay your existing maps with layers from Google/Yahoo/Bing Maps. This technique was possible in Autodesk MapGuide Enterprise 2010, but required lots of manual setup and hacking around for it to work. With the 2011 release, support for doing this is built right into the MapGuide Studio user interface, making this process much simpler.

Before we proceed, ensure that your existing map definition only contains layers that use coordinate systems based on the real world. Arbitrary XY coordinate systems will not work here.

Also this feature can only be used with Fusion-based Flexible Layouts. This feature is not available with the basic AJAX viewer Web Layout.

The first thing to do is to make sure your map is in the correct coordinate system. To change your map definition’s coordinate system, open it with the Map Editor and click the button beside the Coordinate System field.

mapguide01

Google/Yahoo/Bing maps use a special coordinate system, which your MapGuide Map Definition also has to be in. The coordinate system in question is the Popular Visualisation CRS / Mercator. The code for this coordinate system is WGS84.PseudoMercator. Unfortunately, the coordinate system browser in MapGuide Studio is not the same as the one in AutoCAD Map3D, so here’s a screenshot of the coordinate system in question.

mapguide02

Once you have changed the coordinate system, save it. It doesn’t matter that your map may have layers that are in different coordinate systems, MapGuide will re-project your layers on-the-fly so that all the layers will correctly line up.

Having said that, on-the-fly re-projection of layers does incur a minor performance penalty. So if possible, make sure your source data is already in the WGS84.PseudoMercator coordinate system. AutoCAD Map3D and AutoCAD Civil3D have the tools to produce/export geospatial data into this coordinate system.

Now create a new Flexible Layout. Add your modified map definition to this layout.

mapguide03

Now if you scroll down, you’ll notice some new options.

mapguide04

What previously required lots of hacking of XML and HTML documents can now be done with a tick of the few boxes.
In here, simply choose the commercial map provider you wish to use. Note that for Google Maps and Yahoo Maps, they require valid API keys in order to use their services. Signing up for an API key is free, but you are bound by Google and Yahoo’s respective terms of usage. As you can no doubt see from the user interface, Bing does not require API keys.
Save your Flexible Layout. Your map which would’ve looked like this:

mapguide05

Now looks like this:

mapguide06

With a small tweak of the Map Definition and ticking of a few boxes in our Flexible Layout, we now have a MapGuide map overlaid on top of Google/Yahoo/Bing maps.

Tags: Mapguide, Map 3D
Hits: 2411

About the author

Trackbacks

Trackback URL for this blog entry
  • Socialize and Promote on meengle.net

    by Socialize and Promote on meengle.net on Tuesday, 30 November 1999
    AEC Systems - Zero to Bing in 60 seconds: Give your MapGuide maps real-world context with commercial map layers - Knowledge BLOG ...
  • buy articles

    by buy articles on Tuesday, 30 November 1999
    AEC Systems - Zero to Bing in 60 seconds: Give your MapGuide maps real-world context with commercial map layers - Knowledge BLOG ...
  • site submission

    by site submission on Tuesday, 30 November 1999
    AEC Systems - Zero to Bing in 60 seconds: Give your MapGuide maps real-world context with commercial map layers - Knowledge BLOG ...

Comments

Sean Twomey
Sean Twomey
Technical Director
User is currently offline
Sean Twomey Thursday, 16 September 2010 Reply

I like this a lot - it brings some serious data into Mapguide...

Leave your comment

Guest
Guest Friday, 18 May 2012