Autodesk MapGuide Enterprise Developer
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
Bing Maps Mobile Viewer
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Hi
I work with AIMS2012 and installed mobile viewer. Now I can display the map (sdf files) but base layers for example Google Maps or Bing Maps are not visible. How or where can I define what base layers are visible in the mobile viewer?
Best and thx
Solved! Go to Solution.
Re: Bing Maps Mobile Viewer
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
I did take a look at the Mobile Viewer when AIMS 2012 was in beta, and the documentation at that point stated that if you want to show commerical layer types, you pass in the layer types through the baselayers query string parameter, and a dot-separated list of layer types
baselayers=[osm.[google.[yahoo.[bing]]]]
I don't know if this has changed for the final release.
- Jackie
Re: Bing Maps Mobile Viewer
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Hi Jackie
Below you can find the code from the index.html file (method initializeMobileViewer). The main problem is that I don't know where and how I have to set the variable baseLayers = 1.
var baseLayers = mobileViewer.getQueryParam('baselayers');
if(baseLayers != null)
{
baseLayers = baseLayers.toLowerCase();
if(baseLayers.indexOf('google') != -1)
{
options.googleAPIKey = 'ABQIAAAATNYJBHVIVaSq5AtEw2iEHxSJCEhdEXSl6Vs0dgfLr
}
if(baseLayers.indexOf('bing') != -1)
{
options.bingAPI = 'true';
}
if(baseLayers.indexOf('yahoo') != -1)
{
options.yahooAPIKey = 'XnPi3lbV34HwYXZ3h3peTvVs.dGoQtkMv1f.v9ztVLy9VWbzq
}
if(baseLayers.indexOf('osm') != -1)
{
options.osmAPI = "true";
}
}
Thx
Re: Bing Maps Mobile Viewer
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
You don't.
You pass that parameter as part of the URL like so:
index.html?baselayers=[osm.[google.[yahoo.[bing]]]
- Jackie
