POST
|
I am using the draw tools to select on the map and return the selected results from some feature layers. I would like to add some functionality to my circle select tool. I would like to have a display of the distance from the center point to where they are dragging it. I have seen an example function to calculate it and connect to the events but am not sure how to display it on the circle being drawn... If anyone has done this and can help it would be greatly appreciated. Thanks, Charles
... View more
02-21-2014
12:27 PM
|
0
|
0
|
539
|
POST
|
This is a great widget but for some reason I am having issues getting it to display the symbols and (+/-) buttons. When I firebug the error for symbols it says to: Please verify the Service URL specified is correct :- http://servername:6080/arcgis/services/Parcels/MapServer What's odd is that I never specified http://servername:6080/arcgis/services/Parcels/MapServer The code for that layer is: var Parcels_Layer = new esri.layers.ArcGISDynamicMapServiceLayer("http://servername:6080/arcgis/rest/services/Parcels/MapServer", { id: 'Parcels_Layer' }); The "/rest/" seems to be getting lost somehow and it can not find it. I have no idea about the (+/-) buttons not showing up. Here is my code... Any help would be great because I would love to use this in my applications... <link rel="stylesheet" type="text/css" href="CSS/Style.css"> <link rel="stylesheet" type="text/css" href="CSS/Imported_CSS.css"> <link rel="stylesheet" type="text/css" href="agsjs/css/TOC.css"/> <script type="text/javascript"> var dojoConfig = { parseOnLoad: true, packages: [ { "name": "esriTemplate", "location": location.pathname.replace(/\/[^/]+$/, '') }, {//name: "agsjs", //"location": location.pathname.replace(/\/[^/]+$/,'')+'/agsjs' "name": "agsjs", "location": 'http://gmaps-utility-gis.googlecode.com/svn/tags/agsjs/2.04/xbuild/agsjs' } ] }; </script> <script type="text/javascript" src="//serverapi.arcgisonline.com/jsapi/arcgis/3.1"></script> ///I Get an error here Error: Tried to register widget with id==tocDiv3 but that id is already registered The container: <div id ="LeftPane" dojotype="dijit.layout.ContentPane" region="left" style=" width:250px"> <div id ="tocDiv3" > </div> </div> JS file: var Parcels_Layer = new esri.layers.ArcGISDynamicMapServiceLayer("http://servername:6080/arcgis/rest/services/Parcels/MapServer", { id: 'Parcels_Layer' }); var Base_Layer = new esri.layers.ArcGISDynamicMapServiceLayer("http://servername:6080/arcgis/rest/services/Basedata/MapServer", { id: 'Base_Layer' }); ///I Get an error here Error: Tried to register widget with id==tocDiv3 but that id is already registered ///This was supposed to get rid of this error but it does not? var TOCDiv = dijit.byId('tocDiv3'); if (TOCDiv) { TOCDiv.destroyRecursive(true); } dojo.connect(map, 'onLayersAddResult', function (results) { var toc = new agsjs.dijit.TOC({ map: map, style: "inline", layerInfos: [{layer: Parcels_Layer, title: "Parcels", slider: true }, { layer: Base_Layer, title: "Basemap Layers", slider: true } ] }, 'tocDiv3'); toc.startup(); });
... View more
05-21-2013
09:54 AM
|
0
|
2
|
808
|
POST
|
So this was due to a bug that when the server was restarted the services where set to secure. To fix this... go to your services click on the secure lock then set it to secure. Go back in and set it to unsecure or whatever that option is. Then restart your service. It gets rid of the prompt and works till they fix the bug.
... View more
05-16-2013
02:52 PM
|
0
|
0
|
301
|
POST
|
I solved this by moving the map a tiny bit on tab change... hope it can help someone else down the line. dojo.connect(tabs, "_transition", function (newPage, oldPage) { map.getLayer('tab1').clear(); map.getLayer('tab2').clear(); map.getLayer('tab3').clear(); var Newextent = new esri.geometry.Extent(map.extent.xmin, map.extent.ymin - .01, map.extent.xmax, map.extent.ymax, new esri.SpatialReference({ wkid: 4326 })); map.setExtent(Newextent); });
... View more
05-16-2013
02:48 PM
|
0
|
0
|
185
|
POST
|
Does anyone have an idea on this? Has this happened to anyone else?
... View more
05-16-2013
02:45 PM
|
0
|
0
|
576
|
POST
|
Greetings, I have 3 datagrids that respond to the onExtentChange to fill the grid with data from the map. My issue is when I am on tab1 and zoom to a location tab1 changes the data in the grid1 but I click tab2 to get grid2 data and because I have not moved the map since the first move grid2 will not show data till I pan a little to invoke the onExtentChange. I would like to invoke the onExtentChange in the tab selection change event (which already does some other stuff). I know I could just have all grids refresh anytime the map moves but that would add cost because one of the layers has a fair amount of data. I guess I would also be ok (although not good practice) to just programmically pan the map a few pixels on tab selection change. Any help would be great... Thanks, Chuck
... View more
04-25-2013
09:27 AM
|
0
|
1
|
537
|
POST
|
Sure not problem..... Issue: Not getting the +/- buttons in the NLiu's TOC Widget. I have a mxd with 3 layers. They are in a group. In the HTML Page:
<script type="text/javascript">
var dojoConfig = {
parseOnLoad: true,
packages: [
{ name: "esriTemplate", location: location.pathname.replace(/\/[^/]+$/, '') },
{ "name": "agsjs",
"location": 'http://gmaps-utility-gis.googlecode.com/svn/tags/agsjs/2.04/xbuild/agsjs'
}
]
};
</script>
<div id ="LeftPane" dojotype="dijit.layout.ContentPane" region="left" style=" width:250px">
<div id ="tocDiv3" >
</div>
</div>
In the JS file: var My_Layer = new esri.layers.ArcGISDynamicMapServiceLayer("http://xxxx:6080/arcgis/rest/services/MyService/MapServer",
{
id: 'My_Layer ',
opacity: 0.8
});
........
dojo.connect(map, 'onLayersAddResult', function (results) {
var toc = new agsjs.dijit.TOC({
map: map,
style: "inline",
layerInfos: [{
layer: My_Layer,
title: "My Company",
slider: true
}]
}, 'tocDiv3');
toc.startup();
}); Thanks for your help...
... View more
04-24-2013
03:18 PM
|
0
|
0
|
576
|
POST
|
The +/- button issue I am having is with NLiu's TOC Widget. [ATTACH=CONFIG]23707[/ATTACH] It works great but the +/- buttons are not present in my app? I have the layers grouped in the mxd. Has anyone had experience with this? Thanks
... View more
04-22-2013
07:47 AM
|
0
|
0
|
576
|
POST
|
Ok... I solved the expando issue. I just wrapped that in another div and destroyed the inner div so not to run into issues with the left,center,right of the expandos. That being solved, does anyone have an idea on the +/- buttons not showing? Thanks..
... View more
04-18-2013
09:42 AM
|
0
|
0
|
576
|
POST
|
I am implementing a user submitted TOC widget from: http://www.arcgis.com/home/item.html?id=9b6280a6bfb0430f8d1ebc969276b109 I imagine a few of you have this in your applications as I have found no other widget that combines layer controls with legend display. The 2 issues I am having after I have it working is that it disables the expandopanes in the application and I cannot figure out how to get the +/- buttons on a group instead of a check box like the example here: http://gmaps-utility-gis.googlecode.com/svn/tags/agsjs/2.03/examples/toc.html The expandopane issue is a real killer for my app as I use them for a few things. If I take this code out that creates it�?� the expandos work fine. But as soon as I put the TOC in, the expandos stop working? dojo.connect(map, 'onLayersAddResult', function (results) {
var toc = new agsjs.dijit.TOC({
map: map,
style: "inline",
layerInfos: [{
layer: DynamicLayers,
title: "Base Data",
slider: true
}]
}, 'tocDiv3');
toc.startup();
}); Any ideas would really be appreciated Also, I forget to say that I needed to add this code above the current code to make it work or I get an error: Error: Unable to draw graphic (geometry:null, symbol:null): Tried to register widget with id==tocDiv2 but that id is already registered AND Error: Tried to register widget with id==tocDiv2 but that id is already registered var TOCDiv = dijit.byId('tocDiv2'); if (TOCDiv) { TOCDiv.destroyRecursive(true); } This may have something to do with it also... but I am not sure.
... View more
04-18-2013
08:30 AM
|
0
|
8
|
1533
|
POST
|
I went through the steps and finished the install but when the web adaptor page comes up for configuration I get: (firefox) The connection was reset The connection to the server was reset while the page was loading. Anyway I don't think its the web adaptor or not having the web adaptor that is causing me to have to login to see my services. It should work on 6080.
... View more
12-05-2012
10:23 AM
|
0
|
0
|
301
|
POST
|
Hello, I have an mapping application that works in testing but when I go to the site via internet I get a login screen for the map services I am using in the application. I have the service in the manager set to public and the way I am referencing them seem fine in the code: http://ServerName:6080/arcgis/rest/services/Sales_Support_Map/MapServer/0 http://wwwsitename.com/arcgis/rest/services/Sales_Support_Map/MapServer/0 (this does not work) When I go to this link to see the map service it also wants the admin account login. I did notice that the connection was: http://ServerName:6080/arcgis/admin in the properties. I am wondering now that my server is outward facing if I need to do something else so I can access my services in my mapping application? Thanks, Charles
... View more
12-05-2012
08:40 AM
|
0
|
4
|
629
|
POST
|
Thanks for the reply and thanks for giving this some thought... I would need to have a basic ArcGIS.com account for this to work correct? I would guess if that's true, it would be a hard sell being they decided to go with ArcGIS Server vs doing some hybrid solutions with ArcGIS.com. I like the idea mucho thou...\ thanks again...
... View more
10-30-2012
08:30 AM
|
0
|
0
|
83
|
POST
|
Jeff, I am looking to emulate the Map item gallery so users can select the mapping application that they need... much like whaqt you see when you go to the code gallery for this API... also, greetings from Texas we may have meet a while back when I worked in Hillsborough County. Cheers
... View more
10-29-2012
08:36 AM
|
0
|
0
|
420
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|