|
POST
|
It sounds like the page with the geocoded address is specific to your application. Can you post a link to your app? I was able to move the delete button to the top of the page using position:absolute !important;top:20% !important;margin-left:30% !important; I would now like to modify the delete icon since it has a strange bubble underneath it. I've been trying to use the atiDeleteIcon but not having much success. I've tried it a few different ways such as .esriAttributeInspector .atiDeleteIcon{ but nothing seems to change. Has anyone else changed an icon yet of either the previous, next, or last icon? Also has anyone been able to change the screen that shows up after you click the delete button? I'd like to add some information on that page but all it displays is the geocoded address and "No Features Selected".
... View more
10-06-2011
08:50 AM
|
0
|
0
|
2309
|
|
POST
|
Hey Jeff, Did you figure out if Esri keeps the original pages for the earlier versions of API available to users? We don't keep older versions of the help but we do add notations to the API reference for new classes and methods. For example the IdentityManager class, new at 2.5 has the following text in the description 'Class added v2.5'. If we add methods and properties to existing classes we also add a note in the help denoting which version of the api this method was added. So if you are using an earlier version you'll be able to tell which classes, methods etc are not available.
... View more
10-06-2011
07:47 AM
|
0
|
0
|
1294
|
|
POST
|
The sample you refer to uses the Geolocation API to determine the current location. This location can come from several different sources depending on the browser and device such as information about nearby wireless access points and the ip address. The following article on html5doctor.com provides some additional detail on geolocation sources. http://html5doctor.com/finding-your-position-with-geolocation/ Various browsers may also provide more details about how geolocation works in their browser: http://www.mozilla.org/en-US/firefox/geolocation/ The following stack overflow question also has some good details on how various browsers determine your location.
... View more
10-05-2011
01:07 PM
|
0
|
0
|
842
|
|
POST
|
There are definitely pros and cons to each approach (mobile web app vs native) but there are lots of great articles out there like the one below that describe the pros and cons and can help you make the decision: http://econsultancy.com/us/blog/7832-the-fight-gets-technical-mobile-apps-vs-mobile-sites
... View more
10-05-2011
09:18 AM
|
0
|
0
|
842
|
|
POST
|
We handle this in the basic viewer template by doing the following: 1. When a new basemap is selected from the basemap gallery destroy the overview map: dojo.connect(basemapGallery, "onSelectionChange", function () {
//close the basemap window when an item is selected
//destroy and recreate the overview map - so the basemap layer is modified.
destroyOverview();
dijit.byId('basemapBtn').closeDropDown();
}); 2. The destroy overview map function destroys the existing overview map and recreates so its using the new basemap layer: function destroyOverview(){
var ov = dijit.byId('overviewMap');
if(ov){
var vis = ov.visible;
ov.destroy();
addOverview(vis);
}
} Here's the code that creates the overview map function addOverview(isVisible) {
var overviewMapDijit = new esri.dijit.OverviewMap({
map: map,
attachTo: "top-right",
opacity: 0.5,
color: "#000000",
expandfactor: 2,
maximizeButton: false,
visible: isVisible,
id:'overviewMap'
});
overviewMapDijit.startup();
}
Basic Viewer Template Test http://apps.arcgis.com/hosted/OnePane/basicviewer/index.html?appid=51cd7d314e3d4e57a1e28b1b5698abd0&embed=true&displaybasemaps=true
... View more
10-05-2011
09:15 AM
|
1
|
0
|
507
|
|
POST
|
I just ran a quick test in IE8 and both the basemap and feature layer displayed. Is there a particular version of IE where the issue occurs? http://energypulse.consensusdev.com/test_ken.php
... View more
10-03-2011
08:28 AM
|
0
|
0
|
625
|
|
POST
|
Here's a link to an earlier post that has some suggestions that might help: http://forums.arcgis.com/threads/31011-Error-migrating-from-2.2-to-2.3-of-the-JS-API
... View more
09-30-2011
04:45 PM
|
0
|
0
|
1549
|
|
POST
|
In order for the Bing Maps to work you have to provide a valid bing maps key when the basemap gallery is constructed.
basemapGallery = new esri.dijit.BasemapGallery({
showArcGISBasemaps: false,
basemaps: basemaps,
bingMapsKey: bingKey,
map: map
});
When you say that my google maps wouldn't work off my hard drive, does that also mean that the bing maps won't work with the map gallery? Cause they aren't, and I'm trying to figure out why. All the other background imagery works, except any bing backgrounds. Google images would be ideal. I've tried it from a folder on my hard drive, just opening the index.html and I've tried it from withing WebMatrix. no go.
... View more
09-29-2011
08:20 AM
|
0
|
0
|
2710
|
|
POST
|
Yes See the TextSymbol class http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi/textsymbol.htm And here's a link to an old blog post that talks about working with the text symbol: http://blogs.esri.com/Dev/blogs/arcgisserver/archive/2009/10/26/Working-with-TextSymbol-in-the-ArcGIS-JavaScript-API.aspx
... View more
09-28-2011
09:01 AM
|
0
|
0
|
973
|
|
POST
|
Steve, Since you are adding a highlight graphic to the map's graphic layer listening to the map's graphics onMouseOut event instead of the feature layers should remove the flicker.
<!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"/>
<meta http-equiv="X-UA-Compatible" content="IE=7" />
<!--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>FeatureLayer On Demand</title>
<link rel="stylesheet" type="text/css" href="http://serverapi.arcgisonline.com/jsapi/arcgis/2.2/js/dojo/dijit/themes/claro/claro.css">
<style>
html, body { height: 100%; width: 100%; margin: 0; padding: 0; }
</style>
<script type="text/javascript">djConfig = { parseOnLoad:true };</script>
<script type="text/javascript" src="http://serverapi.arcgisonline.com/jsapi/arcgis/?v=2.2"></script>
<script type="text/javascript">
dojo.require("esri.map");
dojo.require("esri.layers.FeatureLayer");
dojo.require("dijit.form.Button");
dojo.require("dijit.Dialog");
var mapLayers = []; //array of layers in client map
var map;
var highlightLayer;
function init() {
var extent = new esri.geometry.Extent({"xmin":-96.6063,"ymin":38.3106,"xmax":-96.4764,
"ymax":38.3689,"spatialReference":{"wkid":4269}});
map = new esri.Map("map", { extent: esri.geometry.geographicToWebMercator(extent)});
dojo.connect(map,"onLoad",function(){
highlightLayer= new esri.layers.GraphicsLayer();
var highlightPoint = new esri.symbol.SimpleMarkerSymbol(esri.symbol.SimpleMarkerSymbol.STYLE_CIRCLE, 12, new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_SOLID, new dojo.Color([255,144,0]), 1), new dojo.Color([255,144,0,0.25]));
highlightLayer.setRenderer(new esri.renderer.SimpleRenderer(highlightPoint));
dojo.connect(highlightLayer,"onMouseOut",function(){
map.setMapCursor("default");
highlightLayer.clear();
});
map.addLayer(highlightLayer);
});
var imagery = new esri.layers.ArcGISTiledMapServiceLayer("http://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer");
map.addLayer(imagery);
var content = "<b>Pop</b>: ${POP2000}" + "<br /><b>Households</b>: ${HOUSEHOLDS}";
var infoTemplate = new esri.InfoTemplate("Census", content);
var featureLayer = new esri.layers.FeatureLayer("http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Demographics/ESRI_Census_USA/MapServer/0",{
mode: esri.layers.FeatureLayer.MODE_ONDEMAND,
outFields: ["*"],
infoTemplate: infoTemplate
});
map.addLayer(featureLayer);
map.infoWindow.resize(150,85);
dojo.connect(featureLayer, "onMouseOver", function (evt) {
map.setMapCursor("pointer");
highlightLayer.clear();
highlightLayer.add(new esri.Graphic(evt.graphic.geometry));
});
}
dojo.addOnLoad(init);
</script>
</head>
<body class="claro">
<div style="position:relative;width:100%;height:100%;">
<div id="map" style="border:1px solid #000;width:100%;height:100%;"></div>
</div>
</body>
</html>
... View more
09-28-2011
08:42 AM
|
1
|
0
|
1493
|
|
POST
|
Its 10 service pack 1 and greater we'll update the doc to be consistent. Does the Identity Manager work with 10.0 SP1 and above or 10.1 and above? This came from: http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi_start.htm#jssamples/widget_identitymanager.html Note: The IdentityManager works with resources from ArcGIS.com and services published using ArcGIS Server 10.1 or greater. This came from: http://help.arcgis.com/en/webapi/javascript/arcgis/help/jshelp_start.htm#jshelp/new_v25.html The identity manager replaces both. It is now possible to interact with secure services (ArcGIS Server 10.0 SP1 or hosted on ArcGIS.com) with a single line of code. Also, our web mapping application is nested inside of a secured .NET application, with login credentials provided at webpage entry. Is there a way to pass in the .NET credentials to the JS web mapping application to avoid double user authentication (once at initial log in and again at web mapping application log in)? Thanks, Andrew
... View more
09-27-2011
06:57 AM
|
0
|
0
|
1211
|
|
POST
|
There's some documentation here - along with a link to a sample: http://help.arcgis.com/en/webapi/javascript/arcgis/help/jshelp/ags_secureservices.html EDITED by melita kennedy to add current link (as of 03 June 2014): Identity Manager
... View more
09-27-2011
06:39 AM
|
0
|
0
|
1211
|
|
POST
|
I haven't seen this in the samples in the help when upgrading from 2.2 to 2.4. Do you have a public url for the application? If not, can you provide a simplified version of the app that shows the error?
... View more
09-08-2011
03:46 PM
|
0
|
0
|
344
|
|
POST
|
Here's a quick code snippet that shows creating/destroying the editor:
<!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" />
<meta http-equiv="X-UA-Compatible" content="IE=7, IE=9" />
<title>
Default Editor
</title>
<link rel="stylesheet" type="text/css" href="http://serverapi.arcgisonline.com/jsapi/arcgis/2.4/js/dojo/dijit/themes/claro/claro.css">
<script type="text/javascript">
dojoConfig = {
parseOnLoad: true
};
</script>
<script type="text/javascript" src="http://serverapi.arcgisonline.com/jsapi/arcgis/?v=2.4">
</script>
<style type="text/css">
html,body {
height:100%;
width:100%;
margin:0;
}
body {
background-color:#fff;
overflow:hidden;
font-family:Helvetica;
}
#templatePickerPane {
width:225px;
overflow:hidden;
}
#map {
margin-right:5px;
padding:0;
}
.esriEditor .templatePicker {
padding-bottom:5px;
padding-top:5px;
height:500px;
border-radius:0px 0px 4px 4px;
border:solid 1px #92A661;
}
</style>
<script type="text/javascript">
dojo.require("esri.dijit.editing.Editor-all");
dojo.require("dijit.layout.BorderContainer");
dojo.require("dijit.layout.ContentPane");
var map, resizeTimer;
var editorWidget;
var editLayers;
function init() {
esri.config.defaults.io.proxyUrl = "../proxy/proxy.ashx";
esri.config.defaults.geometryService = new esri.tasks.GeometryService("http://tasks.arcgisonline.com/ArcGIS/rest/services/Geometry/GeometryServer");
var extent = new esri.geometry.Extent({
"xmin": -8576501,
"ymin": 4705377,
"xmax": -8574612,
"ymax": 4706867,
"spatialReference": {
"wkid": 3857
}
});
map = new esri.Map("map", {
extent: extent
});
dojo.connect(map, "onLoad", function() {
dojo.connect(dijit.byId('map'), 'resize', function() {
resizeMap();
});
});
dojo.connect(map, "onLayersAddResult", getEditableLayers);
var basemap = new esri.layers.ArcGISTiledMapServiceLayer("http://server.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer");
map.addLayer(basemap);
var operationsPointLayer = new esri.layers.FeatureLayer("http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/HomelandSecurity/operations/FeatureServer/0", {
mode: esri.layers.FeatureLayer.MODE_ONDEMAND,
outFields: ["*"]
});
var operationsLineLayer = new esri.layers.FeatureLayer("http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/HomelandSecurity/operations/FeatureServer/1", {
mode: esri.layers.FeatureLayer.MODE_ONDEMAND,
outFields: ["*"]
});
var operationsPolygonLayer = new esri.layers.FeatureLayer("http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/HomelandSecurity/operations/FeatureServer/2", {
mode: esri.layers.FeatureLayer.MODE_ONDEMAND,
outFields: ["*"]
});
map.addLayers([operationsPointLayer, operationsPolygonLayer, operationsLineLayer]);
map.infoWindow.resize(400, 300);
}
function getEditableLayers(results) {
editLayers = dojo.map(results, function(result) {
return {
'featureLayer': result.layer
};
});
}
//Functions to create and destroy the editor. We do this each time the edit button is clicked.
function createEditor() {
if (editorWidget) {
return;
}
if (editLayers.length > 0) {
//create template picker
var templateLayers = dojo.map(editLayers, function (layer) {
return layer.featureLayer;
});
var eDiv = dojo.create("div", {
id: "editDiv"
});
dojo.byId('templatePickerPane').appendChild(eDiv);
var editLayerInfo = editLayers;
var templatePicker = new esri.dijit.editing.TemplatePicker({
featureLayers: templateLayers,
rows: 'auto',
columns: 'auto',
style: 'height:98%;width:98%;'
}, 'editDiv');
templatePicker.startup();
var settings = {
map: map,
templatePicker: templatePicker,
layerInfos: editLayerInfo,
toolbarVisible: false
};
var params = {
settings: settings
};
editorWidget = new esri.dijit.editing.Editor(params);
editorWidget.startup();
}
}
function destroyEditor() {
if (editorWidget) {
editorWidget.destroy();
editorWidget = null;
}
}
//Handle resize of browser
function resizeMap() {
clearTimeout(resizeTimer);
resizeTimer = setTimeout(function() {
map.resize();
map.reposition();
}, 500);
}
dojo.addOnLoad(init);
</script>
</head>
<body class="claro">
<div id="mainWindow" data-dojo-type="dijit.layout.BorderContainer" data-dojo-props="design:'headline',gutters:false" style="width:100%; height:100%;">
<div id="map" data-dojo-type="dijit.layout.ContentPane" data-dojo-props="region:'center'">
</div>
<div data-dojo-type="dijit.layout.ContentPane" id="templatePickerPane" data-dojo-props="region:'left'">
<input type="button" onclick="createEditor();" value="Create Editor"/>
<input type="button" onclick="destroyEditor();" value="Destroy Editor"/>
</div>
</div>
</body>
</html>
... View more
09-08-2011
03:43 PM
|
0
|
0
|
2918
|
|
POST
|
Don, You can get the service details using esri.request with the service url. For example:
baseURL = "http://129.2.24.163/ArcGIS/rest/services/00_2011_Metadata_Example/MapServer";
esri.request({
url:baseURL,
content:{f:"json"},
callbackParamName:"callback",
load:getLayerDetails,
error:esriConfig.defaults.io.errorHandler
});
In the response that is returned you'll have the service details you see in the rest services directory: http://129.2.24.163/ArcGIS/rest/services/00_2011_Metadata_Example/MapServer
... View more
09-08-2011
03:25 PM
|
0
|
0
|
2689
|
| 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 |
Wednesday
|