vos: [
new sap.ui.vbm.Spots({
//click: onClickSpots,
//contextMenu: onContextMenuSpot,
// bind to an array in the model
items: {
path : "/data",
template: new sap.ui.vbm.Spot({
position: '{Coordinates}',
tooltip: '{CardName}',
image: 'pin_blue.png',
})
}
}),
]
var oGoogleModel = new sap.ui.model.json.JSONModel('https://maps.googleapis.com/maps/api/geocode/json?address='+address+'&key='+key);
oGoogleModel.attachRequestCompleted(oModel,function(oEventG){
var oModelG = oEventG.getSource();
var data = oModelG.getData().results[0].geometry.location;
// After this coordinates are stored in data.lng and data.lat
});
Alejandro Fonseca
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
8 | |
6 | |
5 | |
5 | |
4 | |
4 | |
4 | |
3 | |
3 | |
3 |