Q: The rectangle style of setting mouse document.getElementById(“map”).style.cursor = “crosshair” can change the mouse style to + in SuperMap iClient 7C for Javascript. But why can’t the circle or a polygon?

A: 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 July,2019
Tags: iClient

More iClient FAQ