|
POST
|
Hi, This error means that the variable "idObject" is undefined. Just add in the beginning of your script: var idObject;
... View more
09-05-2013
04:51 AM
|
0
|
0
|
1183
|
|
POST
|
Hi all how can I call a Vb.net module developed with the old Web ADF, that does nto use any Web ADF library from a JavaScript applciation? Thanks
... View more
09-04-2013
11:22 AM
|
0
|
0
|
658
|
|
POST
|
Hi, while loading it shows the same page I can see in the Design mode, using VS 2010, not with the final format. Question: is thre a way to hide the controls until they are ready and show the web page correctly. Here is the html code, <body class="soria">
<!--<div id="navToolbar" data-dojo-type="dijit.Toolbar">
<div data-dojo-type="dijit.form.Button" id="zoomin" data-dojo-props="iconClass:'zoominIcon', onClick:function(){navToolbar.activate(esri.toolbars.Navigation.ZOOM_IN);}">
Zoom In</div>
<div data-dojo-type="dijit.form.Button" id="zoomout" data-dojo-props="iconClass:'zoomoutIcon', onClick:function(){navToolbar.activate(esri.toolbars.Navigation.ZOOM_OUT);}">
Zoom Out</div>
<div data-dojo-type="dijit.form.Button" id="zoomfullext" data-dojo-props="iconClass:'zoomfullextIcon', onClick:function(){navToolbar.zoomToFullExtent();}">
Full Extent</div>
<div data-dojo-type="dijit.form.Button" id="zoomprev" data-dojo-props="iconClass:'zoomprevIcon', onClick:function(){navToolbar.zoomToPrevExtent();}">
Prev Extent</div>
<div data-dojo-type="dijit.form.Button" id="zoomnext" data-dojo-props="iconClass:'zoomnextIcon', onClick:function(){navToolbar.zoomToNextExtent();}">
Next Extent</div>
<div data-dojo-type="dijit.form.Button" id="pan" data-dojo-props="iconClass:'panIcon', onClick:function(){navToolbar.activate(esri.toolbars.Navigation.PAN);}">
Pan</div>
<div data-dojo-type="dijit.form.Button" id="deactivate" data-dojo-props="iconClass:'deactivateIcon' ,onClick:function(){navToolbar.deactivate();}">
Deactivate</div>
</div>-->
<div id="PageContent" dojotype="dijit.layout.BorderContainer" style="width: 100%;
height: 100%;">
<div id="header" data-dojo-type="dijit.layout.ContentPane" class="roundedCorners"
data-dojo-props="region:'top'">
<div id="title">
</div>
</div>
<div data-dojo-type="dijit.layout.BorderContainer" data-dojo-props="region:'center', design:'sidebar', gutters:true, liveSplitters:false, style:'z-index:1;'">
<div id="navToolbar" data-dojo-type="dijit.Toolbar" data-dojo-props="region:'top', style:'z-index:1;'">
<!-- Toolbar buttons here -->
<div data-dojo-type="dijit.form.Button" id="zoomin" data-dojo-props="iconClass:'zoominIcon', onClick:function(){navToolbar.activate(esri.toolbars.Navigation.ZOOM_IN);}">Zoom In</div>
<div data-dojo-type="dijit.form.Button" id="zoomout" data-dojo-props="iconClass:'zoomoutIcon', onClick:function(){navToolbar.activate(esri.toolbars.Navigation.ZOOM_OUT);}">Zoom Out</div>
<div data-dojo-type="dijit.form.Button" id="zoomfullext" data-dojo-props="iconClass:'zoomfullextIcon', onClick:function(){navToolbar.zoomToFullExtent();}">Full Extent</div>
<div data-dojo-type="dijit.form.Button" id="zoomprev" data-dojo-props="iconClass:'zoomprevIcon', onClick:function(){navToolbar.zoomToPrevExtent();}">Prev Extent</div>
<div data-dojo-type="dijit.form.Button" id="zoomnext" data-dojo-props="iconClass:'zoomnextIcon', onClick:function(){navToolbar.zoomToNextExtent();}">Next Extent</div>
<div data-dojo-type="dijit.form.Button" id="pan" data-dojo-props="iconClass:'panIcon', onClick:function(){navToolbar.activate(esri.toolbars.Navigation.PAN);}">Pan</div>
<div data-dojo-type="dijit.form.Button" id="deactivate" data-dojo-props="iconClass:'deactivateIcon' ,onClick:function(){navToolbar.deactivate();}">Deactivate</div>
</div>
<div id="mapDiv" data-dojo-type="dijit.layout.ContentPane" data-dojo-props="region:'center'" data-dojo-props="Title:'Tab 1', style:'padding:0;overflow:hidden;z-index:1;'" />
</div>
</div>
<!--
<div id="mapDiv" data-dojo-type="dijit.layout.ContentPane" class="roundedCorners"
data-dojo-props="region:'center'" style="border: 2px solid #000;">
<img id="loadingImg" alt="Loading map please wait..." src="images/loadingMapProgressBar.gif"
style="position: absolute; right: 512px; top: 256px; z-index: 100;" />
</div>
-->
<div data-dojo-type="dijit.layout.ContentPane" id="rightPane" class="roundedCorners"
data-dojo-props="region:'right',splitter:'true'">
Right section
<div dojotype="dijit.layout.TabContainer">
<div dojotype="dijit.layout.ContentPane" title="Standard Style">
(Legend nested under layer name)
<div id="standardDiv">
</div>
</div>
<div dojotype="dijit.layout.ContentPane" title="Legend">
<div id="legendDiv">
</div>
</div>
</div>
</div>
<div id="footer" class="roundedCorners" data-dojo-type="dijit.layout.ContentPane"
data-dojo-props="region:'bottom'">
<span id="dataSource"></span>
</div>
</div>
</body>
... View more
09-04-2013
11:20 AM
|
0
|
2
|
3179
|
|
POST
|
It works!!! <body class="soria">
<!--<div id="navToolbar" data-dojo-type="dijit.Toolbar">
<div data-dojo-type="dijit.form.Button" id="zoomin" data-dojo-props="iconClass:'zoominIcon', onClick:function(){navToolbar.activate(esri.toolbars.Navigation.ZOOM_IN);}">
Zoom In</div>
<div data-dojo-type="dijit.form.Button" id="zoomout" data-dojo-props="iconClass:'zoomoutIcon', onClick:function(){navToolbar.activate(esri.toolbars.Navigation.ZOOM_OUT);}">
Zoom Out</div>
<div data-dojo-type="dijit.form.Button" id="zoomfullext" data-dojo-props="iconClass:'zoomfullextIcon', onClick:function(){navToolbar.zoomToFullExtent();}">
Full Extent</div>
<div data-dojo-type="dijit.form.Button" id="zoomprev" data-dojo-props="iconClass:'zoomprevIcon', onClick:function(){navToolbar.zoomToPrevExtent();}">
Prev Extent</div>
<div data-dojo-type="dijit.form.Button" id="zoomnext" data-dojo-props="iconClass:'zoomnextIcon', onClick:function(){navToolbar.zoomToNextExtent();}">
Next Extent</div>
<div data-dojo-type="dijit.form.Button" id="pan" data-dojo-props="iconClass:'panIcon', onClick:function(){navToolbar.activate(esri.toolbars.Navigation.PAN);}">
Pan</div>
<div data-dojo-type="dijit.form.Button" id="deactivate" data-dojo-props="iconClass:'deactivateIcon' ,onClick:function(){navToolbar.deactivate();}">
Deactivate</div>
</div>-->
<div id="PageContent" dojotype="dijit.layout.BorderContainer" style="width: 100%;
height: 100%;">
<div id="header" data-dojo-type="dijit.layout.ContentPane" class="roundedCorners"
data-dojo-props="region:'top'">
<div id="title">
</div>
</div>
<div data-dojo-type="dijit.layout.BorderContainer" data-dojo-props="region:'center', design:'sidebar', gutters:true, liveSplitters:false, style:'z-index:1;'">
<div id="navToolbar" data-dojo-type="dijit.Toolbar" data-dojo-props="region:'top', style:'z-index:1;'">
<!-- Toolbar buttons here -->
<div data-dojo-type="dijit.form.Button" id="zoomin" data-dojo-props="iconClass:'zoominIcon', onClick:function(){navToolbar.activate(esri.toolbars.Navigation.ZOOM_IN);}">Zoom In</div>
<div data-dojo-type="dijit.form.Button" id="zoomout" data-dojo-props="iconClass:'zoomoutIcon', onClick:function(){navToolbar.activate(esri.toolbars.Navigation.ZOOM_OUT);}">Zoom Out</div>
<div data-dojo-type="dijit.form.Button" id="zoomfullext" data-dojo-props="iconClass:'zoomfullextIcon', onClick:function(){navToolbar.zoomToFullExtent();}">Full Extent</div>
<div data-dojo-type="dijit.form.Button" id="zoomprev" data-dojo-props="iconClass:'zoomprevIcon', onClick:function(){navToolbar.zoomToPrevExtent();}">Prev Extent</div>
<div data-dojo-type="dijit.form.Button" id="zoomnext" data-dojo-props="iconClass:'zoomnextIcon', onClick:function(){navToolbar.zoomToNextExtent();}">Next Extent</div>
<div data-dojo-type="dijit.form.Button" id="pan" data-dojo-props="iconClass:'panIcon', onClick:function(){navToolbar.activate(esri.toolbars.Navigation.PAN);}">Pan</div>
<div data-dojo-type="dijit.form.Button" id="deactivate" data-dojo-props="iconClass:'deactivateIcon' ,onClick:function(){navToolbar.deactivate();}">Deactivate</div>
</div>
<div id="mapDiv" data-dojo-type="dijit.layout.ContentPane" data-dojo-props="region:'center'" data-dojo-props="Title:'Tab 1', style:'padding:0;overflow:hidden;z-index:1;'" />
</div>
</div>
<!--
<div id="mapDiv" data-dojo-type="dijit.layout.ContentPane" class="roundedCorners"
data-dojo-props="region:'center'" style="border: 2px solid #000;">
<img id="loadingImg" alt="Loading map please wait..." src="images/loadingMapProgressBar.gif"
style="position: absolute; right: 512px; top: 256px; z-index: 100;" />
</div>
-->
<div data-dojo-type="dijit.layout.ContentPane" id="rightPane" class="roundedCorners"
data-dojo-props="region:'right',splitter:'true'">
Right section
<div dojotype="dijit.layout.TabContainer">
<div dojotype="dijit.layout.ContentPane" title="Standard Style">
(Legend nested under layer name)
<div id="standardDiv">
</div>
</div>
<div dojotype="dijit.layout.ContentPane" title="Legend">
<div id="legendDiv">
</div>
</div>
</div>
</div>
<div id="footer" class="roundedCorners" data-dojo-type="dijit.layout.ContentPane"
data-dojo-props="region:'bottom'">
<span id="dataSource"></span>
</div>
</div>
</body>
... View more
09-04-2013
10:29 AM
|
0
|
0
|
1203
|
|
POST
|
Hi all, I am trying to add the Navigation toolbar inside the "PageContent" "dijit.layout.BorderContainer" it loses all the graphic properties. It only works when the toolbar goes after the "<body class="soria">" Thanks <body class="soria">
<div id="navToolbar" data-dojo-type="dijit.Toolbar">
<div data-dojo-type="dijit.form.Button" id="zoomin" data-dojo-props="iconClass:'zoominIcon', onClick:function(){navToolbar.activate(esri.toolbars.Navigation.ZOOM_IN);}">Zoom In</div>
<div data-dojo-type="dijit.form.Button" id="zoomout" data-dojo-props="iconClass:'zoomoutIcon', onClick:function(){navToolbar.activate(esri.toolbars.Navigation.ZOOM_OUT);}">Zoom Out</div>
<div data-dojo-type="dijit.form.Button" id="zoomfullext" data-dojo-props="iconClass:'zoomfullextIcon', onClick:function(){navToolbar.zoomToFullExtent();}">Full Extent</div>
<div data-dojo-type="dijit.form.Button" id="zoomprev" data-dojo-props="iconClass:'zoomprevIcon', onClick:function(){navToolbar.zoomToPrevExtent();}">Prev Extent</div>
<div data-dojo-type="dijit.form.Button" id="zoomnext" data-dojo-props="iconClass:'zoomnextIcon', onClick:function(){navToolbar.zoomToNextExtent();}">Next Extent</div>
<div data-dojo-type="dijit.form.Button" id="pan" data-dojo-props="iconClass:'panIcon', onClick:function(){navToolbar.activate(esri.toolbars.Navigation.PAN);}">Pan</div>
<div data-dojo-type="dijit.form.Button" id="deactivate" data-dojo-props="iconClass:'deactivateIcon' ,onClick:function(){navToolbar.deactivate();}">Deactivate</div>
</div>
<div id="PageContent" dojotype="dijit.layout.BorderContainer" style="width: 100%;
height: 100%;">
<div id="header" data-dojo-type="dijit.layout.ContentPane" class="roundedCorners"
data-dojo-props="region:'top'">
<div id="title">
</div>
</div>
<div id="mapDiv" data-dojo-type="dijit.layout.ContentPane" class="roundedCorners"
data-dojo-props="region:'center'" style="border: 2px solid #000;">
<img id="loadingImg" alt="Loading map please wait..." src="images/loadingMapProgressBar.gif"
style="position: absolute; right: 512px; top: 256px; z-index: 100;" />
</div>
<div data-dojo-type="dijit.layout.ContentPane" id="rightPane" class="roundedCorners"
data-dojo-props="region:'right',splitter:'true'">
Right section
<div dojotype="dijit.layout.TabContainer">
<div dojotype="dijit.layout.ContentPane" title="Standard Style">
(Legend nested under layer name)
<div id="standardDiv">
</div>
</div>
<div dojotype="dijit.layout.ContentPane" title="Legend">
<div id="legendDiv">
</div>
</div>
</div>
</div>
<div id="footer" class="roundedCorners" data-dojo-type="dijit.layout.ContentPane"
data-dojo-props="region:'bottom'">
<span id="dataSource"></span>
</div>
</div>
</body>
... View more
09-03-2013
11:51 AM
|
0
|
2
|
3300
|
|
POST
|
Hi all In this sample I would like to replace the maps in the Switch Basemap window by my own maps. The goal is to allow the user to choose between several themes for his/her map: standard view, utilities view, business view, field view, engineering view, etc How can I customize this window? http://developers.arcgis.com/en/javascript/samples/widget_basemap/ Regards
... View more
09-03-2013
09:04 AM
|
0
|
6
|
1857
|
|
POST
|
Any source code that I can test with this functionality?
... View more
08-30-2013
03:49 AM
|
0
|
0
|
951
|
|
POST
|
Hi all Is there any Info Window that shows more than one record of the feature selected? Thanks
... View more
08-29-2013
11:26 AM
|
0
|
4
|
1337
|
|
POST
|
Hi all, Is there any JavaScript API sample with a map with real buttons, toolbars, buffer, select features and other functionalities. thanks
... View more
08-26-2013
11:20 AM
|
0
|
0
|
750
|
|
POST
|
The solution: http://support.microsoft.com/kb/175500
... View more
08-26-2013
10:22 AM
|
0
|
0
|
2252
|
|
POST
|
Hi all I have a java script page that loads a map with only on layer and it loads very slowly after adding several controls to the page: - overview - display image to show that the map is loading - display X,Y coordinates - Display legend and TOC - Display info-template to show info popup window And I need to add a few more controls to obtain a similar behavior to the regular web ADF application How can I optimize performance? Thanks
... View more
08-26-2013
10:16 AM
|
0
|
1
|
861
|
|
POST
|
Hi all, I want to add several buttons to select features by clicking a point, drawing a rectangle, a circle, a line, or a polygon. http://resources.esri.com/help/9.3/arcgisserver/apis/javascript/arcgis/demos/toolbars/toolbar_navigation.html Any code that might help Thanks
... View more
08-23-2013
11:07 AM
|
0
|
1
|
1005
|
|
POST
|
I am using the toolbar from this sample: http://resources.esri.com/help/9.3/arcgisserver/apis/javascript/arcgis/help/jssamples_start.htm#jssamples/map_xycoords.html what I need is to add some additional buttons such as: - the identity button or select by point - select by rectangle - select by circle - find address button that opens a popup window - etc ... Any samples that might help?
... View more
08-23-2013
10:20 AM
|
0
|
0
|
2790
|
|
POST
|
Hi all I am using the Toolbar from this sample: https://developers.arcgis.com/en/javascript/jssamples/toolbar_navigation.html but in my program when I Zoom In the first time it works but the second time it looks like it gets confused with the Pan button, so it does not Zoom in, and it draws the zoom in window from bottom to top even if the zoom in is drawn from top to botton. //create the map and specify the custom info window as the info window that will
//be used by the map
map = new esri.Map("map", {
extent: mapExtent
});
// Loading image
//
dojo.connect(map, "onUpdateStart", showLoading);
dojo.connect(map, "onUpdateEnd", hideLoading);
//Takes a URL to a map in a map service.
var dynamicUrl = "";
dynamicUrl = "http://...../ArcGIS/rest/services/OneLayer/MapServer"
var dynamicLayer = new esri.layers.ArcGISDynamicMapServiceLayer(dynamicUrl);
legendLayers.push({ layer: dynamicLayer, title: "Dolfin" });
dojo.connect(map, 'onLayersAddResult', function (results) {
//add the legend
var legend = new esri.dijit.Legend({
map: map,
layerInfos: legendLayers,
arrangement: esri.dijit.Legend.ALIGN_LEFT
}, "legendDiv");
legend.startup();
var standardTOC = new agsjs.dijit.TOC({
map: map
}, 'standardDiv');
standardTOC.startup();
});
map.addLayers([dynamicLayer]);
//define the info template that is used to display the popup content.
var infoTemplate1 = new esri.InfoTemplate("Attributes", "${*}");
//create the feature layer (street trees of San Francisco)
var featureLayer = new esri.layers.FeatureLayer("http://jsancn-3-doug/ArcGIS/rest/services/OneLayer/MapServer/0",{
mode: esri.layers.FeatureLayer.MODE_ONDEMAND,
infoTemplate: infoTemplate1,
outFields: ["*"]
});
map.addLayers([featureLayer]);
//resize the info window
map.infoWindow.resize(180, 75);
navToolbar = new esri.toolbars.Navigation(map);
dojo.connect(navToolbar, "onExtentHistoryChange", extentHistoryChangeHandler);
dojo.connect(map, 'onLayersAddResult', function (results) {
//add check boxes
dojo.forEach(legendLayers, function (layer) {
var layerName = layer.title;
var checkBox = new dijit.form.CheckBox({
name: "checkBox" + layer.layer.id,
value: layer.layer.id,
checked: layer.layer.visible,
onChange: function (evt) {
var clayer = map.getLayer(this.value);
clayer.setVisibility(!clayer.visible);
this.checked = clayer.visible;
}
});
//add the check box and label to the toc
dojo.place(checkBox.domNode, dojo.byId("toggle"), "after");
var checkLabel = dojo.create('label', { 'for': checkBox.name, innerHTML: layerName }, checkBox.domNode, "after");
dojo.place("<br />", checkLabel, "after");
});
});
//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_faq.htm
// dojo.connect(map, 'onLoad', function (theMap) {
// //resize the map when the browser resizes
// dojo.connect(dijit.byId('map'), 'resize', map, map.resize);
// });
var resizeTimer;
dojo.connect(map, "onLoad", function (map) { map.infoWindow.resize(250, 100); });
dojo.connect(map, 'onLoad', function (theMap) {
dojo.connect(dijit.byId('map'), 'resize', function () { //resize the map if the div is resized
clearTimeout(resizeTimer);
resizeTimer = setTimeout(function () {
map.resize();
map.reposition();
}, 500);
});
//after map loads, connect to listen to mouse move & drag events
dojo.connect(map, "onMouseMove", showCoordinates);
dojo.connect(map, "onMouseDrag", showCoordinates);
//add the overview map
var overviewMapDijit = new esri.dijit.OverviewMap({
map: map,
visible: false
});
overviewMapDijit.startup();
});
}
//show map on load
dojo.addOnLoad(init);
... View more
08-23-2013
09:49 AM
|
0
|
0
|
985
|
|
POST
|
Hi all, This sample only works for one layer, https://developers.arcgis.com/en/javascript/jssamples/widget_extendInfowindow.html but in a regular map service there are several layers. Is there any generic Custom info window that will show like in ArcMap or Web ADF the attributes for several layers? Regards
... View more
08-21-2013
07:44 AM
|
0
|
1
|
1178
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 3 weeks ago | |
| 1 | 05-01-2026 12:34 PM | |
| 1 | 12-02-2022 08:17 AM | |
| 1 | 12-26-2025 05:02 AM | |
| 1 | 08-05-2025 04:28 AM |
| Online Status |
Offline
|
| Date Last Visited |
a week ago
|