A: You can use getGeodesicArea and getGeodesicLength methods of the SuperMap.Geometry.Collection which is the parent class of SuperMap.Geometry.Polygon to get the approximate surface area and perimeter.
09 Jul,2019 iclientA: The wmts published by iServer 700 or higher will give the resolution in the getCapability file description; the iServer version lower than 700 only have the scale denominator, and you can use SuperMap.Util.getResolutionFromScaleDpi to calculate the resolution.
09 Jul,2019 iclientA: 1. Plan 1: add the vectorlayer layer to the cluster layer or client thematic map: map.addLayers [base map, cluster layer/thematic map, vector layer]. 2. Plan 2: when the cluster layer is shared with vector layer, you can add the cluster layer to the selectFeature control, such as SuperMap. Control. SelectFeature ([vectorlayer,clusterLayer],{onSelect:onFeatureSelect}),addLayers(). The layer order is not restricted.
09 Jul,2019 iclientA: The running speed of Animatoris determined by setSpeed and setFrameRate; the setSpeed() method can change the play speed, namely, the time interval between the data played each time. It refers to the time jump between user data played twice. The setFrameRate() method can change the frame rate, representing the number of times played per second.
09 Jul,2019 iclientA: Yes. The isBaselayer of vectorLayer is false by default. You need to change it to true. You also need to set bounds.
09 Jul,2019 iclientA: SuperMap iClient 7C SP1 for JavaScript version provides two sets of control styles: one is “WHITE”, namely, the white style. It only supports Zoom, LayerSwitcher and OverviewMap three controls; another one is “BLUE”, namely, the blue style. The default is white style. If you set the SuperMap.Control.SKIN = “BLUE” before initializing control unit, then you can set the blue style.
09 Jul,2019 iclientA: You can add the SuperMap.Control.LayerSwitcher control. You can also set the layer visibility through the layer's setVisibility() method.
09 Jul,2019 iclientA: Call the createCurve() method of SuperMap.Geometry.LineString to draw the curve.
09 Jul,2019 iclientA: You can add the label thematic layer to the Map layer list after other thematic layers, or you can use the set LayerIndex() method in Map to move the layer to the location of the specified index (index value is from zero). Change the z-index value in the Map.
09 Jul,2019 iclientA: It needs to use the copyright information control SuperMap.Control.Attribution; you add the control to the map and then write the content of the copyright information in the layer.attribution property. (html label)
09 Jul,2019 iclientA: when you create the SuperMap.Control.DrawFeature object, you can set the cursorCSS attributes in handlerOptions, such as: var drawPolygon = new SuperMap.Control.DrawFeature(vectorLayer, SuperMap.Handler.Polygon,{“handlerOptions”:{“cursorCSS”:”*“}});
09 Jul,2019 iclientA: Please note that you need to check the utfgrid caches in the service component of the iServer when you use utfGrid caches. And you also need to set projection and maxExtent parameters on the map.
09 Jul,2019 iclientA: There is a get Vertices method in SuperMap.Geometry, which can return all vertex list of the geometric figure. This method should be implemented in sub-class of Geometry.
09 Jul,2019 iclientA: You need to increase the code to close Popup Window in the callback function manually, such as popup.destroy()
09 Jul,2019 iclientA: Because users initialized the Marker by the same Icon. Please use the different Icon.
09 Jul,2019 iclientA: Defining two styles can be overlay display.
09 Jul,2019 iclientA: Please use SuperMap.Control.SelectFeature, and set the SelectFeature.box attribute to true.
09 Jul,2019 iclientA: SuperMap.Control.DrawFeature supports the method finish Sketch to finish drawing features. The point feature drawing is not applicable.
09 Jul,2019 iclientA: The features on the vector layer do not support the query. You can use SelecFeature to select the specified feature.
09 Jul,2019 iclientA: In this case, the feature is not loaded onto another vector layer. So when you use the remove All Features() method, above error shows. You can just use clone() the current feature.
09 Jul,2019 iclient