Focal Point
[CLOSED] default extent/zoom/center for maps

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/7527027396

June 23, 2020, 02:23 PM
Shingles
[CLOSED] default extent/zoom/center for maps
Hello All,

Hope you are enjoying Summit. I'm on it, but plugging away on a few things too.

I have a map that displays fine...

GRAPH FILE
...
ON GRAPH PCHOLD FORMAT JSCHART
ON GRAPH SET VZERO OFF
ON GRAPH SET HAXIS 1008.0
ON GRAPH SET VAXIS 768.0
ON GRAPH SET LOOKGRAPH BUBBLEMAP
ON GRAPH SET EMBEDHEADING ON
ON GRAPH SET AUTOFIT ON
...
*GRAPH_SCRIPT

*GRAPH_JS_FINAL

"chartFrame": {
    "border": {
        "width": 1.0
    }
},
"extensions": {
    "com.esri.map": {
        "overlayLayers":             [
                {
                    "ibiDataLayer": {
                        "map-geometry": {
                            "map_by_field": "CARS"
                        }
                    }
                }
            ],
        "baseMapInfo": {
            "customBaseMaps":                 [
                    {
                        "ibiBaseLayer": "dark-gray"
                    }
                ]
        }
    }
},
"matrixProperties": {
    "cellBorder": {
        "width": 1.0
    }
},
"pieProperties": {
    "holeSize": "0%"
},
"fill": {
    "color": "rgba(0, 0, 0, 1)"
},
"agnosticSettings": {
    "chartTypeFullName": "Bubblemap"
}
*END
ENDSTYLE
END


It displays fine most of the time (the extent of the map is correct), but when only one point is displayed on the map, the default extent of the map is the whole world. How can I make it so zooms to the one dot?

Thank you!

This message has been edited. Last edited by: FP Mod Chuck,


WebFOCUS 8201, SP 0.1, Windows 7, HTML
June 24, 2020, 11:27 AM
FP Mod Chuck
Shingles

My expert on this is no longer with IBI so I suggest you open a case with techsupport if it is still an issue.


Thank you for using Focal Point!

Chuck Wolff - Focal Point Moderator
WebFOCUS 7x and 8x, Windows, Linux All output Formats
June 25, 2020, 01:07 PM
vaayu
It looks like you can customize some additional map properties according to the wfschart82.pdf

Introduction to Map Properties
WebFOCUS supplies default property values for many map attributes, such as the extent of the
map in the frame and the default maximum and minimum zoom. It also finds the center point
for the geometry being used. However, you can customize all Esri map properties using their
API, described at:
https://developers.arcgis.com/...pi/map-amd.html#map1
You can also use several general WebFOCUS chart properties to enhance the charts


-********************
Sandbox: 8206.10
Dev: 8201M
Prod:8009
-********************