02-06-2017 08:33 PM
We are migrating client GMSC from 2014 to 2016, including all java plugins. We have a java plugin that allows us to mouse-click on the map, then sets the top layer feauture active, get the instance of that feature at the clicked point and launches its workflow directly.
The java plugin makes use of the Java API: SpatialAnalysis object to get the top layer and instance value of the clicked point.
In GMS C2014, when we do mouse move on the map, it does not show many crosses.
However, on GMSC 2016, it shows a lot of crosses and even coordinate values which not desirable and makes end-users not sure where to click.
I just wonder whether there are ways that I can turn these crosses/utility functions off (programmatically), so the map looks less crowded and similar to the one in 2014
Appreciate all suggestions and ideas
02-07-2017 01:16 AM
which snapping modes were active at both screenshots?
You can use the SmartSnapHandler to manipulate the active SmartSnapMode's:
SmartSnapHandler smartSnapHandler = context.getMap().getMeasurementController().getSmartSnapHandler(); List<SmartSnapMode> activeSmartSnapModes = context.getMap().getMeasurementController().getSmartSnapHandler().getActiveSmartSnapModes(true) smartSnapHandler.disableSmartSnapMode(.....) smartSnapHandler.enableSmartSnapMode(.....) // or disable/enable snapping smartSnapHandler.setSnappingEnabled(true/false)
02-07-2017 07:49 PM
Thanks Steve, it really does the job.
Also on this subject, we would like to turn off the coordinate value displaying (from GUI or programming), quite a lot of end-users find it not user-friendly.
02-09-2017 03:58 AM
you can't turn off the displayed coordinate value. The selection tools capture a point and that's the same functionality as for editing.