cancel
Showing results for 
Search instead for 
Did you mean: 

Map Providers in sap.ui.vbm.GeoMap

parconcb
Explorer
0 Kudos

Hi,

how do you set Map Providers in GeoMap Control?

When using VBI we did it like this:

                             {

                               "type" : "",
                               "name" : "BING",
                               "description" : "Bing",
                               "tileX" : "256",
                               "tileY" : "256",
                               "minLOD" : "0",
                               "maxLOD" : "19",
                               "copyright" : "Microsoft Corp.",
                               "Source" : [{
                                   "id" : "1",
                                   "url" : "http://ecn.t0.tiles.virtualearth.net/tiles/r{QUAD}?g=685&mkt=de-de&lbl=l1&stl=h&shading=hill&n=z"
                                 }, {
                                   "id" : "2",
                                   "url" : "http://ecn.t1.tiles.virtualearth.net/tiles/r{QUAD}?g=685&mkt=de-de&lbl=l1&stl=h&shading=hill&n=z"
                                 }, {
                                   "id" : "3",
                                   "url" : "http://ecn.t2.tiles.virtualearth.net/tiles/r{QUAD}?g=685&mkt=de-de&lbl=l1&stl=h&shading=hill&n=z"
                                 }, {
                                   "id" : "4",
                                   "url" : "http://ecn.t3.tiles.virtualearth.net/tiles/r{QUAD}?g=685&mkt=de-de&lbl=l1&stl=h&shading=hill&n=z"
                                 }
                               ]
                             }


How is it done in geomap?


I tried the following methods:

oVBI.m_VBIContext.m_MapProviders.Add()

oVBI.setMapConfiguration()

oVBI.UpdateMapProviders()


but i didnt get it working.



I hope there will be more docu/samples for GeoMap Control soon.

I also need docu/samples regarding GeoMap Drag&Drop / Config.

And i was wondering if it is generally possible to use the Lasso Selection like in the native VB 2.1 Control?


Thank you for any help.


Kind Regards

Christian



Accepted Solutions (1)

Accepted Solutions (1)

former_member182119
Active Participant
0 Kudos

Hello Christian,

Sorry that this part is not documented at all. It is possible to overwrite the default built in map configuration by bassing the following object structure to the mapConfiguration property (sample):

{       "MapProvider":
        [      
            {  "name": "MAPQUEST",
               "type": "",
               "description": "",
               "tileX": "256",
               "tileY": "256",                               
               "maxLOD": "19",
               "copyright": "Tiles Courtesy of MapQuest © OpenStreetMap under ODbL v1.0",
               "Source":                                 
               [      
                    { "id": "s1", "url": "http://otile1.mqcdn.com/tiles/1.0.0/map/{LOD}/{X}/{Y}.png" },            
                    { "id": "s2", "url": "http://otile2.mqcdn.com/tiles/1.0.0/map/{LOD}/{X}/{Y}.png" }
               ]                             
            },                             
            {             other...          }
        ],              
       "MapLayerStacks":        
       [          
           {  "name": "Default",
              "MapLayer":                                 
              [                             
                  {  "name": "layer1",
                     "refMapProvider": "MAPQUEST",
                     "opacity": "1.0",
                     "colBkgnd": "RGB(255,255,255)"
                  },
                  {                   other...                }
               ]                            
            },                    
            {             other...          }
       ] 
} 

The format is equal to the the one described here in more detail.

There are two further restrictions:

  • the mapConfiguration property needs to be set before the first rendering of the control
  • The name of the MapLayerStack needs to be "Default".

Cheers Uwe

parconcb
Explorer
0 Kudos

Thanks Uwe for your help!

Maybe you can give me another hint what i am doing wrong?


<!DOCTYPE HTML>

<html data-sap-ui-dk-category="Controls/VisualBusiness" data-sap-ui-dk-controls="sap.ui.vbm.GeoMap">

<head>

<meta http-equiv="X-UA-Compatible" content="IE=edge">

<meta http-equiv='Content-Type' content='text/html;charset=UTF-8'/>

<style></style>

<script id="sap-ui-bootstrap"

src="https://sapui5.netweaver.ondemand.com/sdk/resources/sap-ui-core.js"

data-sap-ui-theme="sap_bluecrystal"

data-sap-ui-libs="sap.ui.commons,sap.ui.table,sap.ui.vbm"></script>

<script id="Elements">

// sample event handlers

function onClickSpot( evt )

{

// click on spot

alert( "onClickSpot " + evt.getSource().getBindingContext().getProperty( "tooltip" ) );

};

function onContextMenuSpot( evt )

{

// click on spot

alert( "onContextMenuSpot" + evt.getSource().getBindingContext().getProperty( "tooltip" ) );

};

function onClickSpots( evt )

{

// click on spot

alert( "onClickSpots" );

};

function onContextMenuSpots( evt )

{

// click on spot

alert( "onContextMenuSpots" );

};

function onClickItem( evt )

{

// click on item

alert( "onClick " + this );

};

function onContextMenuItem( evt )

{

// context menu on item

alert( "onContextMenu " + this );

};

// create analytic map and bind to model

function vbi_width(){

return document.documentElement.clientWidth - 15;

}

function vbi_height(){

return document.documentElement.clientHeight - 40;

}

var conf = { "MapProviders" : {

"Set" : {

"MapProvider" : [

{

"type" : "",

"name" : "BING",

"description" : "Bing",

"tileX" : "256",

"tileY" : "256",

"minLOD" : "0",

"maxLOD" : "19",

"copyright" : "Microsoft Corp.",

"Source" : [{

"id" : "1",

"url" : "http://ecn.t0.tiles.virtualearth.net/tiles/r{QUAD}?g=685&mkt=de-de&lbl=l1&stl=h&shading=hill&n=z"

}, {

"id" : "2",

"url" : "http://ecn.t1.tiles.virtualearth.net/tiles/r{QUAD}?g=685&mkt=de-de&lbl=l1&stl=h&shading=hill&n=z"

}, {

"id" : "3",

"url" : "http://ecn.t2.tiles.virtualearth.net/tiles/r{QUAD}?g=685&mkt=de-de&lbl=l1&stl=h&shading=hill&n=z"

}, {

"id" : "4",

"url" : "http://ecn.t3.tiles.virtualearth.net/tiles/r{QUAD}?g=685&mkt=de-de&lbl=l1&stl=h&shading=hill&n=z"

}

]

}

]

}

},

"MapLayerStacks":

[

{  "name": "Default",

"MapLayer":

[

{  "name": "layer1",

"refMapProvider": "BING",

"opacity": "1.0",

"colBkgnd": "RGB(255,255,255)"

}

]

}

]

};

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

width : vbi_width(),

height: vbi_height(),

resources: [

                    new sap.ui.vbm.Resource( "pin_blue.png",

                      { "value": "iVBORw0KGgoAAAANSUhEUgAAACQAAAAuCAYAAABAm7v+AAAABGdBTUEAALGOfPtRkwAAACBjSFJNAACHDwAAjA8AAP1SAACBQAAAfXkAAOmLAAA85QAAGcxzPIV3AAAKOWlDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAEjHnZZ3VFTXFofPvXd6oc0wAlKG3rvAANJ7k15FYZgZYCgDDjM0sSGiAhFFRJoiSFDEgNFQJFZEsRAUVLAHJAgoMRhFVCxvRtaLrqy89/Ly++Osb+2z97n77L3PWhcAkqcvl5cGSwGQyhPwgzyc6RGRUXTsAIABH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spots( "spots1", {

click: onClickSpots,

contextMenu: onContextMenuSpot,

// bind to an array in the model

items: {

path : "/Spots",

template: new sap.ui.vbm.Spot(  { text: '{key}', position: '{pos}', tooltip: '{tooltip}', image: '{pin}', click: onClickSpot, contextMenu: onContextMenuSpot }  )

}

}),

new sap.ui.vbm.Circles( "circles", {

click: onClickItem.bind("Circles onClickItem" ),

contextMenu: onContextMenuItem.bind( "Circles onContextMenuItem" ),

// bind to an array in the model

items: {

path : "/Circles",

template: new sap.ui.vbm.Circle(  { position: '{pos}', tooltip: '{tooltip}', color: 'RGB(0,0,120)', colorBorder: 'RGB(0,0,255)', click: onClickItem.bind( "Circle"),  contextMenu: onContextMenuItem.bind( "Circle" ) } )

}

}),

new sap.ui.vbm.GeoCircles( "geocircles", {

click: onClickItem.bind("GeoCircles onClickItem" ),

contextMenu: onContextMenuItem.bind( "GeoCircles onContextMenuItem" ),

// explicitly specify

items:  []

}),

// single instance item

new sap.ui.vbm.Routes( "routes", {

click: onClickItem.bind("Routes onClickItem" ),

contextMenu: onContextMenuItem.bind( "Routes onContextMenuItem" ),

// explicitly specified

items:  []

}),

// single instance item

new sap.ui.vbm.Areas("areas", {

click: onClickItem.bind("Areas onClickItem"),

contextMenu: onContextMenuItem.bind("Areas onContextMenuItem"),

// explicitly specified

items: []

}),

// single instance item

new sap.ui.vbm.Boxes("boxes", {

click: onClickItem.bind("Boxes onClickItem"),

contextMenu: onContextMenuItem.bind("Boxes onContextMenuItem"),

// explicitly specified

items: []

}),

// single instance item

new sap.ui.vbm.Pies("pies", {

click: onClickItem.bind("Pies onClickItem"),

contextMenu: onContextMenuItem.bind("Pies onContextMenuItem"),

// explicitly specified

items: []

})

],

mapConfiguration: conf

});

window.onresize = function(event) {

var offset = document.documentElement.clientWidth - 15;

$("#vbi-content").width(offset + 'px');

$("#vbi-main").width(offset + 'px');

offset = document.documentElement.clientHeight - 40;

$("#vbi-content").height(offset + 'px');

$("#vbi-main").height(offset + 'px');

};

oVBI.placeAt("vbi-content");

var myspot = new sap.ui.vbm.Spot({

text: '',

position: '8.54452 ;50.10087 ;0',

tooltip: '\x20DEPOT:\r\n\x201000,\x20FRANKFURT\n\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n\x20Hostatostraße\x2025\n\x20DE\x2065929\x20Frankfurt am Main',

image: 'pin_blue.png',

click: onClickSpot,

contextMenu: onContextMenuSpot });

$.grep(oVBI.getVos(),function(e){ return e.sId == 'spots1' })[0].addItem(myspot)

oVBI.getVos( );

</script>

</head>

<body class='sapUiBody'>

<div id="vbi-content" style="top: 1px; bottom 1px; left: 1px; right: 1px"></div>

</body>

</html>

Kind Regards

Christian

former_member182119
Active Participant
0 Kudos

Hello Christian,

The difference between your code and the example I gave the "MapProviders.Set". You have to omit it! You simple pass an array of MapProvider and one of MapLayerStacks.

Best regards,

Uwe

Answers (1)

Answers (1)

parconcb
Explorer
0 Kudos

Thank you Uwe!

Switching the provider works now.

How do i set up further Initial Config?

Do i have to use the json config string like in vbi as well?

I want to set the Initial Geo Position and Events for Drag&Drop.

At the moment i managed to set the start position with the following code during onLoad Event.

But this is not very smooth. Do i have the possibility to set the initial zoom during instantiation of the GeoMap?


window.setTimeout("oVBI.zoomToGeoPosition('-75.0363725','41.0489995', 8);",1);

And one further question:

Is it possible to install the sapui5 library (including vbi) into the mime repository of an older sap release?

Kind Regards

Christian

former_member182119
Active Participant
0 Kudos

Hello Christian,

Setting the initial position and zoom will be supported with 1.28.4. Drag and Drop support in GeoMap is a topic for the next release.

Cheers Uwe

former_member197827
Participant
0 Kudos

Hi Uwe Reimitz,

Can you Please help me on the issue relared to geomaps? below is the thred which is yet to be resolved

Thanks and Regards,

Sagar M Patil