Enhance Configuration file functionality
Hi
It would be useful to be able add additional capability to the config file when you make changes. An example would be where you want to allow the use to click on results and rather than just pan to a feature it zooms in. So the following:
{
"name": "CoordinateListItemClickedBehavior",
"commands": [
"ClearDefaultHighlights",
"PanToFeature",
"HighlightFeatureDefault"
]
}
...would be changed to (which works fine):
{
"name": "CoordinateListItemClickedBehavior",
"commands": [
"ClearDefaultHighlights",
"ZoomToFeature",
"HighlightFeatureDefault"
]
}
But the additional bit would be to add a ZoomToScale, so the config would look like this (which isnt supported):
{
"name": "CoordinateListItemClickedBehavior",
"commands": [
"ClearDefaultHighlights",
"ZoomToFeature",
"ZoomToScale":100,
"HighlightFeatureDefault"
]
}
Concatenating other commands could create some powerful user experiences.
Thanks
Doug
It would be useful to be able add additional capability to the config file when you make changes. An example would be where you want to allow the use to click on results and rather than just pan to a feature it zooms in. So the following:
{
"name": "CoordinateListItemClickedBehavior",
"commands": [
"ClearDefaultHighlights",
"PanToFeature",
"HighlightFeatureDefault"
]
}
...would be changed to (which works fine):
{
"name": "CoordinateListItemClickedBehavior",
"commands": [
"ClearDefaultHighlights",
"ZoomToFeature",
"HighlightFeatureDefault"
]
}
But the additional bit would be to add a ZoomToScale, so the config would look like this (which isnt supported):
{
"name": "CoordinateListItemClickedBehavior",
"commands": [
"ClearDefaultHighlights",
"ZoomToFeature",
"ZoomToScale":100,
"HighlightFeatureDefault"
]
}
Concatenating other commands could create some powerful user experiences.
Thanks
Doug
1
Du måste logga in om du vill lämna en kommentar.
Kommentarer
0 kommentarer