<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Map not panning left or right post graphic update in Developers Questions</title>
    <link>https://community.esri.com/t5/developers-questions/map-not-panning-left-or-right-post-graphic-update/m-p/1129350#M6115</link>
    <description>&lt;P&gt;I am currently using the milstd2525d.stylx to generate my symbols. All seems to work well except after I do a graphic update be it either a delete or move the map no loner response to the mouse properly. It seems like there is still a active graphic but there isn't. It is like the identifyGraphics&amp;nbsp; is !=null . My code is below.&amp;nbsp; Hopefully someone will see my silly mistake. Again the graphic objects are being removed and also moving on the map as desired albeit the mouse appears to have lost drag on the map post&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;@FXML&lt;BR /&gt;void selectSymbol(MouseEvent event) throws InterruptedException, ExecutionException {&lt;BR /&gt;if (event.getButton() == MouseButton.PRIMARY) {&lt;BR /&gt;// set the cursor to default&lt;BR /&gt;sceneView.setCursor(Cursor.DEFAULT);&lt;/P&gt;&lt;P&gt;// clear any selected graphic&lt;BR /&gt;graphicsOverlay.clearSelection();&lt;/P&gt;&lt;P&gt;// create a point where the user clicked&lt;BR /&gt;mapViewPoint = new Point2D(event.getX(), event.getY());&lt;/P&gt;&lt;P&gt;// identify graphics on the graphics overlay&lt;BR /&gt;identifyGraphics = sceneView.identifyGraphicsOverlayAsync(graphicsOverlay, mapViewPoint, 10, false);&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;identifyGraphics.addDoneListener(() -&amp;gt; {&lt;/P&gt;&lt;P&gt;try {&lt;BR /&gt;if (!identifyGraphics.get().getGraphics().isEmpty()) {&lt;BR /&gt;// get the first identified graphic&lt;BR /&gt;identifiedGraphic = identifyGraphics.get().getGraphics().get(0);&lt;BR /&gt;// select the identified graphic&lt;BR /&gt;identifiedGraphic.setSelected(true);&lt;BR /&gt;sceneView.setOnMouseDragged(e -&amp;gt; {&lt;BR /&gt;if (identifiedGraphic.isSelected() &amp;amp;&amp;amp; identifiedGraphic != null) {&lt;BR /&gt;// set the cursor to closed hand to indicate graphic dragging is active&lt;BR /&gt;sceneView.setCursor(Cursor.CLOSED_HAND);&lt;BR /&gt;// create a point from the dragged location&lt;BR /&gt;mapViewPoint = new Point2D(e.getX(), e.getY());&lt;BR /&gt;Point mapPoint = sceneView.screenToLocation(mapViewPoint);&lt;BR /&gt;// update the location of the graphic to the dragged location&lt;BR /&gt;identifiedGraphic.setGeometry(mapPoint);&lt;BR /&gt;updateonmap = mapPoint.toJson();&lt;BR /&gt;Map&amp;lt;String, Object&amp;gt; id1 = identifiedGraphic.getAttributes();&lt;BR /&gt;identifiedGraphicid = (String) id1.get("_id");&lt;BR /&gt;try {&lt;BR /&gt;&lt;BR /&gt;moveSymbolTransmission(updateonmap);&lt;/P&gt;&lt;P&gt;} catch (Exception e1) {&lt;BR /&gt;// TODO Auto-generated catch block&lt;BR /&gt;e1.printStackTrace();&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;});&lt;BR /&gt;}&lt;BR /&gt;} catch (InterruptedException e) {&lt;BR /&gt;// TODO Auto-generated catch block&lt;BR /&gt;e.printStackTrace();&lt;BR /&gt;} catch (ExecutionException e) {&lt;BR /&gt;// TODO Auto-generated catch block&lt;BR /&gt;e.printStackTrace();&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;});&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;else if (event.getButton().equals(MouseButton.MIDDLE)) {&lt;BR /&gt;graphicsOverlay.getGraphics().remove(identifiedGraphic);&lt;BR /&gt;identifiedGraphic.setSelected(false);&lt;BR /&gt;Map&amp;lt;String, Object&amp;gt; id = identifiedGraphic.getAttributes();&lt;BR /&gt;identifiedGraphicid = (String) id.get("_id");&lt;/P&gt;&lt;P&gt;try {&lt;BR /&gt;networkMessages.sendGeoMessageDelete(null, identifiedGraphicid);&lt;BR /&gt;} catch (Exception e1) {&lt;BR /&gt;// TODO Auto-generated catch block&lt;BR /&gt;e1.printStackTrace();&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;} else if (event.getButton().equals(MouseButton.SECONDARY)) {&lt;BR /&gt;Point2D point = new Point2D(event.getX(), event.getY());&lt;BR /&gt;Point mapPoint = sceneView.screenToLocation(point);&lt;BR /&gt;try {&lt;BR /&gt;openSymbol(mapPoint, geoMessage, insertRecord);&lt;BR /&gt;} catch (IOException e) {&lt;BR /&gt;// TODO Auto-generated catch block&lt;BR /&gt;e.printStackTrace();&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;}&lt;BR /&gt;}&lt;/P&gt;</description>
    <pubDate>Wed, 29 Dec 2021 02:26:22 GMT</pubDate>
    <dc:creator>RodneyBowden</dc:creator>
    <dc:date>2021-12-29T02:26:22Z</dc:date>
    <item>
      <title>Map not panning left or right post graphic update</title>
      <link>https://community.esri.com/t5/developers-questions/map-not-panning-left-or-right-post-graphic-update/m-p/1129350#M6115</link>
      <description>&lt;P&gt;I am currently using the milstd2525d.stylx to generate my symbols. All seems to work well except after I do a graphic update be it either a delete or move the map no loner response to the mouse properly. It seems like there is still a active graphic but there isn't. It is like the identifyGraphics&amp;nbsp; is !=null . My code is below.&amp;nbsp; Hopefully someone will see my silly mistake. Again the graphic objects are being removed and also moving on the map as desired albeit the mouse appears to have lost drag on the map post&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;@FXML&lt;BR /&gt;void selectSymbol(MouseEvent event) throws InterruptedException, ExecutionException {&lt;BR /&gt;if (event.getButton() == MouseButton.PRIMARY) {&lt;BR /&gt;// set the cursor to default&lt;BR /&gt;sceneView.setCursor(Cursor.DEFAULT);&lt;/P&gt;&lt;P&gt;// clear any selected graphic&lt;BR /&gt;graphicsOverlay.clearSelection();&lt;/P&gt;&lt;P&gt;// create a point where the user clicked&lt;BR /&gt;mapViewPoint = new Point2D(event.getX(), event.getY());&lt;/P&gt;&lt;P&gt;// identify graphics on the graphics overlay&lt;BR /&gt;identifyGraphics = sceneView.identifyGraphicsOverlayAsync(graphicsOverlay, mapViewPoint, 10, false);&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;identifyGraphics.addDoneListener(() -&amp;gt; {&lt;/P&gt;&lt;P&gt;try {&lt;BR /&gt;if (!identifyGraphics.get().getGraphics().isEmpty()) {&lt;BR /&gt;// get the first identified graphic&lt;BR /&gt;identifiedGraphic = identifyGraphics.get().getGraphics().get(0);&lt;BR /&gt;// select the identified graphic&lt;BR /&gt;identifiedGraphic.setSelected(true);&lt;BR /&gt;sceneView.setOnMouseDragged(e -&amp;gt; {&lt;BR /&gt;if (identifiedGraphic.isSelected() &amp;amp;&amp;amp; identifiedGraphic != null) {&lt;BR /&gt;// set the cursor to closed hand to indicate graphic dragging is active&lt;BR /&gt;sceneView.setCursor(Cursor.CLOSED_HAND);&lt;BR /&gt;// create a point from the dragged location&lt;BR /&gt;mapViewPoint = new Point2D(e.getX(), e.getY());&lt;BR /&gt;Point mapPoint = sceneView.screenToLocation(mapViewPoint);&lt;BR /&gt;// update the location of the graphic to the dragged location&lt;BR /&gt;identifiedGraphic.setGeometry(mapPoint);&lt;BR /&gt;updateonmap = mapPoint.toJson();&lt;BR /&gt;Map&amp;lt;String, Object&amp;gt; id1 = identifiedGraphic.getAttributes();&lt;BR /&gt;identifiedGraphicid = (String) id1.get("_id");&lt;BR /&gt;try {&lt;BR /&gt;&lt;BR /&gt;moveSymbolTransmission(updateonmap);&lt;/P&gt;&lt;P&gt;} catch (Exception e1) {&lt;BR /&gt;// TODO Auto-generated catch block&lt;BR /&gt;e1.printStackTrace();&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;});&lt;BR /&gt;}&lt;BR /&gt;} catch (InterruptedException e) {&lt;BR /&gt;// TODO Auto-generated catch block&lt;BR /&gt;e.printStackTrace();&lt;BR /&gt;} catch (ExecutionException e) {&lt;BR /&gt;// TODO Auto-generated catch block&lt;BR /&gt;e.printStackTrace();&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;});&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;else if (event.getButton().equals(MouseButton.MIDDLE)) {&lt;BR /&gt;graphicsOverlay.getGraphics().remove(identifiedGraphic);&lt;BR /&gt;identifiedGraphic.setSelected(false);&lt;BR /&gt;Map&amp;lt;String, Object&amp;gt; id = identifiedGraphic.getAttributes();&lt;BR /&gt;identifiedGraphicid = (String) id.get("_id");&lt;/P&gt;&lt;P&gt;try {&lt;BR /&gt;networkMessages.sendGeoMessageDelete(null, identifiedGraphicid);&lt;BR /&gt;} catch (Exception e1) {&lt;BR /&gt;// TODO Auto-generated catch block&lt;BR /&gt;e1.printStackTrace();&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;} else if (event.getButton().equals(MouseButton.SECONDARY)) {&lt;BR /&gt;Point2D point = new Point2D(event.getX(), event.getY());&lt;BR /&gt;Point mapPoint = sceneView.screenToLocation(point);&lt;BR /&gt;try {&lt;BR /&gt;openSymbol(mapPoint, geoMessage, insertRecord);&lt;BR /&gt;} catch (IOException e) {&lt;BR /&gt;// TODO Auto-generated catch block&lt;BR /&gt;e.printStackTrace();&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;}&lt;BR /&gt;}&lt;/P&gt;</description>
      <pubDate>Wed, 29 Dec 2021 02:26:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/map-not-panning-left-or-right-post-graphic-update/m-p/1129350#M6115</guid>
      <dc:creator>RodneyBowden</dc:creator>
      <dc:date>2021-12-29T02:26:22Z</dc:date>
    </item>
  </channel>
</rss>

