|
POST
|
What are you trying to do? If you want to manually figure out if a feature layer's extent overlaps with the current map extent, use the feature layer's fullExtent property. You can test if the feature layer's extent intersects with the map's extent.
... View more
09-22-2011
12:32 PM
|
0
|
0
|
1759
|
|
POST
|
Please take a look at the comments I added to the code in my previous post ;). The root of the issue is that esri.geometry.Point objects do not have a getExtent method. Since you're just trying to center the map, pass your selectedTaxLot.geometry object to map.centerAt() and it will work.
... View more
09-22-2011
12:28 PM
|
0
|
0
|
2111
|
|
POST
|
That is unfortunate about support. I think it'd be cool if you gave them a thank you in the SL forum (that is, if you haven't already ;)).
... View more
09-22-2011
10:20 AM
|
0
|
0
|
548
|
|
POST
|
The main issue is that the sample you're working from uses polygon data and you're using points. To get your code working, I added the following to your onRowClickHandler function:
// points don't have a getExtent() method...
// if selectedTaxLot is a point, center the map on it
if ( selectedTaxLot.geometry.declaredClass == 'esri.geometry.Point' ) {
map.centerAt(selectedTaxLot.geometry);
var sp = map.toScreen(selectedTaxLot.geometry);
map.infoWindow.show(selectedTaxLot.geometry, map.getInfoWindowAnchor(sp));
} else {
var taxLotExtent = selectedTaxLot.geometry.getExtent();
var screenpoint = map.toScreen(selectedTaxLot.geometry.getExtent().getCenter());
var mappoint = map.toMap(screenpoint);
map.centerAt(mappoint);
map.infoWindow.show(taxLotExtent.getCenter(), map.getInfoWindowAnchor(screenpoint));
}
If you know you're always going to use point data you can remove the if statement and just go with the code to handle points.
... View more
09-22-2011
10:03 AM
|
0
|
0
|
2111
|
|
POST
|
You're welcome. The other thing I'll add is that these are user forums and are not official way of getting Esri support. Lots of Esri folks hang out in these forums, but they are not technically obligated to do so.
... View more
09-22-2011
07:36 AM
|
0
|
0
|
1971
|
|
POST
|
Are you working from the Show find task results in a DataGrid sample? Can you post all of your code?
... View more
09-21-2011
11:05 PM
|
0
|
0
|
2111
|
|
POST
|
Glad you got it worked out. Not sure why restarting the SOM fixed it but...I guess that's how things go sometimes. Regarding responsiveness...I don't have a good excuse/reason. We've been busy but I'll spare you the details. You can always get my attention via twitter...
... View more
09-21-2011
10:44 PM
|
0
|
0
|
1971
|
|
POST
|
It's a bug and is now logged as NIM072979. It will be addressed in a future release (not 2.5). Until it's fixed, please create your nav toolbar before the map loads.
... View more
09-21-2011
12:46 PM
|
0
|
0
|
965
|
|
POST
|
Have you tried using the pattern shown in this sample: http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples/map_switch_layer_on_zoom.html Is your service with the large scales available publicly?
... View more
09-21-2011
08:03 AM
|
0
|
0
|
1971
|
|
POST
|
I will take a look. Will post back with what I find...if it is a bug, can you create your nav toolbar before the map loads?
... View more
09-20-2011
01:19 PM
|
0
|
0
|
965
|
|
POST
|
Yes. I would see this as allowing someone to search via a text box or drop down list. When the search runs (a "search" button is clicked or the value of the drop down changes), the app hits a layer in a map service via a queryTask. Once the queryTask returns results, you loop through them and then use an if/then or switch statement to do something.
... View more
09-20-2011
09:47 AM
|
0
|
0
|
755
|
|
POST
|
JavaScript, as used by the browsers, is a client side technology. You'll need something on your server to bridge the gap between SQL Server and a JavaScript app. This is one of the big features that you get with ArcGIS Server.
... View more
09-20-2011
09:43 AM
|
0
|
0
|
890
|
|
POST
|
Additionally, if you want to use a wkid:4326 extent to specify the extent for a map in web mercator (wkid:102100), there is a helper method to convert between the two: esri.geometry.geographicToWebMercator. Also check out the Working with Extents help topic in the conceptual help.
... View more
09-20-2011
09:41 AM
|
0
|
0
|
758
|
|
POST
|
Please post the code showing how you're manually defining your LODs.
... View more
09-20-2011
09:11 AM
|
0
|
0
|
1971
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 01-23-2012 07:54 AM | |
| 1 | 05-28-2010 08:31 AM | |
| 1 | 11-12-2012 08:12 AM | |
| 3 | 02-23-2012 10:57 AM | |
| 1 | 06-27-2011 08:51 AM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:23 AM
|