|
POST
|
Sir I have a query this calculate area fn do not calculate instantly, i have it only calculate when i refresh the page and then its calculates total area from whole graohics. how to calculate area instantly when graphics is dropped on map or drawn on map //Calculate TOtal hectares of Map Geometry function calculateArea() { var area = 0; graphicsLayer.graphics.map(function (grap) { area = geometryEngine.geodesicArea(grap.geometry, "hectares"); }); totalAreaHectare=totalAreaHectare+=Math.round(area); //console.log(totalAreaHectare); } //End calculateArea });//End require I am calling it in 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 and here function addTempGraphic(evt) { if(evt.state === "complete" && evt.tool === 'polygon'){ evt.graphic.symbol = createSymbol([255, 255, 255, 0.3], "solid", 2, [255, 121, 5]); evt.graphic.attributes= { newDevelopment: "new store" }; calculateArea(); //appear polygon as editable first time when it is created sketchViewModel.update(evt.graphic, {tool: "reshape"}); }
... View more
04-03-2020
06:31 AM
|
0
|
5
|
1268
|
|
POST
|
Hi Robert Scheitlin, GISP I am changing marker symbol url here //This is tempgraphics function markerGL.add(cloneGra); point_url = cloneGra.symbol.__accessor__.store._values; }//End If }//End addTempGraphics //On button save click point_url = cloneGra.symbol.__accessor__.store._values; var tempoint = changedMarkerSymbol(markertype);//passing type of marker to this function and it return new symbol url point_url.url = tempoint;//tempoint contain new url
... View more
04-03-2020
03:00 AM
|
0
|
1
|
1454
|
|
POST
|
sir Robert Scheitlin, GISP The issue in it, is that data from db come on my page when my editor page is refreshed it, but what if i do not refresh page. At the time, when i save data in db and without refreshing page, i want my data to stay in my popup, so when i close popup and again open and check it to edit , at that time my popup is empty. I want to retain data of popups in it without refreshing page even it is saved in db or user close that popup in between without saving. Is their any way to get any unique ids of popup or markers dropped, so that i can try to access them individually when searching through layer
... View more
04-03-2020
01:25 AM
|
0
|
15
|
2021
|
|
POST
|
Yes, i have already done entering and saving data in db, i have one textbox which takes data from user and save in db, but your code do not work, as i am already defining body for in its content popup for all markers and and this code below of urs wiill replace my basic editable html. actually i have to see those popup data on my same editing mode popup content: marker.content
... View more
04-02-2020
05:57 AM
|
0
|
18
|
2021
|
|
POST
|
Sir, I think you haven't understood, user will enter any value in textbox of popup and on save buton i am saving it in db, but when i again open that popup my popup do contain content body,but data gone entered by user??? actually i m looking for tht data to stay. Your example only change body of popup
... View more
04-02-2020
05:41 AM
|
0
|
20
|
2021
|
|
POST
|
Hi Robert Scheitlin, GISP random means a small size polygon can be of same shape but can be editable by user OR user can draw a polygon with certain type of marker drop No its not necessary to be very centered to his marker position. Issue is it should of different color from basic polygons Kindly suggest suitable
... View more
04-02-2020
05:38 AM
|
0
|
4
|
1376
|
|
POST
|
can you pls give one example, as i have multiple markers with popup, each have different popup values in its textbox. how can i differentiate between each of them
... View more
04-02-2020
05:16 AM
|
0
|
22
|
2021
|
|
POST
|
I think u have been misunderstanding me, i m talking about html label or some small div like button size on side of map
... View more
04-02-2020
04:49 AM
|
0
|
1
|
1204
|
|
POST
|
I want to drop a random editable polygon when a marker is dropped , do i need to use different graphics layer to add some random polygon around marker . How to drop some random polygon (of small size)
... View more
04-02-2020
04:06 AM
|
0
|
6
|
1519
|
|
POST
|
I just need simple label to show some dynamically calculated value, this link contains layerlist, i just need a simple label. Do you know how to do it??
... View more
04-02-2020
03:44 AM
|
0
|
3
|
1204
|
|
POST
|
I want to retain popupdata which i filled in it, when i close the popup coming from marker symbol , and again open it, my popup refreshed.??
... View more
04-01-2020
08:50 PM
|
0
|
24
|
4350
|
|
POST
|
Hi after so many efforts my markersymbol changed but it only changed when i zoom in or out map after that. i called my event in view.when and in require function but it do not change instantly. Is their any other way to do it. Thanks in advance, this is my code below point_url = cloneGra.symbol.__accessor__.store._values; //save marker button jQuery('#main').on('click','.savemarker',function(e){ var points_arr=[]; var markertype = jQuery(this).parents().find('.dropdownbtn').html(); var comment = jQuery(this).parents().find('.write_comment').val(); var tempoint = changedMarkerSymbol(markertype);//passing type of marker to this function point_url.url = tempoint;//tempoint contain new url points_arr={'x' : point_x_coordinate , 'y' : point_y_coordinate}; jQuery.ajax({ //send ajax call to save data success: function(data){ } }); view.popup.close(); });//End Save marker
... View more
04-01-2020
03:27 AM
|
0
|
3
|
1454
|
|
POST
|
Hi Egge, I mean like 3 buttons in bottom right. 2 buttons of zoom horizontally above that button in bottom right and 1 button above it and i am already doing it manually
... View more
04-01-2020
02:44 AM
|
0
|
0
|
1430
|
|
POST
|
hi i try to align buttons on map one below other on bottom right corner manually, but it do not align automatically for different computer size??? i have read this link UI | ArcGIS API for JavaScript 4.14 but it do not mention to place multiple buttons one below other in any corner or bottom right?? Thanks in advance for the help.
... View more
04-01-2020
01:27 AM
|
0
|
2
|
1505
|
| 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
|