POST
|
How can i handle mouse hover on esri graphic,graphiclayer,mapview?? esri jsapi 4
... View more
08-18-2016
08:29 AM
|
0
|
0
|
280
|
POST
|
i tried the following var graphicItem = this.graphicLayer1.graphics.find((x) => x.attributes["index"] == device.DeviceCode); var newPoint = graphicItem.geometry; var addpoint = newPoint.clone(); addpoint.longitude = device.Location.Longitude; addpoint.latitude = device.Location.Latitude; //updated the newPoint graphicItem.geometry = addpoint; but it didn't work .
... View more
08-01-2016
07:17 AM
|
0
|
1
|
731
|
POST
|
thanks for your reply, i am using Graphic layer not feature layer,and the graphic layer doesn't contain Clone,so i am doing the following this.point.latitude += 0.001; this.point.longitude += 0.001; var Layer = this._service.map.layers.getItemAt(0); var graphic =new Graphic({ geometry: this.point, attributes: { index: this._pointIndex }, symbol: this.sym }); Layer.graphics.getItemAt(0); Layer.graphics.removeAt(0); Layer.graphics.add(graphic); which i didn't like as i want to update the geometry without adding and removing the graphic again
... View more
07-29-2016
01:42 PM
|
0
|
0
|
731
|
POST
|
i tried to update the geometry as below but it didn't work var Layer = this._service.map.layers.getItemAt(0); Layer.graphics.getItemAt(0).geometry.latitude += 0.001; Layer.graphics.getItemAt(0).geometry.longitude += 0.001; assuming that i have only one graphic layer and only one graphic on it ,but nothing change.how can i write the path on this._service.map.get("") if i have many graphic layers with many graphic
... View more
07-29-2016
01:29 PM
|
0
|
0
|
731
|
POST
|
i am using esri javascript v.4 ,if i have a services that push lat,long for point how can i change the point location on map without add and remove it ,also if i need to change its symbol and attributes .
... View more
07-29-2016
09:03 AM
|
0
|
7
|
1906
|
Title | Kudos | Posted |
---|---|---|
1 | 08-18-2016 08:07 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|