SuperMap logo
  • Products

    What is GIS

    About SuperMap GIS

    Technology System

    • Big Data GIS
    • New RS Software
    • New 3D GIS
    • Geospatial AI
    • Distributed GIS
    • Cross Platform GIS

    SuperMap GIS 2024 New!!

    • Cloud GIS Server
    • Edge GIS Server
    • Terminal GIS for Desktop
    • Terminal GIS for Components
    • Terminal GIS for Web
    • Terminal GIS for Mobile

    Previous Versions

    • SuperMap GIS 2023
    • SuperMap GIS 11i(2022)
    • SuperMap GIS 10i(2021)
    • SuperMap GIS 10i(2020)
    • SuperMap GIS 10i
    • SuperMap GIS 9D(2019)
  • Solutions

    Smart City

    Natural Resource

    Land Management

    Facility Management

    Public Safety

    Natural Disasters

    Transportation

    Water Conservancy

    BIM+GIS

  • Stories
    • Articles
    • News
    • Events
    • Magazines
  • Support
    • Download & Online Help
    • Online Demonstration
    • Ask & Answer
    • Discover SuperMap GIS
    • Trial License
  • About
    • lntroduction
    • Careers
    • Contacts
    • Suggestions
 
  • English
  • 中文
  • Español
  • Français
  • ภาษาไทย
  • русский
  • Türkçe
  • Português
  • 日本語
  • 한국어
  • Indonesian
  • عربي
iClient Javascript FAQ

iClient Javascript FAQ

  • Home
  • Support
  • FAQ
  • iClient

iClient

  • iServer
  • iPortal
  • iObjects
  • iMobile
  • iDesktop
  • iClient3D
  • iClient
  • Q: When you drag a map to browse and export the edge part of the graph, there is always a process of map matching. The user experience is not good, and is there any good solution?

    A: Exporting map is requested from the current view scope, and you can set the buffer attribute to the base map. The type is number. When it set to 1, an additional round of tiles can be requested to enhance the user experience. However, when the buffer value is set too large, it causes too many requests, resulting in iServer concurrency pressure. So it is necessary to set the appropriate value according to its own server performance.

    09 Jul,2019 iclient
  • Q: In IE8, what's going on with the blurring of Microsoft fonts when you set popup's background to transparent?

    A: Set the popup.div.style.filter = “” after initializated popup.

    09 Jul,2019 iclient
  • Q: When you use SuperMap.Layer.Graphic, if you add 10,000 points, the computer will be crashed? What's the matter?

    A: It may be that the image attribute of the vector element is repeatedly defined. And this property needs to be defined in advance and then called.

    09 Jul,2019 iclient
  • Q: When the mouse is on the element of Vector layer, it can trigger the mouse event of the element, but can't drag the map. How to deal with it?

    A: This problem is solved in iClient for JavaScript8.0.2 and later version. Please update to the iClient for JavaScript 8.0.2 version and later.

    09 Jul,2019 iclient
  • Q: After adding the heat map to the map. Why the rendered heat map will change when you dragging the map?

    A: The maxWeight and minWeight parameters of HeatMapLayer. If you don’t set them, it will draw the heat map according to the maximum and minimum weight of hotpots in the current screen. When dragging the map, the maximum and minimum values will change in the current screen. Then the rendered heat map will change.

    09 Jul,2019 iclient
  • Q: You can use AnimatorVector to do StretchLine animation rendering. Why does the line flash past without stretching?

    A: In addition to fill in the necessary attributes, please note that the line data of latter state should contain all nodes of the previous state line data.

    09 Jul,2019 iclient
  • Q: How to convert geometry to geojson ?

    A: After the instantiation, you can use SuperMap.Format.GeoJSON to call the write method to serialize a feature object, geometry object, feature object array to a GeoJSON string.

    09 Jul,2019 iclient
  • Q: How to convert geometry to KML ?

    A: After the instantiation, you can use SuperMap.Format.KML to call the write(features) method to convert the Feature array into a string.

    09 Jul,2019 iclient
  • Q: How do you convert a geometry object into a string and save it in a database in SuperMap iClient for Javascript?

    A: You can use geometry.toString() to convert to string, and use fromWKT() to convert the string to the geometry object.

    09 Jul,2019 iclient
  • Q: How do I distinguish the event that is triggered after the map is scaled between the mouse double click or scroll wheel?

    A: 1. Cancel the default double-click zoom in event. 2. Bound double-click event for the map div. 3. You can get the screen coordinates in the double click event of div. And you can get the geographic coordinates according to the screen coordinates. Then manually perform the magnification level. Then you can distinguish between double-click and scroll wheel scaling events.

    09 Jul,2019 iclient
  • Q: How to query data services or map services synchronously?

    A: The iClient default query method is asynchronous, and you can use the iServer REST API to build your own ajax requests to implement synchronous queries.

    09 Jul,2019 iclient
  • Q: When developing the dynamic plotting function, you use the plotting and property panels provided by the client. Why they unable to load properly?

    A: Client provides two div panels: plotting panel and attribute panel, which greatly simplifies steps to edit and draw plotting symbols. Please note that you need to copy samples/js/plottingPanle in iClient for JavaScript package to the project. If there is an error 404, you need to change the relative path in PlottingPanel.js file of plottingPanle folder.

    09 Jul,2019 iclient
  • Q: Whether GraphicLayer has any way to load a custom image as a point icon?

    A: Now graphicLayer only supports three styles: SuperMap.Style.Circle circle, SuperMap.Style.Clover clover, and SuperMap.Style.RegularShap regular polygon. It doesn’t support custom image styles.

    09 Jul,2019 iclient
  • Q: How to render a picture for feature point elements?

    A: Set externalGraphic in SuperMap.Feature.Vector.style to render external chart.

    09 Jul,2019 iclient
  • Q: How to remove the shadow when you use SuperMap.Popup.FramedCloud to create the pop-up window?

    A: Suppose popup as the variable name of pop-up window, call popup.shadowDiv.innerhtml=’.

    09 Jul,2019 iclient
  • Q: How iServer sets the display overlay?

    A: This feature is implemented through iClient for javascript in the front end. When you initialize SuperMap.Layer.TiledDynamicRESTLayer, you can set overlapDisplayed and overlapDisplayedOptions.

    09 Jul,2019 iclient
  • Q: Why the animation in the animation layer will be disappeared rather than stay on the page?

    A: If you set the feature at the end of the animation, it will stay on the page.

    09 Jul,2019 iclient
  • Q: Why is the first feature returned in each group when conduct sql query and you already set the GroupBy?

    A: It needs to set the return fields, such as count(*).

    09 Jul,2019 iclient
  • Q: Why the return results are incorrect when iClient for Javascript uses UTFGrid?

    A: 1. Set the projection and maxExtent prameters on map. 2. Set the appropriate values to pixcell and utfgridResolution.

    09 Jul,2019 iclient
  • Q: What is the corresponding relationship between the pixcell and utfgridResolution attributes in the UTFGrid layer?

    A: 1. The pixcell is the accuracy of utfgrid tiles which are sent to the server. The smaller the value, the higher the accuracy, and the larger the corresponding tile size will be. 2. utfgridResolution is the accuracy used for client parsing tiles. It should be equal to the pixcell, or there is a problem of location and property. 3. Usually if the UTFGrid layer is a region layer, the corresponding amount of data will be larger. In order not to affect the normal browsing of the page, you can set the two properties to a larger size.

    09 Jul,2019 iclient
<<< < 1 2 3 > >>>

SuperMap GIS

  • Cloud GIS Server
  • Edge GIS Server
  • Terminal GIS for Desktop
  • Terminal GIS for Components
  • Terminal GIS for Web
  • Terminal GIS for Mobile

Stories

  • Articles
  • News
  • Magazines
  • Events

Support

  • Download & Online Help
  • Online Demonstration
  • FAQ
  • Demo Code
  • Technical Docs
  • Training Files
  • Videos
  • Trial License

Events

  • [list:pagetitle] [list:targetlink]
  • {/zzz:list}

About

  • lntroduction
  • Careers
  • Contacts
  • Suggestions

Follow Us

  • LinkedIn
  • Facebook
  • Twitter
  • Instagram
  • YouTube
© 1997-2023 SuperMap Software Co., Ltd.
  • | Privacy