POST
|
You can use esri.arcgis.utils.createwebmap to add an arcgis online web map to your JavaScript app. This sample shows how this works. http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples_start.htm#jssamples/ags_fullmaplayout.html
... View more
11-02-2010
07:40 AM
|
0
|
0
|
166
|
POST
|
The feature layer properties aren't available until after the layer has loaded. Once the layer has loaded the properties should return values instead of undefined.
... View more
10-08-2010
08:17 AM
|
0
|
0
|
328
|
POST
|
You can apply a formatter to the date field that will convert the current format to a more readable date format. To use a formatter create a function that will return the date, in this example dojo.date.locale.format is used to return the date in a format like August 14, 2007.
function formatDate(value){
var inputDate = new Date(value);
return dojo.date.locale.format(inputDate, {
selector: 'date',
datePattern: 'MMMM d, y'
});
}
Apply the formatter to the date field:
<th field="DATEFIELD" formatter="formatDate;">Date</th>
Take a look at the following sample in the help to see an example: http://help.arcgis.com/EN/webapi/javascript/arcgis/demos/fl/fl_paging.html
... View more
10-06-2010
01:29 PM
|
1
|
0
|
834
|
POST
|
You need to add the class="claro" to the body tag. <body class="claro" style="font-family: Arial Unicode MS,Arial,sans-serif; padding: 10px;"> However you might want to look into use the compact build instead since you are working with ExtJS. http://help.arcgis.com/EN/webapi/javascript/arcgis/help/jshelp_start.htm#jshelp/inside_compactbuild.htm
... View more
10-05-2010
08:48 AM
|
0
|
0
|
271
|
POST
|
When I read your initial post I missed the bit about the info template not displaying. In order to display the graphic's attributes in the info window you'll need to populate the maps info window with the graphics content. Here's a link to a sample in the help that shows this: http://help.arcgis.com/EN/webapi/javascript/arcgis/help/jssamples_start.htm#jssamples/query_showinfowindow.html
... View more
10-04-2010
11:35 AM
|
0
|
0
|
569
|
POST
|
Since you are using map.setExtent, try replacing onZoomEnd with onExtentChange to ensure that the event fires when the extent change is complete.
var extentHandler = dojo.connect(map, 'onExtentChange', function() {
dojo.disconnect(extentHandler); ..........
... View more
10-04-2010
08:33 AM
|
0
|
0
|
569
|
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
|
343
|
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
|
713
|
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
|
758
|
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
|
391
|
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
|
488
|
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
|
266
|
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
|
713
|
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
|
481
|
Title | Kudos | Posted |
---|---|---|
2 | Friday | |
1 | a week ago | |
1 | a week ago | |
1 | 09-24-2024 02:37 PM | |
2 | 09-24-2024 09:12 AM |
Online Status |
Offline
|
Date Last Visited |
Friday
|