Skip to Content
Author's profile photo Uwe Reimitz

New release 1.26 introduces GeoMap control

Today we are pleased to announce the release of version 1.26 of the VBM library shipped as part of SAPUI5!

With this version we introduce the GeoMap control, which aims to hide the complexity of the JSON interface of the VBI control.

Using the GeoMap control you declare Visual Objects in the usual SAPUI5 syntax as aggregations including model binding support:

var oVBI = new sap.ui.vbm.GeoMap(‘vbi’, {

    width : “100%”,

    height: 512,

    vos: [ new sap.ui.vbm.Spots( “spots1”, {

                             items: { path : “/Spots”,

                                          template: new sap.ui.vbm.Spot(  {

                                                            text: ‘{key}’,

                                                            position: ‘{pos}’,

                                                            tooltip: ‘{tooltip}’,

                                                            image: ‘{pin}’,

                             }  )

            } } ) ]

    });

You find an editable example in the 1.26 SAPUI5 SDK – Demo Kit. This sample uses a simple JSON model, which you may edit on the fly. Of cause the control works also with other model, e.g. oData models.

The first version does not yet support all features of the VBI control, but we work hard to catch up. We hope the new control will ease the use of Visual Business in the UI5 environment.

Assigned Tags

      14 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Former Member
      Former Member

      Hi experts,

      can I use a xml model instead of a json model?

      Best regards,

      Thomas

      Author's profile photo Uwe Reimitz
      Uwe Reimitz
      Blog Post Author

      Hi Thomas,

      I am not 100% sure what you refer to, but I guess the anser is Yes. You can use the control also on XML views (https://sapui5.netweaver.ondemand.com/sdk/explored.html#/sample/sap.ui.vbm.sample.GeoMapBasic/code).

      Further I am pretty sure you can use a XML model (sap.ui.model.xml.XMLModel) instead of a JSON model for binding.

      Cheers,

      Uwe

      Author's profile photo Former Member
      Former Member

      Hi ,

      I saw that the map example in  SAPUI5 EXPLORED is configured  to OPEN street map by http

      requests such as ==>  http://otile3.mqcdn.com/tiles/1.0.0/map/2/1/2.png

      Is there any option to download the map sets and not depend on an external source ?

      Thanks,

      Arie.

      Author's profile photo Ralf Rath
      Ralf Rath

      In principle this is possible. Visual Business needs 

      1. A rest service
      2. A quad key interface

      to access the maps.   

      You have to download the tiles and store them on a webserver.

      Then you can change the URL scheme to the new server address.

      see here http://scn.sap.com/docs/DOC-56943

      and here http://scn.sap.com/docs/DOC-43251 for a more general article (ABAP only)

      We also implemented a service for retrieving the settings from the backend in a
      UI5 application. Please drop us a note then we can publish the details.

      Author's profile photo Former Member
      Former Member

      Hi ,

      Thanks.

      Where can i download the tiles ?

      Is it going to be embedded in the next versions so we can use it localy ( off line) ?

      What do you mean by a note  ?  To open OSS with the above detail?

      Author's profile photo Ralf Rath
      Ralf Rath

      I meant that your have to download the tiles and store them on your own web server.

      This works with the current version.

      sorry for the confusion with the note - just reply and mention it here.

      Author's profile photo Former Member
      Former Member

      Thanks.

      Where can i download the tiles ?

      I found openstreep 43 GB map ==>  http://planet.openstreetmap.org/

      This one ?

      Author's profile photo Ralf Rath
      Ralf Rath

      yes, this is possible. In principle every map provider can allow this in their terms and conditions but you to check and then you have to download the images.

      Author's profile photo Uwe Reimitz
      Uwe Reimitz
      Blog Post Author

      Hi Arie,

      I think under the source you mentioned you can download the source DB with the vector information, but not the rendered tiles/images. This would be much more data. Therefore I think the only suitable approach when download tiles is to either restrict the zoom level, e.g. to LOD 5 = 1024 tiles vs. LOD 10 = 1048576 tiles, or the map section.

      Cheers Uwe    

      Author's profile photo Former Member
      Former Member

      Thanks Uwe ,

      I reviewed several geo map sites and didn't find any option to download the images.

      Did you ever downloaded the pictures/ tiles  ?

      Regards,

      Arie.

      Author's profile photo Uwe Reimitz
      Uwe Reimitz
      Blog Post Author

      Hi Arie,

      No I never tried this so far, but I found e.g. this http://wiki.openstreetmap.org/wiki/OSMtiledownloader with Google. I guess there are many more.

      Cheers Uwe

      Author's profile photo Former Member
      Former Member

      Hi Uwe,

      I couldn't find any sources to download the tiles.

      Do you know if in the future versions the tiles will be part of the library sources ?

      Thanks,

      Arie.

      Author's profile photo Wolfgang Röckelein
      Wolfgang Röckelein

      You can install a tile renderer (eg TileMill | Mapbox) and generate the tiles. Raw OSM data comes eg. from http://download.geofabrik.de/

      Author's profile photo Former Member
      Former Member

      Hello Uwe,

      I am using webide on HCP (trial version) and when i try to inlcude geomap from controls tab. In properties i am not seeing map configuration. All other properties i am able to see. 
      Is it becuase of the trial version or something i am missing?

      Thanks for your help