POST
|
Most of the API's functionality should work well on Android. You can test this out by navigating to the help site on your Android device. If you go to http://links.esri.com/javascript from a mobile device you'll see a mobile version of the samples page so you can test the samples out on your device.
... View more
02-03-2011
07:26 AM
|
0
|
0
|
238
|
POST
|
The identify task allows you to specify a tolerance but the query task does not. http://help.arcgis.com/EN/webapi/javascript/arcgis/help/jsapi_start.htm#jsapi/identifytask.htm If you want to use the query task to query points you'll have to generate a tolerance. This blog post has some sample code that does this: http://blogs.esri.com/Dev/blogs/arcgisserver/archive/2009/01/15/Querying-points-and-lines-on-click-with-the-ArcGIS-JavaScript-API.aspx
... View more
02-01-2011
05:08 PM
|
0
|
0
|
198
|
POST
|
It looks like there may be some issues displaying VML after applying the security update. Here's a forum thread from Internet Explorer Tech Center regarding this issue: http://social.technet.microsoft.com/Forums/en/ieitpropriorver/thread/f3cf7105-fa1b-40ed-8462-111d86757092 If you are using McAfee virus software see here for information: https://kc.mcafee.com/corporate/index?elq_mid=4718&elq_cid=372908&page=content&id=KB70810
... View more
01-18-2011
08:04 AM
|
0
|
0
|
295
|
POST
|
Here are a few links that might help. This info is from the rest doc: http://help.arcgis.com/en/arcgisserver/10.0/apis/rest/mapserver.html#response Support for time-aware map services was added at 10. If the map supports quering and exporting maps based on time, the response will include a timeInfo property which includes information such as the map's time extent and the map's native time reference. However, note that the REST API always encodes time in UTC (milliseconds from epoch). We also have some information on working with time in the JS API 'Working with time-aware layers' help doc: http://help.arcgis.com/EN/webapi/javascript/arcgis/help/jshelp_start.htm#jshelp/inside_temporal.htm
... View more
01-14-2011
06:08 AM
|
0
|
0
|
1842
|
POST
|
Mark - I took a look at your code on the other thread and it looks fine and works with sample service time enabled layers. If you view your service in the services directory and click the JavaScript link does the service display?
... View more
01-14-2011
06:01 AM
|
0
|
0
|
513
|
POST
|
No you don't have to use ArcGIS.com, its just a really easy way to build a map that you plan on embedding into an existing web page.
... View more
01-12-2011
06:21 AM
|
0
|
0
|
2088
|
POST
|
Can you post your code? Perhaps there's something in the code that is causing an issue.
... View more
01-12-2011
06:18 AM
|
0
|
0
|
617
|
POST
|
ArcGIS.com makes it easy to build a map to embed in an existing web site, here's a link to a help topic with instructions: http://help.arcgis.com/en/arcgisonline/help/index.html#//010q00000046000000.htm
... View more
01-11-2011
01:23 PM
|
0
|
0
|
2088
|
POST
|
I tested with both msd and mxd and can't reproduce but I'll keep researching this.
... View more
01-11-2011
07:02 AM
|
0
|
0
|
1630
|
POST
|
I have seen similar issues if I have the 'Enable time on map' button on ArcMap's Time Slider window pressed. The link below is to the server help, can you check your map document in ArcMap and see if the Enable Time on Map button on the Time Slider window is pressed? http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//005z0000000z000000.htm
... View more
01-11-2011
07:01 AM
|
0
|
0
|
617
|
POST
|
One option might be to do something like this:
<script type="text/javascript">
dojo.require('esri.layers.FeatureLayer');
var baseURL;
var map;
function init() {
var initExtent = new esri.geometry.Extent({"xmin":-8590965,"ymin":4695877,"xmax":-8553434,"ymax":4711164,"spatialReference":{"wkid":102100}});
map = new esri.Map("map",{extent:initExtent});
var basemap = new esri.layers.ArcGISTiledMapServiceLayer("http://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer");
map.addLayer(basemap);
baseURL = "http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/HomelandSecurity/operations/FeatureServer";
esri.request({
url:baseURL,
content:{f:"json"},
callbackParamName:"callback",
load:addLayers,
error:esriConfig.defaults.io.errorHandler
});
}
function addLayers(response,args){
dojo.forEach(response.layers,function(layer){
var featureLayer = new esri.layers.FeatureLayer(baseURL + "/" + layer.id,{
mode: esri.layers.FeatureLayer.MODE_ONDEMAND,
outFields: ["*"]
});
map.addLayer(featureLayer);
});
}
dojo.addOnLoad(init);
</script>
... View more
01-07-2011
02:54 PM
|
0
|
0
|
351
|
POST
|
Glen, I made a few changes and here's a working version that uses a full-screen map. Basically I put the Title Pane within the map div tags.
<!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">
<!--The viewport meta tag is used to improve the presentation and behavior of the samples
on iOS devices-->
<meta name="viewport" content="initial-scale=1, maximum-scale=1,user-scalable=no"/>
<title>
</title>
<link rel="stylesheet" type="text/css" href="http://serverapi.arcgisonline.com/jsapi/arcgis/2.1/js/dojo/dijit/themes/claro/claro.css">
<style type="text/css">
html, body { height: 100%; width: 100%; margin: 0; padding: 0; }
#map{
padding:0;
}
</style>
<script type="text/javascript">
var djConfig = {
parseOnLoad: true
};
</script>
<script type="text/javascript" src="http://serverapi.arcgisonline.com/jsapi/arcgis/?v=2.1"></script>
<script type="text/javascript">
dojo.require("dijit.dijit"); // optimize: load dijit layer
dojo.require("dijit.layout.BorderContainer");
dojo.require("dijit.layout.ContentPane");
dojo.require("esri.map");
dojo.require("esri.virtualearth.VETiledLayer");
dojo.require("dijit.TitlePane");
dojo.require("esri.dijit.BasemapGallery");
dojo.require("esri.arcgis.utils");
dojo.require("dijit.layout.TabContainer");
var map = null;
function init() {
var initExtent = new esri.geometry.Extent({"xmin":-11727455.861413078,"ymin":4861652.558126574,"xmax":-11706340.132349325,"ymax":4871512.934775349,"spatialReference":{"wkid":102100}});
map = new esri.Map("map",{extent:initExtent});
var initBasemap = new esri.layers.ArcGISTiledMapServiceLayer("http://server.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer");
map.addLayer(initBasemap);
createBasemapGallery();
dojo.connect(dijit.byId('map'), 'resize', resizeMap);
}
function createBasemapGallery() {
var basemapGallery = new esri.dijit.BasemapGallery({
showArcGISBasemaps: true,
bingMapsKey: 'Av1bH4keF8rXBtxWOegklgWGCYYz8UGYvBhsWKuvc4Z15kT76xVFOERk8jkKEDvT',
map: map
}, "basemapGallery");
basemapGallery.startup();
dojo.connect(basemapGallery, "onError", function(msg) {console.log(msg)});
}
function resizeMap() {
//resize the map when the browser resizes - view the 'Resizing and repositioning the map' section in
//the following help topic for more details http://help.esri.com/EN/webapi/javascript/arcgis/help/jshelp_start.htm#jshelp/inside_guidelines.htm
var resizeTimer;
clearTimeout(resizeTimer);
resizeTimer = setTimeout(function() {
map.resize();
map.reposition();
}, 500);
}
//show map on load
dojo.addOnLoad(init);
</script>
</head>
<body class="claro">
<div dojotype="dijit.layout.BorderContainer" design="headline" gutters="false" style="width:100%;height:100%;margin:0;">
<div id="map" dojotype="dijit.layout.ContentPane" region="center" style="border:1px solid #000;padding:0;">
<div style="position:absolute;width:500px;height:500px; right:175px; top:10px; z-Index:999;">
<div dojoType="dijit.TitlePane" title="Switch Basemap" closable="false" open="true">
<div id="tabContainer" dojoType="dijit.layout.TabContainer" style="width:100%; height:100%">
<div id="one" dojoType="dijit.layout.ContentPane" title="Tab 1" selected="true">
Tab 1 content
</div>
<div id="two" dojoType="dijit.layout.ContentPane" title="Tab 2">
Tab 2 content
</div>
<div id="three" dojoType="dijit.layout.ContentPane" title="Tab 3">
Tab 3 content
</div>
</div>
</div>
</div>
</div>
</body>
</html>
... View more
01-06-2011
06:49 AM
|
0
|
0
|
1179
|
POST
|
Do you have a link to a test app that shows the problem?
... View more
01-05-2011
11:47 AM
|
0
|
0
|
220
|
POST
|
I created a quick test page and wasn't able to reproduce the issue. I have seen a similar issue when trying to display a tab container in a closed title pane, but it doesn't look like that's the case in your code. <!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">
<!--The viewport meta tag is used to improve the presentation and behavior of the samples
on iOS devices-->
<meta name="viewport" content="initial-scale=1, maximum-scale=1,user-scalable=no"/>
<title>
</title>
<link rel="stylesheet" type="text/css" href="http://serverapi.arcgisonline.com/jsapi/arcgis/2.1/js/dojo/dijit/themes/claro/claro.css">
<style type="text/css">
html, body { height: 100%; width: 100%; margin: 0; padding: 0; }
#map{
padding:0;
}
</style>
<script type="text/javascript">
var djConfig = {
parseOnLoad: true
};
</script>
<script type="text/javascript" src="http://serverapi.arcgisonline.com/jsapi/arcgis/?v=2.1"></script>
<script type="text/javascript">
dojo.require("dijit.dijit"); // optimize: load dijit layer
dojo.require("dijit.layout.BorderContainer");
dojo.require("dijit.layout.ContentPane");
dojo.require("esri.map");
dojo.require("esri.virtualearth.VETiledLayer");
dojo.require("dijit.TitlePane");
dojo.require("esri.dijit.BasemapGallery");
dojo.require("esri.arcgis.utils");
dojo.require("dijit.layout.TabContainer");
var map = null;
function init() {
var initExtent = new esri.geometry.Extent({"xmin":-11727455.861413078,"ymin":4861652.558126574,"xmax":-11706340.132349325,"ymax":4871512.934775349,"spatialReference":{"wkid":102100}});
map = new esri.Map("map",{extent:initExtent});
var initBasemap = new esri.layers.ArcGISTiledMapServiceLayer("http://server.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer");
map.addLayer(initBasemap);
createBasemapGallery();
dojo.connect(dijit.byId('map'), 'resize', resizeMap);
}
function createBasemapGallery() {
var basemapGallery = new esri.dijit.BasemapGallery({
showArcGISBasemaps: true,
bingMapsKey: 'Av1bH4keF8rXBtxWOegklgWGCYYz8UGYvBhsWKuvc4Z15kT76xVFOERk8jkKEDvT',
map: map
}, "basemapGallery");
basemapGallery.startup();
dojo.connect(basemapGallery, "onError", function(msg) {console.log(msg)});
}
function resizeMap() {
//resize the map when the browser resizes - view the 'Resizing and repositioning the map' section in
//the following help topic for more details http://help.esri.com/EN/webapi/javascript/arcgis/help/jshelp_start.htm#jshelp/inside_guidelines.htm
var resizeTimer;
clearTimeout(resizeTimer);
resizeTimer = setTimeout(function() {
map.resize();
map.reposition();
}, 500);
}
//show map on load
dojo.addOnLoad(init);
</script>
</head>
<body class="claro">
<div dojotype="dijit.layout.BorderContainer" design="headline" gutters="false" style="width:100%;height:100%;margin:0;">
<div id="map" dojotype="dijit.layout.ContentPane" region="center" style="border:1px solid #000;padding:0;"></div>
<div dojotype="dijit.layout.ContentPane" region="right" style="width:35%;">
<div dojoType="dijit.TitlePane" title="Switch Basemap" closable="false" open="true">
<div id="tabContainer" dojoType="dijit.layout.TabContainer" style="width:100%; height:100%">
<div id="one" dojoType="dijit.layout.ContentPane" title="Tab 1" selected="true">
Tab 1 content
</div>
<div id="two" dojoType="dijit.layout.ContentPane" title="Tab 2">
Tab 2 content
</div>
<div id="three" dojoType="dijit.layout.ContentPane" title="Tab 3">
Tab 3 content
</div>
</div>
</div>
</div>
</div>
</body>
</html>
... View more
01-05-2011
11:42 AM
|
0
|
0
|
1179
|
POST
|
Sounds good Steve, I'll try a few different tests as well to see if I can reproduce here as well. Hi Kelly, Your legend works fine for me, so I'm not sure what the problem is. Once our web server is outwardly facing I'll get you to try it and see if we can reproduce the problem. Cheers, Steve
... View more
01-04-2011
07:38 AM
|
0
|
0
|
1654
|
Title | Kudos | Posted |
---|---|---|
2 | Tuesday | |
1 | 01-17-2025 11:55 AM | |
2 | 01-15-2025 02:08 PM | |
1 | 12-30-2024 02:15 PM | |
1 | 01-19-2022 08:59 AM |
Online Status |
Offline
|
Date Last Visited |
yesterday
|