XAF - Web Map Module (Coming soon in v15.2)

XAF Team Blog
24 November 2015

With this release, we're shipping a new Map module for XAF Web apps - allowing you display business objects on different kinds of maps. The module integrates the client-side dxMap and dxVectorMap widgets from DevExtreme into ASP.NET XAF applications via specialized XAF server-side wrappers like List and Property Editors: WebMapsListEditor, WebVectorMapsListEditor and WebMapsPropertyEditor.


Primary Capabilities

While designing this module, we considered customer feedback received during the research we conducted earlier this year and also previous user requests from the Support Center and other sources. Let's take a quick look at the functionality implemented in the initial release:


1. Interactive map displays objects implementing the IMapsMarker interface using the Google Maps API or Bing Maps API:

2015-09-30_1040.png

2. Vector map displays objects implementing the IAreaInfo interface as areas with different colors:

2015-09-30_1056.png


3. Vector map displays objects implementing the IVectorMapsPieMarker interface as pie-chart markers:

2015-09-30_1059.png

You can experience a live demo of our Map module in the ListEditors | Maps section of the offline Feature Center demo that is installed with XAF or check its online version at demos.devexpress.com/xaf/featurecenter once v15.2 is officially released.


Configuration

You can configure map types via the Model Editor invoked from Visual Studio or in code:

1. Configuring WebMapsPropertyEditor for a DetailView:

2. Configuring WebVectorMapsListEditor for a ListView:

3. Customizing the underlying dxMap widget in code of a ViewController for a ListView:

using DevExpress.Persistent.Base;

namespace DevExpress.ExpressApp.Maps.Web.Controllers {

   public class MapCenterController : ObjectViewController<ListView, Store> {

       protected override void OnViewControlsCreated() {

           base.OnViewControlsCreated();

           ((WebMapsListEditor)View.Editor).MapViewer.ClientSideEvents.Customize = GetCustomizeScript();

       }

       private string GetCustomizeScript() {

           return @"function(sender, map) {

       map.option('center', 'Brooklyn Bridge,New York,NY');

                      map.option('autoAdjust', false);

    }";

       }

   }

}

===========================

We'd love to get your feedback on this new Map module and whether you are planning to use it in upcoming XAF Web apps.

8 comment(s)
James S K Makumbi
James S K Makumbi

This is INCREDIBLY AWESOME!!! It ties in PERFECTLY with a project I am currently working on. Is it in the beta?

25 November, 2015
Dennis (DevExpress Support)
Dennis (DevExpress Support)

@James: Thanks for your comments. We are also looking forward to hearing from you once you have had a real opportunity to evaluate this module for your project.

No, it is fine to use in production.

25 November, 2015
Bassam Abdelaal
Bassam Abdelaal

Im new to XAF, first XAF app Im planning to introduce to my company is a web app showing all company locations (retail shops and offices) in the country with employee contacts and phone extensions , one feature I was thinking about is to show office location using Google Maps to users, allow them to readjust location on the map and save, was wondering how to do that , this new feature here is exactly what I was looking for, thank you very much.

25 November, 2015
Dennis (DevExpress Support)
Dennis (DevExpress Support)

@Bassam: Thanks for your interest. Our FeatureCenter v15.2 demo shows off a few scenarios similar to yours, so I hope you find this demo source code helpful. Going forward, there will be detailed step-by-step tutorials and concepts documentation after the official v15.2 release in the early December. Do not hesitate to contact our support team if you experience any difficulties after looking at these learning materials.

25 November, 2015
Robert Fuchs
Robert Fuchs

That's interesting.

But there is still no map module for Winforms?

27 November, 2015
Viatcheslav Tomilin
Viatcheslav Tomilin

Thanks.

I think supporting ArcGIS JS Web API, will be very usefull.

I offer my supoort in realisation, if needed.

Robert, as far as I know, using JS libs and components do not require anyspicial licensing, in fromof 'fat" lients,like winformof WPF.

There is Free GIS software components, but, i can't look on that as apropriate XAF components.

There is (in my evaluation cririas) very chip, solid, and powerfullcomponents like ArcGIS Runtime .NET or ArcGIS Engine... but it's not free, and doesn't manadatory in typycal XAF projects.

Sorry for my ugly english )

28 November, 2015
Dennis (DevExpress Support)
Dennis (DevExpress Support)

@Robert: Yes, that's correct.

29 November, 2015
Dennis (DevExpress Support)
Dennis (DevExpress Support)

@Viatcheslav: Thanks for your suggestions!

29 November, 2015

Please login or register to post comments.