|
POST
|
Ken, ArcGIS Server 10 SP1 is not available yet, so the Legend Widget will use the ArcGIS.com legend service to generate the legend for your layers. Your service does not need to be on ArcGIS.com but it does need to be publicy available and accessible by the ArcGIS.com legend service. You can test your service with this link, just enter your service in the SOAP URL field and click 'Generate Legends'. http://www.arcgis.com/sharing/tools/legend Kelly, could you elaborate on the Legend Widget a little bit. I have read this: "If the layer is an ArcGISDynamicMapServiceLayer or ArcGISTiledMapServiceLayer created using ArcGIS Server 10.0 SP1 or higher the legend is generated using the REST Map Service legend resource." Once ArcGIS Server 10.0 SP1 is released and you publish your services with that version then the Legend widget will use be generated using the REST map service legend resource. I am not able to use my own ArcGISDynamicMapServiceLayer in the Legend widgets (they are not on ArcGIS.com). Does ArcGIS Server 10.0 SP1 exist yet? Or will the functionality be available only after SP1 is made available? I think more than a few people are scratching their heads over this... Thanks, Ken
... View more
10-01-2010
10:53 AM
|
0
|
0
|
982
|
|
POST
|
The FAQ was updated today to include the local install for 2.1. http://help.arcgis.com/EN/webapi/javascript/arcgis/help/jshelp_start.htm#jshelp/inside_faq.htm Can we get a new local installs for 2.1 under Concepts -> Inside the API -> Frequently Asked Questions -> Can the ArcGIS JavaScript API be installed locally? Thanks!
... View more
09-29-2010
12:59 PM
|
0
|
0
|
2074
|
|
POST
|
The 2.1 download is now available from the FAQ page in the ArcGIS API for JavaScript help. http://help.arcgis.com/EN/webapi/javascript/arcgis/help/jshelp_start.htm#jshelp/inside_faq.htm
... View more
09-29-2010
12:57 PM
|
0
|
0
|
1787
|
|
POST
|
Web Mercator isn't the best projection to use for measuring. The ArcGIS Server blog has detailed information on this: http://blogs.esri.com/Dev/blogs/arcgisserver/archive/2010/03/05/Measuring-distances-and-areas-when-your-map-uses-the-Mercator-projection.aspx
... View more
09-29-2010
12:46 PM
|
0
|
0
|
1041
|
|
POST
|
You can resolve this issue by adding "position:relative" to the map div's style. This is necessary because the overview map is absolutely positioned and its containing block will be the closest positioned ancestor element. Setting the position of the map's div to relative will make it the overview map's container. Details on this behavior can be found in this article: http://www.brainjar.com/css/positioning/default4.asp Here's a sample that shows how this works.
<!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>
Overview Map
</title>
<link rel="stylesheet" type="text/css" href="http://serverapi.arcgisonline.com/jsapi/arcgis/2.1/js/dojo/dijit/themes/claro/claro.css">
<script type="text/javascript" src="http://serverapi.arcgisonline.com/jsapi/arcgis/?v=2.1">
</script>
<script type="text/javascript">
dojo.require("esri.map");
dojo.require("esri.dijit.OverviewMap");
var map;
function init() {
map = new esri.Map("mapDiv");
var basemap = new esri.layers.ArcGISTiledMapServiceLayer("http://server.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer");
map.addLayer(basemap);
dojo.connect(map, 'onLoad', function(theMap) {
//add the overview map
var overviewMapDijit = new esri.dijit.OverviewMap({
map: map,
visible:true
});
overviewMapDijit.startup();
});
}
dojo.addOnLoad(init);
</script>
</head>
<body class="claro">
<div style="height:100px;">
"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."
</div>
<div id="mapDiv" style="border-style:solid; border-width:4px; border-color:green;width:400;height:500;position:relative;">
</div>
</body>
</html>
... View more
09-28-2010
11:01 AM
|
0
|
0
|
1060
|
|
POST
|
Instead of using the geometry service to project your point from Web Mercator to geographic you can use esri.geometry.webMercatorToGeographic to display your coordinates.
var mp = esri.geometry.webMercatorToGeographic(evt.mapPoint);
dojo.byId("info").innerHTML = mp.x + ", " + mp.y;
Take a look at the following sample that shows how this works: http://help.arcgis.com/EN/webapi/javascript/arcgis/help/jssamples_start.htm#jssamples/map_xycoords.html
... View more
09-28-2010
07:22 AM
|
0
|
0
|
648
|
|
POST
|
We are working on preparing the local download. I'll update this thread with the link once it's ready.
... View more
09-22-2010
08:30 AM
|
0
|
0
|
2074
|
|
POST
|
The service that this sample uses has been deprecated. I'll replace the service and upload a new version of the identify sample soon. http://help.arcgis.com/EN/webapi/javascript/arcgis/demos/identify/identify_drilldown.html If you click, nothing happens. If you look you'll see it's making AJAX calls, and the response is always: dojo.io.script.jsonp_dojoIoScript17._jsonpCallback({"error":{"code":500,"message":"Server Error - Object reference not set to an instance of an object.","details":[]}});
... View more
09-22-2010
08:19 AM
|
0
|
0
|
1225
|
|
POST
|
Version 2.1 of the ArcGIS API for JavaScript was released this morning. Check out the server blog for more details: http://blogs.esri.com/Dev/blogs/arcgisserver/default.aspx
... View more
09-20-2010
09:21 AM
|
0
|
14
|
3561
|
|
POST
|
Your code was really close, you just need to remove the var from in front of the section where you create the layers (see below).
imageryPrime = new esri.layers.ArcGISTiledMapServiceLayer("http://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer", {id:"imageryPrime"});
map.addLayer(imageryPrime);
streetMap = initLayer("http://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer", "streetMap");
shadedRelief = initLayer("http://server.arcgisonline.com/ArcGIS/rest/services/World_Shaded_Relief/MapServer", "shadedRelief");
ngsTopoUS = initLayer("http://server.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer", "ngsTopoUS");
boundariesWorld = initLayer("http://server.arcgisonline.com/ArcGIS/rest/services/Reference/World_Boundaries_and_Places/MapServer", "boundariesWorld");
... View more
09-16-2010
07:41 AM
|
0
|
0
|
586
|
|
POST
|
Here's the bug tracking number: NIM061060 This should be fixed in 2.1.
... View more
09-13-2010
08:23 AM
|
0
|
0
|
836
|
|
POST
|
This works for me: <div id="navToolbar" style="background-color:#9CAA9C;" dojoType="dijit.Toolbar">
... View more
09-10-2010
09:44 AM
|
0
|
0
|
563
|
|
POST
|
Looks like a bug in the time slider. I submitted a new bug for this issue. It does work if you set two thumbs, so if it works for your scenario that's one potential workaround: timeSlider.setThumbCount(2);
... View more
09-10-2010
09:16 AM
|
0
|
0
|
836
|
|
POST
|
Will, I've seen issues with the proxy on IIS7 if the ASP.NET 'Windows feature' is not enabled. Here's a link to a Microsoft Knowledge Base article that explains how to enable this: http://msdn.microsoft.com/en-us/library/aa964620.aspx
... View more
09-09-2010
04:24 PM
|
1
|
0
|
4165
|
| 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
|