|
POST
|
Loren, I ran a quick test and it works if you change the attribute dojoType to esriDojoType. Here's the revised code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>testing dojo Scope</title>
<!-- styling -->
<link rel="stylesheet" type="text/css" href="http://serverapi.arcgisonline.com/jsapi/arcgis/2.0/js/dojo/dijit/themes/tundra/tundra.css"/>
<!-- Set dojo configuration -->
<script type="text/javascript">
djConfig = {
parseOnLoad: true,
scopeMap: [
["dojo", "esriDojo"],
["dijit", "esriDijit"],
["dojox", "esriDojox"]
]
};
</script>
<!-- v2.0 uses Dojo v1.4.2 -->
<script type="text/javascript" src="http://serverapi.arcgisonline.com/jsapi/arcgis/?v=2.0"></script>
<script type="text/javascript">
esriDojo.require("dijit.form.DropDownButton");
esriDojo.require("dijit.Menu");
</script>
</head>
<body class="tundra">
<button esriDojoType="dijit.form.DropDownButton">
<span>Test DDBtn</span>
<div esriDojoType="dijit.Menu">
<div esriDojoType="dijit.MenuItem" label="Some menu item 1">
<script type="dojo/method" event="onClick" args="evt">
console.log("ok");
alert("ok");
</script>
</div>
<div esriDojoType="dijit.MenuItem" label="Some menu item 2">
<script type="dojo/method" event="onClick" args="evt">
console.log("ok");
alert("ok");
</script>
</div>
</div>
</button>
</body>
</html>
... View more
08-17-2010
12:25 PM
|
0
|
0
|
499
|
|
POST
|
Rob, It looks like the accordion pane you want to display the editor on is not visible when the application first loads. In cases like this you can create the editor widget the first time you show the editor panel, here's a snippet that shows this: var accordion = dijit.byId("myAccordionContainer");
dojo.connect(accordion, "selectChild", function(childPane) {
if(childPane.id === "paneEditor"){
if(!editorWidget){
var featureLayerInfos = dojo.map(results, function(result) {
return {'featureLayer':result.layer};
});
var layers = dojo.map(results,function(result) {
return result.layer;
});
var settings = {
map: map,
geometryService: new esri.tasks.GeometryService("http://sampleserver3.arcgisonline.com/arcgis/rest/services/Geometry/GeometryServer"),
layerInfos:featureLayerInfos
};
var params = {settings: settings};
editorWidget = new esri.dijit.editing.Editor(params,'editorDiv');
editorWidget.startup();
}
}
});
... View more
08-16-2010
09:43 AM
|
0
|
0
|
706
|
|
POST
|
John, You can download a local copy of v2.0 of the api from the ArcGIS Resource Center. http://help.arcgis.com/EN/webapi/javascript/arcgis/help/jshelp_start.htm#jshelp/inside_faq.htm
... View more
08-16-2010
09:41 AM
|
0
|
0
|
1218
|
|
POST
|
There are a few issues that browsers like Chrome and Firefox don't have problems with that IE does, for example, trailing commas. I've found tools like JSLint helpful in finding these issues, there's an online version of the tool here: http://www.jslint.com/
... View more
08-09-2010
09:03 AM
|
0
|
0
|
409
|
|
POST
|
The Identify Task sample from the help, shows how to highlight a feature from an info window. http://help.arcgis.com/EN/webapi/javascript/arcgis/demos/identify/identify_drilldown.html
... View more
08-03-2010
07:36 AM
|
0
|
0
|
370
|
|
POST
|
Version 2.0 of the ArcGIS API for Javascript is now also available for download from the ArcGIS Resource Center. http://help.arcgis.com/EN/webapi/javascript/arcgis/help/jshelp_start.htm#jshelp/inside_faq.htm
... View more
07-30-2010
03:39 PM
|
0
|
0
|
612
|
|
POST
|
It looks like you are creating a string that looks like an array from your x,y values. You should be able to do something like this instead:
var coords = [];
var polyline = new esri.geometry.Polyline(new esri.SpatialReference({wkid:102100}));
for (i=0;i < xPoints.length -1;i++){
coords.push([xPoints, yPoints]);
}
polyline.addPath(coords);
... View more
07-23-2010
09:17 AM
|
0
|
0
|
2226
|
|
POST
|
There is a sample on the Code Gallery that uses the 1.5 version of the JS API to display data over time, perhaps it will help you setup something similar? http://resources.esri.com/arcgisserver/apis/javascript/arcgis/index.cfm?fa=codeGalleryDetails&scriptID=16642
... View more
07-22-2010
08:44 AM
|
0
|
0
|
448
|
|
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
|
404
|
|
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
|
2721
|
|
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
|
710
|
|
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
|
2721
|
|
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
|
1647
|
|
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
|
1647
|
|
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
|
1378
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 11-06-2025 03:23 PM | |
| 1 | 11-06-2025 03:21 PM | |
| 2 | 08-13-2025 09:41 AM | |
| 1 | 10-28-2025 09:58 AM | |
| 1 | 08-01-2025 10:08 AM |
| Online Status |
Offline
|
| Date Last Visited |
a week ago
|