|
POST
|
can you post more of your code, or (better) a link to your live website?
... View more
07-19-2012
03:29 PM
|
0
|
0
|
873
|
|
POST
|
Hi Bill, Note the line at the top of the HTML page for that sample, which includes some specific CSS for the popup. Have you definitely included that in your code: <link rel="stylesheet" type="text/css" href="http://serverapi.arcgisonline.com/jsapi/arcgis/3.0/js/esri/dijit/css/Popup.css"> Steve
... View more
07-19-2012
03:27 PM
|
0
|
0
|
3022
|
|
POST
|
Hi Tbone, Welcome to the wonderful world of ArcGIS. First of all, can you let us know what software you have available to you? Do you definitely have ArcGIS Server, and are you trying to create a web-map? (If not, eg if you just want to make a printed map, you could probably do this a lot more simply using a desktop GIS program). You don't actually need to have a copy of ArcGIS Server, but this is typically where you would store your data (as layers). If you don't have access to ArcGIS Server you'll need to get your information into the web-map somehow. One option would be to create a KML file, and place it somewhere publicly accessible on the web. Then add this KML Layer to your web map. Another alternative would be to hard-code the required information into your application. Each tee and hole would have a location + any other relevant information (name, id, etc). A good approach is to write your data's definition in JSON format, then use a Feature Layer created from a Feature Collection. You would need to modify this script somewhat. You'd define a featureSet then populate it with the set of features which you'd build up from your JSON code. Good luck, Steve
... View more
07-19-2012
03:21 PM
|
0
|
0
|
1140
|
|
POST
|
feature layer is added to map. I would like to hover and get basic info, then click and execute onClick identify task. the hover works great, the popup is displayed and the graphic is cleared onMouseOut, but as soon as the onClick is fired, it immmediately gets replaced by the basic onMouseOver popup. I think this is because the onMouseOver and onMouseOut functions fire again when you move the mouse in order to click. At least, that's how it appears when I stitch up onMouseOver, onMouseOut and onClick functions on a polygon feature and add breakpoints to each function. You may need to rethink how this will work - I'm not sure how users will realise that they can see some information by hovering, but other information by clicking the same feature? Perhaps you could show the summary information on hover, and also have an Identify tool which retrieved the additional information. Selecting the Identify tool would disable the on-hover behaviour. Incidentally I don't understand why you need to run an identifyTask on the feature layer - isn't all the information that you need returned as attributes of the feature itself? Cheers, Steve
... View more
07-19-2012
03:09 PM
|
0
|
0
|
1102
|
|
POST
|
Is there a way to eliminate the call for feature's geometry, when all I want is the info window? Can you post a code sample?
... View more
07-18-2012
08:06 PM
|
0
|
0
|
608
|
|
POST
|
Hi Samir, You could try posting this on www.stackoverflow.com as it may be more of a general internet question, rather than specific to the ArcGIS Server JS API. Another approach is to simplify the problem by trying to get your buttons, menus and toolbars to interact with 2 divs on a page (eg, have two divs with a span each. Depending on which tab is in focus, update that span when you press a button). Once that's working, you'll have a pattern which works for two maps on a map, and you can hook it up to the ArcGIS-specific functions. Good luck, Steve
... View more
07-17-2012
03:39 PM
|
0
|
0
|
2173
|
|
POST
|
I guess I need to review my code with a fine toothed comb to find out what is going on here. Any ideas you may have are greatly appreciated. I'm happy to take a look when time permits. In the meanwhile, start combing.... and good luck!
... View more
07-17-2012
02:55 PM
|
0
|
0
|
3037
|
|
POST
|
I need the ability for a field operator (using an iPad) to select a feature in a geodatabase served via ArcGIS Server, and scan its barcode, which should be entered into the geodatabase as an attribute. 1) Will the ArcGIS iOS app handle this capability - can it talk to an external barcode reader, and use the output of the barcode reader to edit an attribute? 2) Assuming that it can't and we need to write an our own app, are there any mechanisms within the iOS API which allow talking to hardware devices? The ideal scenario would be a wizard-based approach which prompted the user to scan the barcode when a suitable feature was clicked, then entered the resulting barcode text as an attribute. A more manual, step-by-step workaround would be acceptable if necessary. I've assumed that an external barcode reader, connected via Bluetooth, will be necessary as it's impractical to use the iPad's own camera due to accessibility issues (eg pits). Thanks
... View more
07-17-2012
02:48 PM
|
0
|
9
|
6002
|
|
POST
|
I am guessing that I must have some sort of listening action that is performed when zooming that is perhaps interfering with the query action which doesn't allow the map refresh to complete successfully. This is likely causing the coordinate extent to not update to the new map extent, therefore the coordinate readout lockups, and apparently it disables the map click listener so that the identify task will not execute properly. Hi Matthew, That sounds like a reasonable assumption. Are you able to link to a working version of your code so we can test it? You mentioned that you upgraded from previous versions of the API - what happens if you revert the API to version 2.6, 2.5, etc? Cheers, Steve
... View more
07-13-2012
10:17 PM
|
0
|
0
|
3037
|
|
POST
|
As you know, the KMLLayer relies on a utility running on arcgis.com to convert a KML file to JSON. This utility reads the symbology from the KML file and creates renderers that are applied to the resulting feature layers. I didn't actually know that - thanks, it really helps. Cheers, Steve
... View more
07-13-2012
10:04 PM
|
0
|
0
|
583
|
|
POST
|
See the simple sample which I made by modifying an Esri sample, which lloads a KML file onto the basemap. Where is the symbology being defined? If I break around line 38, I can't see where the symbology is specified.
var kmlUrl = 'http://www.ci.redding.ca.us/KML/SacRiverTrail.kml';
kml = new esri.layers.KMLLayer(kmlUrl);
map.addLayer(kml);
dojo.connect(kml, 'onLoad', function(lyr) {
// Collect the line features from the KML layer
kmlGeoms = dojo.map(lyr.getLayers()[0].graphics, function(g) {
//g.symbol is blank, so where is the symbol coming from?
return g.geometry;
});
Thanks, Steve
... View more
07-13-2012
03:22 AM
|
0
|
2
|
1585
|
|
POST
|
You could try using esri.request to read in the layer information.
... View more
07-13-2012
02:30 AM
|
0
|
0
|
746
|
|
POST
|
I seem to be getting an error at the : var taxLotExtent=selecedTaxLot.geometry.getExtent(); at which point it informs me that the selected TaxLot is undefined. Hi Dorothea, Without actually running your code it's hard (for me at least) to say what's wrong. But in this case you're probably seeing an error because there is no value for selectedTaxLot. You could try something like this to debug it.
function onRowClickHandler(evt){
var clickedTaxLotId = grid.getItem(evt.rowIndex).OBJECTID;
var selectedTaxLot;
for (var i=0, il=map.graphics.graphics.length; i<il; i++) {
var currentGraphic = map.graphics.graphics;
if ((currentGraphic.attributes) && currentGraphic.attributes.OBJECTID == clickedTaxLotId){
selectedTaxLot = currentGraphic;
break;
}
}
if(selectedTaxLot.length > 0) {
var taxLotExtent = selectedTaxLot.geometry.getExtent();
map.setExtent(taxLotExtent, true);
} else {
alert("can't find a corresponding tax lot to select");
}
}
Good luck, Steve
... View more
07-13-2012
02:28 AM
|
0
|
0
|
864
|
|
POST
|
Note that this only restricts you to the same zoom level as the maximum extent of the layer - you'll still be able to pan to another location. If that's a problem (ie, you want to prevent the user from navigating away from the study area) you could write a function which examines the map extent after panning or zooming (see the onExtentChange event) and nudges it back to the desired extent. Steve
... View more
07-13-2012
02:21 AM
|
0
|
0
|
1732
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 11-17-2014 08:45 PM | |
| 1 | 03-15-2011 04:23 PM | |
| 1 | 10-18-2019 12:50 AM | |
| 3 | 01-22-2019 02:33 PM | |
| 1 | 09-26-2011 10:36 PM |
| Online Status |
Offline
|
| Date Last Visited |
10-20-2022
12:19 AM
|