|
POST
|
There's no code i can offer you, which you can copy and paste. I would suggest you write a Shedule what you want to program, what should happend when in which Order, which tools you need for and then write your code. Above is all you need to do what you want.
... View more
03-08-2016
03:08 AM
|
0
|
0
|
559
|
|
POST
|
Hi Aditi! No, it wont do when you copy the code one to one. There are two possible ways : 1. You can highlight the Points, where the Text is anchord or 2. change the Textcolor by looping through the selected Geometries and change the Textcolor. Regards
... View more
03-08-2016
12:54 AM
|
1
|
2
|
559
|
|
POST
|
Hello Robert! thx for your Answers! Problem is, that we use our Own Layouts for all other Pintings expect the MAP_ONLY. This one we take from Esris Printlayouts. I guess i'll give it a try and make an own Layout for the Map_Only Print. This seems to be the easiest Way. If that wont work, I try the more complicated Solutions.
... View more
03-07-2016
03:55 AM
|
0
|
0
|
1800
|
|
POST
|
Hi Aditi! Thers's a nice Example from Esri that soes exactly what you want. Seelcting Point within a drawn Extent. Select graphic points within an extent | ArcGIS API for JavaScript Have a look! Regards, Miriam
... View more
03-07-2016
03:40 AM
|
1
|
4
|
2262
|
|
POST
|
Hi There! After quite a lot of Searching for an Answer to my Problem and not finding any good resulotion for i decieded to ask here. When usind the MAP_ONLY Layout with the Printtask i cannot add any CopyrightText to the Output. But this is an essential need for securing the rights of the used Data. I find an intresting Post here Adding image watermark to map via ArcGIS API for JavaScript? - Geographic Information Systems Stack Exchange and try to implement this in my code. It Works fine to make the Div and the graphic inside visible but the Graphic isn't displayed when the Output is exported. The Div is defined inside the Map-Div, like in the Example. <div id="map" data-dojo-type="dijit/layout/ContentPane" region="center"> <div id="MapCopyright" class="CRPrint"></div> .... Here's the css Definition: .CRPrint { width: 100%; height: 100%; position:absolute; top: 0pt; left: 0pt; background-color:#ffffff; opacity: 0.5; filter: alpha(opacity=50); color:#ff0000; font-size: 100px; font-weight: bolder; z-index: 10000; display:none; background-image: url("../images/CR.png"); background-repeat: repeat-x; } When i called the PrintTask the display changed to visible so the Graphic would be exported too. After the Print is successfull, display is set to "none" again. Any guesses whats going wrong here? I have a strange feeling that this is all about the export of the Map, but i can't put a finger on it. Regards, Miriam
... View more
03-04-2016
04:57 AM
|
0
|
5
|
4087
|
|
POST
|
Hi Nadir! Is this the complete Code? Have you check your require if it's complete? It seems you are using the legacy-Modul, is that right? If you check the legacy Documentation for the esri.Task.query your definition should look like this: query.spatialRelationship = esri.Task.Query.SPATIAL_REL_WITHIN; Maybe this will do the job. By the way, I would recommend you to have a close look inside the documentation. Query (legacy) | API Reference | ArcGIS API for JavaScript Regards, Miriam
... View more
03-03-2016
03:21 AM
|
0
|
0
|
629
|
|
POST
|
Hi Sandanandachar! I've doing a little research about populating a dijit.form MultiSelect and find this Post: multiselect widget not populating With a ComboBox you can use a store to fill up, but that won't work when you use a MultiSelect. It's like a <SELECT> - Element, that must be filled with <OPTION> - nodes. So you have to do with yours. In the Link mentioned above, there are two good Examples how to do that. Here's the Link to the documentation : dijit.form.MultiSelect — The Dojo Toolkit - Reference Guide Hope this might help you! Regards, Miriam
... View more
03-02-2016
11:36 PM
|
0
|
0
|
978
|
|
POST
|
Hello Aditi! Textgraphic always comes with a Point, so you can select the Point and then delete the Text. So let me sum your affords: 1. You want to produce a Textgraphic ( A Point with a Label ) 2. You want to select that specific Graphic and 3. You want to delete that Text by selecting it and the remove it. Right? Question is...how do you want to select that Text? By clicking on the Ancorpoint, by hover over the text? Or do you want to select all Text/Point Graphic at once and then choose which one to delete? I'm not realy sure what you are up to. Here's a workarround how to you can bind the onClick-Event in your example above declarativly: <button data-dojo-type="dijit/form/Button" type="button">Delete selected! <script type="dojo/on" data-dojo-event="click" data-dojo-args="evt"> require(["dojo/dom"], function(dom){ map.graphics.delete(selected); }); </script> </button> Regards, Miriam
... View more
03-02-2016
02:43 AM
|
0
|
7
|
2262
|
|
POST
|
Hi Aditi! Here's a simple Codesnippet how you can remove the selected Graphic from your Map. First draw your Geometry. The Hover the graphic and catch the event. I catch the onClick-Evt here. map.graphics.on("click",function(evt){ selected = evt.graphic; map.graphics.remove(selected); }); So, by clicking on the drawn Geometry it will get selected and removed from the map. It should be easy to bind this to a Button. You only have to submit the selected Geometry, that is written into the Variable. The it should look like: myButton.on("click",function(){ map.graphics.remove(selected); }); and Voila...Graphic is removed.
... View more
03-01-2016
04:42 AM
|
1
|
0
|
2262
|
|
POST
|
Please add some code to your Post, this could be helpful for us to help you. And where exactly is the Problem? What does it or what not? Any Errors? Regards
... View more
03-01-2016
02:44 AM
|
1
|
1
|
978
|
|
POST
|
Have a look at this sample: Display context menu | ArcGIS API for JavaScript It discribes how you can select and delete a Graphic. Regards
... View more
03-01-2016
02:42 AM
|
2
|
0
|
2262
|
|
POST
|
Hello Lefteris, Robert is right. Your function and the call for the registry.byId lies outside the above defined require. If you set it up it like this : function fillcountyselect(){ require(["dijit/registry"],function(registry){ var select1 = registry.byId("countyfield"); select1.addOption( {label:"Select County", value: 0}); ....u.s.o. }); } you have access to "registry". Regards
... View more
03-01-2016
02:36 AM
|
0
|
1
|
2380
|
|
POST
|
So here are some Code how we initalize our Overviewmap. We have an Menu at the upper leftside of the Screen like this where the OverviewMap is set inside a div named "OVMap": And here's the code: var OVMap; OVMap = new ArcGISTiledMapServiceLayer(YourOVMapServiceHere); OVMap.on("load",function(){ OVMap.id = "OVMap"; //add the overview map overviewMapDijit = new ovmap({ map: map, baseLayer: OVMap, width: 238, height: 180, visible: true, expandFactor: 15, logo:false }, dom.byId('ovMap')); overviewMapDijit.startup(); }); To your Point 1: You can set the expandfactor to 15 which is ( for our Map ) nearly full Extent. You have to Check out the level for your own Map when you set it up. Point 2: The Extent of the actual MapExtent is visible in the Overview with a grey Box. There should be no Problem to change it to a red Frame. and Point 3: The MapExtent changes to the new Extent when you move the grey Rectangle in the Overviemap automatically. Here's the Example for the use of the Overviewmap from Esri : Overview map | ArcGIS API for JavaScript Hope this helps you! Regards
... View more
02-29-2016
04:31 AM
|
1
|
1
|
1063
|
|
POST
|
Hi Amit! You can achieve this by using Esris Overviewmap dijit. Heres a link. OverviewMap | API Reference | ArcGIS API for JavaScript Regards
... View more
02-25-2016
04:30 AM
|
1
|
1
|
1063
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 12-04-2015 01:56 AM | |
| 1 | 11-17-2015 04:35 AM | |
| 1 | 03-01-2016 04:42 AM | |
| 1 | 03-07-2016 03:40 AM | |
| 1 | 03-08-2016 12:54 AM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:24 AM
|