|
POST
|
Yes Sir,you are right, i have tried to debug it and console g graphicsit returns points data as objects, and after that it add to the markerGL, but it do not showup??
... View more
03-31-2020
06:01 AM
|
0
|
1
|
1567
|
|
POST
|
Hi I tried to change it by accessing its url. point_url = cloneGra.symbol.__accessor__.store._values.url; and tried to change the symbol point_url in l while saving that marker, but it do not change.???? Do anyone know how to change symbol of individual marker 1 when we click on that marker, 2 define a marker type in textbox save it and 3 change its symbol. var pointurl = funurl(mtype); point_url.url = pointurl; console.log(point_url.url); It return perfect url but do not chnge marker symbol instantly i have to zoom in or zoomout that map then the markers change??? Plus when i again change the same marker it do not chnage symbol
... View more
03-31-2020
03:27 AM
|
0
|
4
|
1442
|
|
POST
|
Query: How to change marker symbol dynamically programatically on graphics layer
... View more
03-31-2020
12:36 AM
|
0
|
5
|
1591
|
|
POST
|
It didn't workout . longitude: marker.y, latitude: marker.x,
... View more
03-30-2020
06:14 AM
|
0
|
5
|
1567
|
|
POST
|
Hi i want to delete markers individual markers from my graphics layer on button click
... View more
03-30-2020
05:38 AM
|
0
|
11
|
3372
|
|
POST
|
hi i have saved markers in db, but now i want to get them and show them on my map view, I have used the following code. and call them in view.when. My markers do not show up plus i don't know what is the error, i have followed below link How to plot multiple points on a map? to show markers from db plus my map stops it editing work. Query : My markers do not show . Query : can i display content of popup saved last time in db.How? this is my code. view.when(function() { // Add the boundary polygon and new loted polygon graphics on view const property_vertices = <?php echo json_encode($map_ring_coordinate);?>; addGraphics(property_vertices); addMarker(); ///some more code below } function addMarker(){ var getmarker=<?php echo json_encode($smarkers);?>; getmarker.forEach(function(marker){ console.log(marker); var p = new Point({ longitude: marker.x, latitude: marker.y, spatialReference: { wkid: 4326 } }); }); var g = new Graphic({ geometry: webMercatorUtils.geographicToWebMercator(p), symbol: textSymbol }) markerGL.add(g); } I get the following 2 objects in console. Object { x: "172.49720789367655", y: "-43.48319644512304" } Object { x: "172.50933147842412", y: "-43.48894119812065" }
... View more
03-30-2020
04:55 AM
|
0
|
7
|
1650
|
|
POST
|
yeah i have done it //Clear all graphics jQuery('#main').on('click', '.clear_all', function(){ //clear all graphics added to graphics layer clickValidation=false; sketchViewModel.complete(); sketchViewModel.cancel(); graphicsLayer.removeAll(); }); But it do not solve my problem because i keep sketchviewmodel reshape on in add graphics function else if (event.state === "cancel" || event.state === "complete") { //check if the graphics are done being reshaped, printout updated graphic's geometry and reshape stage. // graphic reshaping has been completed or cancelled sketchViewModel.update([graphic], { tool: "reshape" }); }
... View more
03-26-2020
09:24 PM
|
0
|
0
|
12446
|
|
POST
|
Hi Sir Their is some time a situation arise when i clear the graphics, boundaries disappear but vertices remain. I have found a relative link from older version, but what command should i use in 4.14 to remove vertices even. This is the way i am clearing my all graphics, so so i need to deactivate my buttons or what some editing mode while clearing graphics. jQuery('#main').on('click', '.clear_all', function(){ //clear all graphics added to graphics layer clickValidation=false; graphicsLayer.removeAll(); sketchViewModel.cancel(); }); Delete Graphic in Edit Mode Retains Vertices on Map - Possible Bug
... View more
03-26-2020
01:04 AM
|
0
|
2
|
12446
|
|
POST
|
Hi ken , i used your code as it is, and it still returns 0. i called it here , do i need to call it somewhere else function addGraphics(vertices) { //const vertices = <?php echo json_encode($map_ring_coordinate);?>; const polygon = createGeometry(vertices); validSymbol = createSymbol([255, 255, 255, 0.3], "solid", 2, [ 255, 121,5]); newDevelopmentGraphic = new Graphic({ geometry: webMercatorUtils.geographicToWebMercator(polygon), symbol: validSymbol, attributes: { newDevelopment: "new store" } }); graphicsLayer.addMany([newDevelopmentGraphic]); calculateArea(); } //End addGraphics
... View more
03-23-2020
02:53 AM
|
0
|
7
|
3982
|
|
POST
|
Hi Till now as you can see i have placed mutliple graphics on graphics layer and save all of them by below code, and get json and saved it, works fine. But now i have to change structure of saving them, i have to save each polygon separartly. Query: i have to get updated geometry of only those polygons that are reshaped or changed it vertices. Is their any way to get only updated vertices of single or multiple polygons out of whole graphics.
... View more
03-19-2020
10:10 PM
|
0
|
1
|
1039
|
|
POST
|
Do i need to convert them rings_for_area to webMercatorUtils.geographicToWebMercator, Ok i have converted it and now it returns 0 area value, even when i have a polygon on map function calculateArea(){ var rings_for_area=[]; var k=0; graphicsLayer.graphics.map(function(grap){ var updatedGeometry = webMercatorUtils.webMercatorToGeographic(grap.geometry); var rings_area = updatedGeometry.rings; rings_for_area = []; rings_area.forEach(function(ring, i) { rings_for_area =ring; k++; }); }); console.log(rings_for_area); var area = geometryEngine.geodesicArea( webMercatorUtils.geographicToWebMercator(rings_for_area), "hectares"); console.log(area); }//End calculateArea
... View more
03-19-2020
08:42 PM
|
0
|
9
|
3982
|
|
POST
|
Hi i want to click on map and select marker type from a popup and add comment to it and drop a marker on map. like following link.Edit features with the Editor widget | ArcGIS API for JavaScript 4.14 OR https://codepen.io/pen?&editable=true&editors=100 The problem is i am not using any feature layer i am working on graphics layer and displaying polygons on click, from db and by drawing them. I found a relative question Add markers , but all work is done on feature layer. plus i have to add a small size editable polygon on the marker click even on graphics layer(I can do it)
... View more
03-18-2020
01:23 AM
|
0
|
1
|
1186
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 12-28-2020 10:30 PM | |
| 1 | 12-27-2020 09:03 PM | |
| 1 | 05-17-2020 10:15 PM | |
| 2 | 04-21-2020 10:39 PM | |
| 3 | 09-09-2020 08:44 PM |
| Online Status |
Offline
|
| Date Last Visited |
04-30-2024
05:15 AM
|