|
POST
|
Ben, I just ran a quick test using your services and I can see the fields you specify in the info template. Is there another field you were trying to view? Here's a link where you can see the test running: http://jsfiddle.net/khutchins/KW55w/
... View more
10-18-2011
08:43 AM
|
0
|
0
|
2531
|
|
POST
|
Do you have a service or application url that you can post? Or a public webmap from ArcGIS.com that contains the layer that is causing problems in the ArcGIS API for Javascript? Ok well I'm in the same boat as you. I have just verified that I can see all attributes in arcgis.com and in ArcMap. Is this something we should report? Would you mind posting your work around? Do you mean you use map.addlayer() rather than adding all feature layers at once? I'm more than happy to do something hacky. Thanks, James
... View more
10-17-2011
03:56 PM
|
0
|
0
|
2531
|
|
POST
|
The Feature Collection sample in the Feature Layer folder shows how to work with popups - including creating a template. http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples/fl_featurecollection.html Mobile Popups use the same approach you'll just need to add the mobile popup css reference and the dojo.require for mobile popup. <link rel="stylesheet" type='text/css' href='http://serverapi.arcgisonline.com/jsapi/arcgis/2.4/js/esri/dijit/css/PopupMobile.css'/> dojo.require("esri.dijit.PopupMobile"); I think the part you may be missing from your code is where you associate features with the popup. Once you do this the navigation should appear. Here's a snippet that shows how to associate the currently clicked feature with the popup. //associate the features with the popup on click
dojo.connect(featureLayer,"onClick",function(evt){
map.infoWindow.setFeatures([evt.graphic]);
});
... View more
10-17-2011
03:48 PM
|
0
|
0
|
544
|
|
POST
|
Unfortunately we do not have a Code Assist plug-in for any version of the API that works with Aptana Studio 3. At version 3, Aptana changed the way Code Assist works and there have been some technical challenges with building Code Assist for version 3. We are working to resolve these issues and hope to have an update soon.
... View more
10-14-2011
01:32 PM
|
0
|
0
|
2123
|
|
POST
|
I ran a quick test using an older Motorola Droid (Android version 2.2.2) using the Attachment Editor sample from the help and was able to successfully browse to a photo and add it as an attachment. http://help.arcgis.com/en/webapi/javascript/arcgis/demos/ed/ed_attachments.html Perhaps this is an issue with certain phones? Kelly
... View more
10-14-2011
11:43 AM
|
0
|
0
|
1640
|
|
POST
|
You can specify all (or some) of the fields you want to include using the outFields parameter. In this example all the fields will be returned: locator.addressToLocations(address,["*"]);
... View more
10-14-2011
08:31 AM
|
0
|
0
|
573
|
|
POST
|
Many mobile browsers, including Safari for iPhone, do not support file upload so you won't be able to use the attachment editor. There are some third party apps that can help you add this functionality to your app. See the 'Volunteered Geographic Information' section of this blog post for details on one potential solution: http://blogs.esri.com/Dev/blogs/arcgisserver/archive/2010/09/01/Building-Web-applications-for-iOS-and-Android-using-dojox.mobile.aspx
... View more
10-14-2011
08:26 AM
|
0
|
0
|
1640
|
|
POST
|
You can download the source code on ArcGIS.com. Here's the link to the template, scroll down to the bottom and you'll find the download link in the Code Attachment section: http://www.arcgis.com/home/item.html?id=89db99ee00834c85b3f9284d9e81c964
... View more
10-13-2011
10:30 AM
|
0
|
0
|
1178
|
|
POST
|
We have similar functionality in the Basic Viewer template and I can't reproduce the issue there. Here's a link to an application built on the template. http://apps.arcgis.com/hosted/OnePane/basicviewer/index.html?appid=6674f8465fc7479a91dffb366376e1cb Do you have a url for your app?
... View more
10-13-2011
10:11 AM
|
0
|
0
|
1178
|
|
POST
|
The Edit toolbar allows you to move geometries. Here's a link to a sample that shows how to use the Edit toolbar: http://help.arcgis.com/en/webapi/javascript/arcgis/demos/toolbar/toolbar_edit.html
... View more
10-11-2011
08:18 AM
|
0
|
0
|
739
|
|
POST
|
Liz, I think the easiest option would be to disable the attribute inspector's delete button by setting showDeleteButton to true: var layerInfo = [{
'featureLayer': results[0].layer,
'showAttachments':true,
'showDeleteButton':false,
'isEditable':true,
'fieldInfos':[
{'fieldName':'requesttype','label':'Type','isEditable':true},
{'fieldName':'address_num','label':'Issue Address #','isEditable':true},
{'fieldName':'streetname','label':'Issue Street Name','tooltip': 'Start typing the street name for the list to populate','isEditable':true},
{'fieldName':'email','label':'Contact Info','isEditable':true},
{'fieldName':'comment','label':'Comments','isEditable':true,'stringFieldOption':esri.dijit.AttributeInspector.STRING_FIELD_OPTION_TEXTAREA}
]
}]; Then add a jquery mobile button to the attribute inspector dialog and style this to suit your needs. When users click this new delete button you can use featureLayer.applyEdits to delete the current feature. Here's an example of code you could add to the delete button's onclick event function deleteFeature(){
var graphics = citizenRequestLayer.getSelectedFeatures();
if(graphics.length > 0){
//remove any features
citizenRequestLayer.applyEdits(null,null,graphics,function(){
console.log('Features deleted');
$.mobile.changePage("#mapPage",null,true,true);
});
}
} And here's an example of adding the jquery button. <div data-role="page" id="attributeDialog" data-theme="c">
<div data-role="header" data-backbtn="false">
<h1>Report</h1>
</div>
<div data-role="content" data-inset="true">
<!--<center><h6>(Please use the delete button to restart if the estimated location is incorrect)</h6></center>-->
<div>
Estimated Location:
<div id="currentAddress" title="Estimated Location" style="font-weight:bold;text-align:center;width:100%;"></div>
</div>
<br>
<a href="#" data-role="button" onclick="deleteFeature();" data-inline='true'>Delete</a>
<br>
<div id="attributeDiv"></div>
<br>
<a href="http://gis.manchesterct.gov/MObile/IssueRequests.html" onclick="alertsubmit();" data-role="button">Finish</a>
</div>
</div>
... View more
10-10-2011
08:51 AM
|
0
|
0
|
1640
|
|
POST
|
It requires an extra query but you could use the query task's executeForCount method to return a count of the features that match the query. Comparing this to the results returned from execute would let you know if partial results were returned. If you are working with feature layers you could use the queryCount method.
... View more
10-07-2011
02:11 PM
|
0
|
0
|
521
|
|
POST
|
Liz without seeing more of the code its hard to know where the 'bubble' is coming from. Is your application public? If so can you provide the url. If not can you post your code?
... View more
10-07-2011
01:57 PM
|
0
|
0
|
1640
|
|
POST
|
The easiest way to find out what that bubble is so you can remove it is to use Firebug or Chrome Developer tools to inspect it. Both Chrome Dev Tools and Firebug have a tool that allows you to inspect elements on the page. Click the tool then click the 'bubble' and you can find out information about the HTML and CSS classes associated with the element.
... View more
10-07-2011
08:23 AM
|
0
|
0
|
2313
|
|
POST
|
Alex, While we don't maintain online copies of the SDK (reference and samples) you can download the SDK for versions 2.0 and greater using the download page. This would allow you to setup a local copy of the SDK that uses older versions. Each download file also has all of the samples as they existed at that version. To download the help view the 'Download' section of the following help topic: http://help.arcgis.com/en/webapi/javascript/arcgis/help/jshelp/intro_accessapi.html
... View more
10-06-2011
11:10 AM
|
0
|
0
|
1296
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 03-31-2026 08:27 AM | |
| 1 | 03-26-2026 09:07 AM | |
| 1 | 03-26-2026 10:11 AM | |
| 1 | 03-24-2026 02:23 PM | |
| 1 | 03-17-2026 02:50 PM |
| Online Status |
Online
|
| Date Last Visited |
55m ago
|