FPM - Add Custom Action - GeoMap - InitialPosition not working
@navinkrishnan is already working on this.
Since Aug 5, 2025.
Assessment
This issue has not been assessed yet.
Description
Hi,
in the FPM Add Custom Action content in the GeoMap fragment there is a data binding for initialPosition property which is not working as expected. Initial position is always set to 0;0;0.
<core:FragmentDefinition
xmlns:core="sap.ui.core"
xmlns="sap.m"
xmlns:macros="sap.fe.macros"
xmlns:vbm="sap.ui.vbm"
>
<Dialog id="_IDGenDialog" title="Location">
<VBox id="_IDGenVBox">
<vbm:GeoMap
id="Map"
mapConfiguration='{
"MapProvider": [{
"name": "Openstreetmap",
"copyright": "<b><a href=\"http://www.openstreetmap.org/copyright\">© openstreetmap</a></b>",
"Source": [{
"id": "s1",
"url": "http://a.tile.openstreetmap.org/{LOD}/{X}/{Y}.png"
}, {
"id": "s2",
"url": "http://b.tile.openstreetmap.org/{LOD}/{X}/{Y}.png"
}, {
"id": "s3",
"url": "http://c.tile.openstreetmap.org/{LOD}/{X}/{Y}.png"
}]
}],
"MapLayerStacks": [{
"name": "DEFAULT",
"MapLayer": {
"name": "layer1",
"refMapProvider": "Openstreetmap",
"opacity": "1",
"colBkgnd": "RGB(255,255,255)"
}
}]
}'
refMapLayerStack="DEFAULT"
initialZoom="10"
initialPosition="{customer/pos}"
>
<vbm:Spots id="_IDGenSpots">
<vbm:Spot id="_IDGenSpot"
position="{customer/pos}"
tooltip="{customer/name}"
type="Success"
/>
</vbm:Spots>
</vbm:GeoMap>
</VBox>
<endButton>
<Button id="_IDGenButton" text="Close" press=".closeDialog" />
</endButton>
</Dialog>
</core:FragmentDefinition>
UI5 Docs say InitialPosition can only be set during initialization. So i think it wont work with data binding.
- Dominant language
- No language data
- Stars
- 100
- Forks
- 41
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from SAP-samples/btp-developer-guide-cap
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
-
Difficulty 3/5 1-2 days Newbie friendliness 48/100
-
Difficulty 4/5 3-5 days Newbie friendliness 42/100
SAP-samples/btp-developer-guide-cap#135 · 1 comment ·