|
POST
|
for info this is now working thanks to ESRI consultant it was a setting in iis i ran aspnet_regiis -i This will register ASP.NET 2.0 as the default version with IIS. then restarted iis all working In the development stage, I usually put prox page in my application folder(like same folder as index.htm etc). It is much easier to debug and role out proxy related issues...
... View more
07-20-2012
09:01 AM
|
0
|
0
|
1413
|
|
POST
|
Is there a way to eliminate the call for feature's geometry, when all I want is the info window?! I' having trouble because Internet Explorer quits when trying to get geometry o what are apparently pretty complex polygon boundaries.... I don't NEED to see a highlighted boundary, can I just tweak it so it skips tat part and just shows the info window? Thanks V When you open the info window, you need specify the placement (point) of the info window. One option you can try is set up maxAllowableOffset to a big number so returned polygon get generalized and then get the centroid of the polygon as the placement of the info window.
... View more
07-18-2012
01:56 PM
|
0
|
0
|
519
|
|
POST
|
I am trying to write a function that will allow me to turn a function off with a checkbox. here is my code: jQuery("#centeronCurrentLocationCheckBox").change(function() {
if(showLocation == 0){
showLocation = 1;
}else{
showLocation = 0;
alert("hi");
}
}); I have another working checkbox that does the same as this, so I thought I would recreate it with just different titles for the function and id name. I also created a event handler function for this as well, but when I did, my map did not show up at all and I got an error that was located in the arcgis javascript api. any suggestions as to how to create the code to turn this function on and off? Why just use onchange handler with a variable to handler the situation using return statment? something like this:
function checkboxChanged(sender, evt)
{
if variable...
return; // equal to cancel
else
do something...
}
... View more
06-29-2012
11:38 AM
|
0
|
0
|
534
|
|
POST
|
Hi everybody, I'm using a floating pane inside the map area, I'm not able to constrain its movements in this area. For instance it can be moved mistakenly outside the map area and user can't no longer use it because it's hided. How can I bound the floating pane movements? Thank you very much. I think the movement of a floating pane is bound to it direct parent. Outside the direct parent is automatically hided unless you define the floating pane's moveable property. Here is an example: http://jsfiddle.net/phusick/3vTXW/
... View more
06-27-2012
10:12 AM
|
0
|
0
|
546
|
|
POST
|
Hi All, We recently changed out map to a Geographic Projection System and I need to re-create the json files used with the new spatial reference. The old file is located: http://ags2.geog.ucsb.edu/icm/js/bldgs2.json.txt I am not sure how the json file was created, but it is my understanding that it is in a structure that is compatible with dojo.data.ItemFileReadStore (since that's what we use in our map to import the file). Any clues how this json file was created will point me into the right direction regarding recreating it with the updated data..... Thanks in advance! ItemFileReadStore should be able to read or store any JSON structured contents
... View more
06-26-2012
12:43 PM
|
0
|
0
|
418
|
|
POST
|
Hi, Thanks for you respnonse. Forgive me, I am not quite following the logic here yet. //global variable var functionMode ="identify"; dojo.connect(map, "onclick", function(evt){ if (functionMode =="identify") { // do identify here } else{ return; } }); I would like to be able to identify by default from the start of the application. Then when I use the canned ArcGIS Javascript api Measure widget i would like to disable or hide the popup functionality. Can I use the above code to do this? If so, please explain a little more? I appreciate your help Thanks, What i am trying to say here is to set up a mechanics so that when the map' click event happens, the application knows this click event is for identification or measurement. There are a lots of ways to set up this mechanics. you just have to find the one best fit for your application.
... View more
06-22-2012
12:12 PM
|
0
|
0
|
3408
|
|
POST
|
Scrollbars are showing when map is in accordionPane for Chrome, Opera, and Safari, but not for Firefox or IE. How do I get rid of scrollbars so they don't show in Chrome? have you tried to set up accrodiionPan style like this? style="overflow:hidden;"
... View more
06-22-2012
10:34 AM
|
0
|
0
|
543
|
|
POST
|
Hi hzhu, Can you give an example of the code? I am new to javascript and am experiencing the same problem as Kirk. Thanks, Luci
//global variable
var functionMode ="identify";
dojo.connect(map, "onclick", function(evt){
if (functionMode =="identify")
{
// do identify here
}
else{
return;
}
});
... View more
06-22-2012
09:51 AM
|
0
|
0
|
3408
|
|
POST
|
I am trying to disable/deactivate/hide my infowindow when I use the standard arcgis javascript api measure widget and have it show when I am not measuring with the following code: dojo.connect(map, 'onLayersAddResult', function (result) { function disablepopup() { map.infoWindow.hide(); } ///Measurement variable var measurement = new esri.dijit.Measurement({map: map, onClick: disablepopup}, dojo.byId('measurementDiv')); measurement.startup(); <!--DEACTIVATES MEASUREMENT TOOLS AFTER MEASUREMENT--> dojo.connect(measurement, "onMeasureEnd", function(activeTool,geometry){ this.setTool(activeTool, false), map.infoWindow.hide() }); Currently, when I double click to finish measuring the info window hides as it I want it to but up until that point it popups up like normal when I start my measurement and while I am measuring. Does anyone have a fix for this? I have already thought and looked into the identify listener and tying the identify to a button but in this particular situation I need it to be disabled only when measuring and do not want the user to have to click an identify button. Thanks, Kirk Usually the identify task start with a map click event. One approach you can try is to use global variable to track the function mode. For example, only set this variable to true when you intend to do indentification. So in you click event handle, do nothing when this variable is false...
... View more
06-21-2012
11:25 AM
|
0
|
0
|
3408
|
|
POST
|
Hi All, I am going to be working with point data that is sensitive and cannot be in a published map service, not even with tokens. I want to do a spatial selection on the points to select the points within a polygon and return attribute information only. First, is it possible to do a spatial selection against data that is not published as a map service? I could choose to store the data in any of these formats that might work -(feature class, could be in file gdb, sde, layer in mxd, or even flat sql table). Second, is there any example of this? I looked at this tutorial (http://help.arcgis.com/en/arcgisserver/10.0/help/arcgis_server_dotnet_help/index.html#/GP_service_example_Selecting_data/00930000003w000000/) and at #2 "Geoprocessing Service with Source Map Document" it seems to indicate that a geoprocessing service can access datasets on a disk. My fallback idea is to run a straight sql query on the data and loop through each coordinate to check if it's inside or outside a polygon, but that will only be if I can't find a better way. Thanks, Chuck Runing a GP service without a source .mxd is a pretty good choice. You could be able to choose the feature class directly throught .sde file....
... View more
06-21-2012
08:30 AM
|
0
|
0
|
504
|
|
POST
|
Hzhu, Great example and explanation on getting Streetview added to the ESRI AGS Javascript API. Anyway that you plan on updating the example to work with the Gmaps API v3? As well as a newer version of the AGS Js API (2.8 or 3.0)? I also can't seem to get your current example to trigger a streetview change of location when I select a new location. I am going to try update your sample sometime soon but I want to reach out to you first. Thanks, Chris Pollard Sorry I don't believe we had a plan to upgrade to Google map API 3.0. My time is restraint. This sample should work on any versions of JS API. In terms of you question, you could upload the code if you do mind and i will take a look!
... View more
06-20-2012
12:52 PM
|
0
|
0
|
1839
|
|
POST
|
You mean something like this? http://maps.eastdevon.gov.uk/mapping/general/ (soon to be upgraded, which is why it isn't perfect) I adapted something I found here, but can't seem to find now - the old link was http://resources.esri.com/arcgisserver/apis/javascript/arcgis/index.cfm?fa=codeGalleryDetails&scriptID=16323 - but that doesn't seem to work. You need a JSON file of the extents - I found setting that up the hardest. ACM Edit found new link http://arcscripts.esri.com/details.asp?dbid=16323 If you only talk about use the drop down box instead of the datagrid to store the records and displayed a record on the map once the user select the record in the drop down, then use dojo.byId(yourdropdownid).value in where clause of your query. If you talk about update a dropdwon box, then see my previous answer and attached sample.
... View more
06-18-2012
10:28 AM
|
0
|
0
|
747
|
|
POST
|
I do some basic Javascript Webmaps and I want to recreate this sample; http://help.arcgis.com/en/webapi/javascript/arcgis/demos/fl/fl_zoomgrid.html However, instead of the data grid, i want to use a drop down menu. it seems pretty simple but i don't know where to start of is there a better example available. Thaks Are you talking about drop down menu or a drop down box -comboBox? Not sure about drop down menu. For comboBox. it is pretty much the same as you use the datagrid: create a ItemFileReadStore for comboBox' store!
... View more
06-15-2012
07:25 AM
|
0
|
0
|
747
|
|
POST
|
Yes, I'm using feature layer for this web service. Sorry, I am not clear on this. I mean you define the featurelayer url: as http://............/FeatureServer/0 OR http://................./MapServer/0 ?
... View more
06-14-2012
10:46 AM
|
0
|
0
|
790
|
|
POST
|
Hi, I am trying to hard code values for some fields I am accessing in the Attribute Inspector. Essentially, I would like to set a GIS_Editor and GIS_Edited_Date field(s) equal to the current user (logged in via a asp LoginName). I am not real sure where this would be done. I have a section in my code that I tried to do this, but it didn't work. Am I even looking in the right place? Here is my test code: dojo.connect(attInspector, "onAttributeChange", function (feature, fieldName, newFieldValue) {
//store the updates to apply when the save button is clicked
updateFeature.attributes[fieldName] = newFieldValue;
updateFeature.attributes["GIS_Editor"] = dojo.byId('LoginName').innerHTML;
updateFeature.attributes["GIS_Edited_Date"] = dojo.byId('ServerTime').innerHTML;
}); I would just do a little change on your onAttributeChange handler. like this:
dojo.connect(attInspector, "onAttributeChange", function (feature, fieldName, newFieldValue) {
if (fieldName=="GIS_Editor")
{
updateFeature.attributes["GIS_Editor"] = dojo.byId('LoginName').value;
}
else if (fieldName == "GIS_Edited_Date")
{
updateFeature.attributes["GIS_Edited_Date"] = dojo.byId('ServerTime').value;
}
else
updateFeature.attributes[fieldName] = newFieldValue;
});
For add a feature or upate a field where you use statement featureLayer.applyEdits. do the attribute setting as above before you apply the applyEdits. Hope it works for you.
... View more
06-13-2012
01:09 PM
|
0
|
0
|
1067
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 04-11-2011 12:16 PM | |
| 1 | 05-25-2017 08:26 AM | |
| 1 | 06-02-2017 07:37 AM | |
| 1 | 06-28-2011 07:02 AM | |
| 1 | 06-12-2017 10:10 AM |
| Online Status |
Offline
|
| Date Last Visited |
10-01-2024
09:57 PM
|