|
POST
|
Clint, Is this problem only occurring in a particular browser? Maybe IE? If so we added a sample that may help, take a look at the autofocus and refocus code. http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples_start.htm#jssamples/map_dialog.html
... View more
07-14-2010
10:07 AM
|
0
|
0
|
571
|
|
POST
|
Here is a link to a help topic that explains how to work with the bing maps keys. http://help.arcgis.com/EN/webapi/javascript/arcgis/help/jshelp_start.htm#jshelp/ve_getting_started.htm And here's a link to a sample that shows this in action: http://help.arcgis.com/EN/webapi/javascript/arcgis/demos/ve/ve_layer.html
... View more
06-30-2010
10:52 AM
|
0
|
0
|
3407
|
|
POST
|
The ArcGIS JavaScript 2.0 final version was released today. See the ArcGIS Server Blog for more details: http://blogs.esri.com/Dev/blogs/arcgisserver/archive/2010/06/29/ArcGIS-APIs-for-JavaScript-and-Flex_3A00_-Version-2.0-now-final_2100_.aspx
... View more
06-29-2010
09:58 AM
|
0
|
1
|
838
|
|
POST
|
At 2.0 Final the JavaScript API will be updated to have a bingMapsKey property.
... View more
06-23-2010
10:37 AM
|
0
|
0
|
3407
|
|
POST
|
John, I forgot to mention in my post yesterday that I submitted a bug for the issue with the overview map logo. As far as the sizing issue, have you tried setting the width and height on the div itself? <div id="ovMap" style="width:100%;height:100%;"></div> If you are using Firefox, it might also be helpful to inspect the overview map using the 'Click an element in the page to inspect' tool. Then view the CSS for this element to see if any of the properties you've set are being overridden. I sometimes find it helpful to use the Layout tab (click the HTML tab first). This tab shows the width, height, border, padding and margin of the selected element. You can use the layout to modify the properties and immediately see the effect the new sizes have. Here's some info on using Layout: http://getfirebug.com/layout Kelly
... View more
06-03-2010
07:35 AM
|
0
|
0
|
2051
|
|
POST
|
What behavior are you seeing with the width and height. I created a quick test that uses the accordion container and the width/height of the overview map worked. I've attached a zip file containing my test page.
... View more
06-02-2010
01:44 PM
|
0
|
0
|
2051
|
|
POST
|
I am noticing the same. Also, my feature selection are not showing any longer. Greg, Can you provide more details about the feature selection issue you are experiencing?
... View more
05-27-2010
11:27 AM
|
0
|
0
|
1788
|
|
POST
|
We released an update to v2.0 (beta) of the JavaScript API today, here are the highlights of the release: The overview map, originally a code gallery sample, is now part of the JavaScript API. The documentation is here: http://help.arcgis.com/EN/webapi/javascript/arcgis/help/jsapi_start.htm#jsapi/overviewmap.htm And we have three samples showing how to work with the dijit: http://help.arcgis.com/EN/webapi/javascript/arcgis/help/jssamples_start.htm#jssamples/map_overviewmap.html http://help.arcgis.com/EN/webapi/javascript/arcgis/help/jssamples_start.htm#jssamples/map_overviewmapexternal.html http://help.arcgis.com/EN/webapi/javascript/arcgis/help/jssamples_start.htm#jssamples/layout_styledmap.html We�??ve added several samples that show how to work with Image Services, view them in the Image Service folder on the JS API Samples page: http://help.arcgis.com/EN/webapi/javascript/arcgis/help/jssamples_start.htm We added tooltips to the drawToolbar, these are configurable and can be turned off by setting the showTooltips constructor option to false. We added Temporal rendering support for polyline and polygon features, we have a sample for point features. http://help.arcgis.com/EN/webapi/javascript/arcgis/help/jssamples_start.htm#jssamples/renderer_temporal.html We added the esri logo to the maps, the logo can be turned off by setting the Map constructor option for logo to false.
... View more
05-27-2010
11:21 AM
|
0
|
0
|
1788
|
|
POST
|
Can you provide details on the type of issues you are seeing with centerAndZoom at 2.0? I just tested centerAndZoom base 2.0 version, but it still looks like not work well..... Any comment? Regards, Bing
... View more
05-11-2010
10:51 AM
|
0
|
0
|
1415
|
|
POST
|
You can download the proxy page and read more about how to work with one here: http://help.arcgis.com/EN/webapi/javascript/arcgis/help/jshelp_start.htm#jshelp/ags_proxy.htm
... View more
04-29-2010
09:09 AM
|
0
|
0
|
463
|
|
POST
|
You may be running into the issue described in the following forum thread. This is a problem only in IE, here's the bug number and the link below has a patch you can apply: NIM054763: When running an application that uses the Dojo Border Container and Content Panes for layout an invalid argument error occurs when the browser is resized. This only happens in IE. http://forums.esri.com/Thread.asp?c=158&f=2396&t=301691&mc=5
... View more
04-27-2010
10:02 AM
|
0
|
0
|
462
|
|
POST
|
Ravi, We don't have a method directly on the feature layer to apply a spatial filter - I don't see one in Flex either. However if you want to apply a spatial query directly to the feature layer one approach would be to add a feature layer in selection mode then use selectFeatures to perform a spatial query. Here's a sample that shows how this works, here only features within the specified extent are drawn on the map. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>FeatureLayer On Demand</title>
<script type="text/javascript">djConfig = { parseOnLoad:true };</script>
<script type="text/javascript" src="http://serverapi.arcgisonline.com/jsapi/arcgis/?v=2.0"></script>
<link rel="stylesheet" type="text/css" href="http://serverapi.arcgisonline.com/jsapi/arcgis/2.0/js/dojo/dijit/themes/tundra/tundra.css">
<script type="text/javascript">
dojo.require("esri.map");
dojo.require("esri.layers.FeatureLayer");
dojo.require("dijit.form.Button");
dojo.require("dijit.Dialog");
var mapLayers = []; //array of layers in client map
var map;
function init() {
var extent = new esri.geometry.Extent({"xmin":-13337231.937022427,"ymin":3914529.1302062804,"xmax":-12909184.578625461,"ymax":4220277.2433469705,"spatialReference":{"wkid":102100}});
map = new esri.Map("map", { extent:extent});
dojo.connect(map, "onLoad", initOperationalLayer);
var imagery = new esri.layers.ArcGISTiledMapServiceLayer("http://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer");
map.addLayer(imagery);
}
function initOperationalLayer(map) {
var featureLayer = new esri.layers.FeatureLayer("http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Earthquakes/Since_1970/MapServer/0",{
mode: esri.layers.FeatureLayer.MODE_SELECTION,
outFields: ["*"]
});
map.addLayer(featureLayer);
var extent = new esri.geometry.Extent({"xmin":-13228997.10497058,"ymin":3961002.843403707,"xmax":-13014973.425772188,"ymax":4113876.899973986,"spatialReference":{"wkid":102100}});
var query = new esri.tasks.Query();
query.geometry = extent;
featureLayer.selectFeatures(query,esri.layers.FeatureLayer.SELECTION_NEW);
}
dojo.addOnLoad(init);
</script>
</head>
<body class="tundra">
<div style="position:relative;">
<div id="map" style="width:700px; height:500px; border:1px solid #000;"></div>
</div>
</body>
</html>
... View more
04-27-2010
09:52 AM
|
1
|
0
|
2863
|
|
POST
|
I think it might be the symbology, can you try replacing the line where the renderer for the selection layer with this one: selectionLayer.setRenderer(new esri.renderer.SimpleRenderer(new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_DASH,new dojo.Color([0,255,200]), 14))); And the default renderer line with this one: var defaultRenderer = new esri.renderer.SimpleRenderer(new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_SOLID, new dojo.Color([255,0,0]), 2));
... View more
04-26-2010
02:12 PM
|
0
|
0
|
1302
|
|
POST
|
Ravi, I switched my test case to use a feature layer instead, mine is a feature layer pointing to a map service and the test case still works. This service is public if you'd like to test: opLayer = new esri.layers.FeatureLayer("http://servicesbeta.esri.com/ArcGIS/rest/services/Health/h1n1/MapServer/0",{
mode: esri.layers.FeatureLayer.MODE_SNAPSHOT
}); Which mode are you specifying for your feature layer? We recommend using MODE_SNAPSHOT if you aren't using a large amount of data. If you have a large amount of data you may want to use an ArcGISDynamicMapServiceLayer instead. ONDEMAND_MODE is not recommended because it can result in too many requests to the server.
... View more
04-26-2010
10:15 AM
|
0
|
0
|
1182
|
|
POST
|
Ravi, You can use the queryFeatures method to query the feature layer using a spatial filter. The queryFeatures method takes in input query that has a geometry property you can use to define the filter geometry. http://help.arcgis.com/EN/webapi/javascript/arcgis/help/jsapi_start.htm#jsapi/query.htm
... View more
04-26-2010
10:05 AM
|
0
|
0
|
2863
|
| 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 |
Offline
|
| Date Last Visited |
Friday
|