POST
|
Hi, I'm working on multiple ArcGISDynamicMapServiceLayer IdentifyTask and i use this thread as a sample and it work. But i've some issue when i change basemap: "satellite" to basemap: "osm", identify popup didn't work. Thank <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <!--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>Identify with Popup</title> <link rel="stylesheet" href="http://js.arcgis.com/3.8/js/esri/css/esri.css"> <style> html, body, #map { height: 100%; width: 100%; margin: 0; padding: 0; } </style> <script>var dojoConfig = { parseOnLoad: true };</script> <script src="http://js.arcgis.com/3.8/"></script> <script> var map; var identifyTask, identifyParams, idPoint; var identifyResults; require([ "esri/map", "esri/dijit/Popup", "dojo/promise/all", "dojo/domReady!" ], function ( Map, Popup, All ) { var popup = new Popup({ fillSymbol: new esri.symbol.SimpleFillSymbol(esri.symbol.SimpleFillSymbol.STYLE_SOLID, new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_SOLID, new dojo.Color([255, 0, 0]), 2), new dojo.Color([255, 255, 0, 0.25])) }, dojo.create("div")); map = new Map("map", { basemap: "osm", center: [-83.275, 42.573], zoom: 18, infoWindow: popup }); dojo.connect(map, "onLoad", mapReady); var landBaseLayer = new esri.layers.ArcGISDynamicMapServiceLayer("http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/BloomfieldHillsMichigan/Parcels/MapServer", { opacity: .55 }); map.addLayer(landBaseLayer); var militaryLayer = new esri.layers.ArcGISDynamicMapServiceLayer("http://sampleserver6.arcgisonline.com/arcgis/rest/services/Military/MapServer", { opacity: .55 }); map.addLayer(militaryLayer); function mapReady(map) { dojo.connect(map, "onClick", runIdentifies); } function runIdentifies(evt) { identifyResults = []; idPoint = evt.mapPoint; var layers = dojo.map(map.layerIds, function (layerId) { return map.getLayer(layerId); }); layers = dojo.filter(layers, function (layer) { if (layer.visibleLayers[0] !== -1) { return layer.getImageUrl && layer.visible } }); //Only dynamic layers have the getImageUrl function. Filter so you only query visible dynamic layers var tasks = dojo.map(layers, function (layer) { return new esri.tasks.IdentifyTask(layer.url); }); //map each visible dynamic layer to a new identify task, using the layer url var defTasks = dojo.map(tasks, function (task) { return new dojo.Deferred(); }); //map each identify task to a new dojo.Deferred var params = createIdentifyParams(layers, evt); var promises = []; for (i = 0; i < tasks.length; i++) { promises.push(tasks.execute(params)); //Execute each task } var allPromises = new All(promises); allPromises.then(function (r) { showIdentifyResults(r, tasks); }); } function showIdentifyResults(r, tasks) { var results = []; var taskUrls = []; r = dojo.filter(r, function (result) { return r[0]; }); for (i = 0; i < r.length; i++) { results = results.concat(r); for (j = 0; j < r.length; j++) { taskUrls = taskUrls.concat(tasks.url); } } results = dojo.map(results, function (result, index) { var feature = result.feature; var layerName = result.layerName; var serviceUrl = taskUrls[index]; feature.attributes.layerName = result.layerName; var template = new esri.InfoTemplate("", "Service Url: " + serviceUrl + "<br/><br/>Layer name: " + result.layerName + "<br/><br/> Object Id: ${OBJECTID}"); feature.setInfoTemplate(template); var resultGeometry = feature.geometry; var resultType = resultGeometry.type; return feature; }); if (results.length === 0) { map.infoWindow.clearFeatures(); } else { map.infoWindow.setFeatures(results); } map.infoWindow.show(idPoint); return results; } function createIdentifyParams(layers, evt) { var identifyParamsList = []; identifyParamsList.length = 0; dojo.forEach(layers, function (layer) { var idParams = new esri.tasks.IdentifyParameters(); idParams.width = map.width; idParams.height = map.height; idParams.geometry = evt.mapPoint; idParams.mapExtent = map.extent; idParams.layerOption = esri.tasks.IdentifyParameters.LAYER_OPTION_VISIBLE; var visLayers = layer.visibleLayers; if (visLayers !== -1) { var subLayers = []; for (var i = 0; i < layer.layerInfos.length; i++) { if (layer.layerInfos.subLayerIds == null) subLayers.push(layer.layerInfos.id); } idParams.layerIds = subLayers; } else { idParams.layerIds = []; } idParams.tolerance = 3; idParams.returnGeometry = true; identifyParamsList.push(idParams); }); return identifyParamsList; } }); </script> </head> <body> <div id="map"></div> </body> </html>
... View more
06-17-2014
05:25 PM
|
0
|
2
|
714
|
POST
|
Hi, Thank for reply. I'm being using this code and it's work for two ArcGISDynamicMapServiceLayer. I try to work with third ArcGISDynamicMapServiceLayer and get stuck with coding and i'm not very good in coding. Thank for help.
dojo.connect(map,"onClick",executeIdentifyTask);
//create identify tasks and setup parameters
identifyTaskCombined = new esri.tasks.IdentifyTask("<//URL Services>");
identifyTaskReps = new esri.tasks.IdentifyTask("<//URL Services>");
identifyTaskZoning = new esri.tasks.IdentifyTask("<//URL Services>");
identifyParamsCombined = new esri.tasks.IdentifyParameters();
identifyParamsCombined.tolerance = 7;
identifyParamsCombined.returnGeometry = true;
identifyParamsCombined.layerIds = [2];
identifyParamsCombined.layerOption = esri.tasks.IdentifyParameters.LAYER_OPTION_VISIBLE;
identifyParamsCombined.width = map.width;
identifyParamsCombined.height = map.height;
identifyParamsReps = new esri.tasks.IdentifyParameters();
identifyParamsReps.tolerance = 7;
identifyParamsReps.returnGeometry = true;
identifyParamsReps.layerIds = [2];
identifyParamsReps.layerOption = esri.tasks.IdentifyParameters.LAYER_OPTION_VISIBLE;
identifyParamsReps.width = map.width;
identifyParamsReps.height = map.height;
identifyParamsZoning = new esri.tasks.IdentifyParameters();
identifyParamsZoning.tolerance = 7;
identifyParamsZoning.returnGeometry = true;
identifyParamsZoning.layerIds = [2];
identifyParamsZoning.layerOption = esri.tasks.IdentifyParameters.LAYER_OPTION_VISIBLE;
identifyParamsZoning.width = map.width;
identifyParamsZoning.height = map.height;
//resize the map when the browser resizes
dojo.connect(dijit.byId('map'), 'resize', map,map.resize);
};
function executeIdentifyTask(evt){
identifyParamsReps.geometry = evt.mapPoint;
identifyParamsReps.mapExtent = map.extent;
var deferred = identifyTaskReps.execute(identifyParamsReps);
deferred.addCallback(function(response){
if (response.length > 0) {
// console.log(response.length)
// response is an array of identify result objects
// Let's return an array of features.
return dojo.map(response, function(result){
var feature = result.feature;
feature.attributes.layerName = result.layerName;
var template = new esri.InfoTemplate("", "");
feature.setInfoTemplate(template);
return feature;
});
}
else {
identifyParamsCombined.geometry = evt.mapPoint;
identifyParamsCombined.mapExtent = map.extent;
var deferred = identifyTaskCombined.execute(identifyParamsCombined);
deferred.addCallback(function(response){
// response is an array of identify result objects
// Let's return an array of features.
return dojo.map(response, function(result){
var feature = result.feature;
feature.attributes.layerName = result.layerName;
var template = new esri.InfoTemplate("", ""); //booger
feature.setInfoTemplate(template);
return feature;
});
});
};
map.infoWindow.setFeatures([deferred]);
map.infoWindow.show(evt.mapPoint);
});
map.infoWindow.setFeatures([deferred]);
map.infoWindow.show(evt.mapPoint);
};
... View more
06-07-2014
08:31 AM
|
0
|
0
|
1779
|
POST
|
Hi, I'm using 'Display identify results in popup' sample and try to add 2 or 3 ArcGISDynamicMapServiceLayer. How do i configure the code so that the popup will show result of selected ArcGISDynamicMapServiceLayer. Thank <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <!--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>Identify with Popup</title> <link rel="stylesheet" href="http://js.arcgis.com/3.9/js/esri/css/esri.css"> <style> html, body, #map { height:100%; width:100%; margin:0; padding:0; } </style> <script src="http://js.arcgis.com/3.9/"></script> <script> var map; require([ "esri/map", "esri/InfoTemplate", "esri/layers/ArcGISDynamicMapServiceLayer", "esri/symbols/SimpleFillSymbol", "esri/symbols/SimpleLineSymbol", "esri/tasks/IdentifyTask", "esri/tasks/IdentifyParameters", "esri/dijit/Popup", "dojo/_base/array", "esri/Color", "dojo/dom-construct", "dojo/domReady!" ], function ( Map, InfoTemplate, ArcGISDynamicMapServiceLayer, SimpleFillSymbol, SimpleLineSymbol, IdentifyTask, IdentifyParameters, Popup, arrayUtils, Color, domConstruct ) { var identifyTask, identifyParams; var popup = new Popup({ fillSymbol: new SimpleFillSymbol(SimpleFillSymbol.STYLE_SOLID, new SimpleLineSymbol(SimpleLineSymbol.STYLE_SOLID, new Color([255, 0, 0]), 2), new Color([255, 255, 0, 0.25])) }, domConstruct.create("div")); map = new Map("map", { basemap: "satellite", center: [-83.275, 42.573], zoom: 18, infoWindow: popup }); map.on("load", mapReady); var parcelsURL = "http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/BloomfieldHillsMichigan/Parcels/MapServer"; map.addLayer(new ArcGISDynamicMapServiceLayer(parcelsURL, { opacity: .55 })); function mapReady () { map.on("click", executeIdentifyTask); //create identify tasks and setup parameters identifyTask = new IdentifyTask(parcelsURL); identifyParams = new IdentifyParameters(); identifyParams.tolerance = 3; identifyParams.returnGeometry = true; identifyParams.layerIds = [0, 2]; identifyParams.layerOption = IdentifyParameters.LAYER_OPTION_ALL; identifyParams.width = map.width; identifyParams.height = map.height; } function executeIdentifyTask (event) { identifyParams.geometry = event.mapPoint; identifyParams.mapExtent = map.extent; var deferred = identifyTask .execute(identifyParams) .addCallback(function (response) { // response is an array of identify result objects // Let's return an array of features. return arrayUtils.map(response, function (result) { var feature = result.feature; var layerName = result.layerName; feature.attributes.layerName = layerName; if (layerName === 'Tax Parcels') { var taxParcelTemplate = new InfoTemplate("", "${Postal Address} <br/> Owner of record: ${First Owner Name}"); feature.setInfoTemplate(taxParcelTemplate); } else if (layerName === 'Building Footprints') { console.log(feature.attributes.PARCELID); var buildingFootprintTemplate = new InfoTemplate("", "Parcel ID: ${PARCELID}"); feature.setInfoTemplate(buildingFootprintTemplate); } return feature; }); }); // InfoWindow expects an array of features from each deferred // object that you pass. If the response from the task execution // above is not an array of features, then you need to add a callback // like the one above to post-process the response and return an // array of features. map.infoWindow.setFeatures([deferred]); map.infoWindow.show(event.mapPoint); } }); </script> </head> <body> <div id="map"></div> </body> </html>
... View more
06-04-2014
04:53 PM
|
0
|
12
|
10629
|
POST
|
Hi Jake, Thank for the answer. Sorry for asking again. If i want to use multiple ArcGISDynamicMapServiceLayer, from a code above how do i configure IdentifyTask code. Thank
map.on("load", mapReady);
function mapReady () {
map.on("click", executeIdentifyTask);
//create identify tasks and setup parameters
identifyTask = new IdentifyTask(parcelsURL);
identifyParams = new IdentifyParameters();
identifyParams.tolerance = 3;
identifyParams.returnGeometry = true;
identifyParams.layerIds = [0, 2];
identifyParams.layerOption = IdentifyParameters.LAYER_OPTION_ALL;
identifyParams.width = map.width;
identifyParams.height = map.height;
}
function executeIdentifyTask (event) {
identifyParams.geometry = event.mapPoint;
identifyParams.mapExtent = map.extent;
var deferred = identifyTask
.execute(identifyParams)
.addCallback(function (response) {
// response is an array of identify result objects
// Let's return an array of features.
return arrayUtils.map(response, function (result) {
var feature = result.feature;
var layerName = result.layerName;
feature.attributes.layerName = layerName;
if (layerName === 'Tax Parcels') {
var taxParcelTemplate = new InfoTemplate("",
"${Postal Address} <br/> Owner of record: ${First Owner Name}");
feature.setInfoTemplate(taxParcelTemplate);
}
else if (layerName === 'Building Footprints') {
console.log(feature.attributes.PARCELID);
var buildingFootprintTemplate = new InfoTemplate("",
"Parcel ID: ${PARCELID}");
feature.setInfoTemplate(buildingFootprintTemplate);
}
return feature;
});
});
// InfoWindow expects an array of features from each deferred
// object that you pass. If the response from the task execution
// above is not an array of features, then you need to add a callback
// like the one above to post-process the response and return an
// array of features.
map.infoWindow.setFeatures([deferred]);
map.infoWindow.show(event.mapPoint);
}
... View more
06-04-2014
05:36 AM
|
0
|
0
|
266
|
POST
|
Hi, I'm using 'Display identify results in popup' sample and try to display the legend like 'Legend - toggle services' sample. I try to mix the code together and it seem not working. I'm not very good in coding. Thank <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <!--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>Identify with Popup</title> <link rel="stylesheet" href="http://js.arcgis.com/3.9/js/dojo/dijit/themes/claro/claro.css"> <link rel="stylesheet" href="http://js.arcgis.com/3.9/js/esri/css/esri.css"> <style> html, body, #map { height:100%; width:100%; margin:0; padding:0; } #rightPane { width: 20%; } #legendPane { border: solid #97DCF2 1px; } </style> <script src="http://js.arcgis.com/3.9/"></script> <script> var map; require([ "esri/map", "esri/InfoTemplate", "esri/layers/ArcGISDynamicMapServiceLayer", "esri/symbols/SimpleFillSymbol", "esri/symbols/SimpleLineSymbol", "esri/tasks/IdentifyTask", "esri/tasks/IdentifyParameters", "esri/dijit/Popup", "dojo/_base/array", "esri/Color", "dojo/dom-construct", "dojo/parser", "esri/arcgis/utils", "esri/dijit/Legend", "dojo/dom", "dijit/form/CheckBox", "dijit/layout/AccordionContainer", "dijit/layout/BorderContainer", "dijit/layout/ContentPane", "dojo/domReady!" ], function ( Map, InfoTemplate, ArcGISDynamicMapServiceLayer, SimpleFillSymbol, SimpleLineSymbol, IdentifyTask, IdentifyParameters, Popup, arrayUtils, Color, domConstruct, parser, utils, Legend, dom, CheckBox ) { parser.parse(); var identifyTask, identifyParams; var legendLayers = []; var popup = new Popup({ fillSymbol: new SimpleFillSymbol(SimpleFillSymbol.STYLE_SOLID, new SimpleLineSymbol(SimpleLineSymbol.STYLE_SOLID, new Color([255, 0, 0]), 2), new Color([255, 255, 0, 0.25])) }, domConstruct.create("div")); map = new Map("map", { basemap: "satellite", center: [-83.275, 42.573], zoom: 18, infoWindow: popup }); map.on("load", mapReady); var parcelsURL = "http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/BloomfieldHillsMichigan/Parcels/MapServer"; map.addLayer(new ArcGISDynamicMapServiceLayer(parcelsURL, { "id": "Parcels" })); legendLayers.push({ layer: parcelsURL, title: "Place" }); function mapReady () { map.on("click", executeIdentifyTask); //create identify tasks and setup parameters identifyTask = new IdentifyTask(parcelsURL); identifyParams = new IdentifyParameters(); identifyParams.tolerance = 3; identifyParams.returnGeometry = true; identifyParams.layerIds = [0, 2]; identifyParams.layerOption = IdentifyParameters.LAYER_OPTION_ALL; identifyParams.width = map.width; identifyParams.height = map.height; } function executeIdentifyTask (event) { identifyParams.geometry = event.mapPoint; identifyParams.mapExtent = map.extent; var deferred = identifyTask .execute(identifyParams) .addCallback(function (response) { // response is an array of identify result objects // Let's return an array of features. return arrayUtils.map(response, function (result) { var feature = result.feature; var layerName = result.layerName; feature.attributes.layerName = layerName; if (layerName === 'Tax Parcels') { var taxParcelTemplate = new InfoTemplate("", "${Postal Address} <br/> Owner of record: ${First Owner Name}"); feature.setInfoTemplate(taxParcelTemplate); } else if (layerName === 'Building Footprints') { console.log(feature.attributes.PARCELID); var buildingFootprintTemplate = new InfoTemplate("", "Parcel ID: ${PARCELID}"); feature.setInfoTemplate(buildingFootprintTemplate); } return feature; }); }); // InfoWindow expects an array of features from each deferred // object that you pass. If the response from the task execution // above is not an array of features, then you need to add a callback // like the one above to post-process the response and return an // array of features. map.infoWindow.setFeatures([deferred]); map.infoWindow.show(event.mapPoint); } map.on('layers-add-result', function () { var legend = new Legend({ map: map, layerInfos: legendLayers }, "legendDiv"); legend.startup(); }); map.on('layers-add-result', function () { //add check boxes arrayUtils.forEach(legendLayers, function (layer) { var layerName = layer.title; var checkBox = new CheckBox({ name: "checkBox" + layer.layer.id, value: layer.layer.id, checked: layer.layer.visible }); checkBox.on("change", function () { var targetLayer = map.getLayer(this.value); targetLayer.setVisibility(!targetLayer.visible); this.checked = targetLayer.visible; }); //add the check box and label to the toc domConstruct.place(checkBox.domNode, dom.byId("toggle"), "after"); var checkLabel = domConstruct.create('label', { 'for': checkBox.name, innerHTML: layerName }, checkBox.domNode, "after"); domConstruct.place("<br />", checkLabel, "after"); }); }); }); </script> </head> <body class="claro"> <!--[if IE 7]> <style> html, body { margin: 0; } </style> <![endif]--> <div id="content" data-dojo-type="dijit/layout/BorderContainer" data-dojo-props="design:'headline', gutters:true" style="width: 100%; height: 100%; margin: 0;"> <div id="rightPane" data-dojo-type="dijit/layout/ContentPane" data-dojo-props="region:'right'"> <div data-dojo-type="dijit/layout/AccordionContainer"> <div data-dojo-type="dijit/layout/ContentPane" id="legendPane" data-dojo-props="title:'Legend', selected:true"> <div id="legendDiv"></div> </div> <div data-dojo-type="dijit/layout/ContentPane" data-dojo-props="title:'Natural Disasters'"> <span style="padding:10px 0;">Click to toggle the visibility </span> <div id="toggle" style="padding: 2px 2px;"></div> </div> </div> </div> <div id="map" data-dojo-type="dijit/layout/ContentPane" data-dojo-props="region:'center'" style="overflow:hidden;"> </div> </div> </body> </html>
... View more
06-02-2014
11:10 PM
|
0
|
2
|
648
|
POST
|
Hi, I'm trying to make infowindow using ArcGISDynamicMapServiceLayer. I search the arcgis javascript sample but it only show infowindow using FeatureLayer. Is there any sample that i can refer to. Thank
... View more
05-17-2014
09:25 PM
|
0
|
1
|
735
|
POST
|
Hi Arowana, Here is an example of using a Toggle button to turn on/off a feature layer: http://jsfiddle.net/YNA9A/ Thank for the link and it's great. Sorry for asking again. I'm not really good in arcgis javascript. How do i make when user open the application it only show a base map not the feature layer. Feature layer only appear when user click toggle button. Thank
... View more
05-02-2014
05:15 PM
|
0
|
0
|
769
|
POST
|
Hi, I'm trying to do on off button Feature Layer using sample from https://developers.arcgis.com/javascript/jssamples/widget_infowindow.html. There is sample from https://developers.arcgis.com/javascript/jssamples/map_explicitlayerlist.html but i don't know how to use it in my sample. Could someone help me how to configure or where to insert the script in my sample so that i can toggling my sample layer visibility. Thank
... View more
04-29-2014
11:29 PM
|
0
|
3
|
1893
|
POST
|
Hi, I guess it about enable geolocation in a webView. There is sample in http://turbomanage.wordpress.com/2012/04/23/how-to-enable-geolocation-in-a-webview-android/ and it solved the problem. Thank.
... View more
04-24-2014
04:05 PM
|
0
|
0
|
420
|
POST
|
Hi thank for reply, There is no error messages when i click the locate button in my android application and i run the sample from "http://developers.arcgis.com/javascript/samples/widget_locate/" using android browser and it show current location.
... View more
04-20-2014
05:43 PM
|
0
|
0
|
420
|
POST
|
Hi, i'm using Locate Button sample in my android project. I save it as html file in my assets folder "file:///android_asset/index.html" and run it in my android webview. When i run it in my android, i can see the map but when i click the locate button it not working. Did android support LocateButton widget or may be i miss something? Thank
... View more
04-16-2014
11:29 PM
|
0
|
4
|
593
|
POST
|
Hi, I'm using IdentifyTask Sample to create my new android app. I run the IdentifyTask Sample and it work. However when using my own services it doesn't work. Below is the Identify.java if(curResult.getAttributes().containsKey("Name")){ outputVal = curResult.getAttributes().get("Name").toString(); } and i change "Name" with my field name "State_Name". Did i miss something. Please help me. Thank.
... View more
02-01-2014
03:25 PM
|
0
|
0
|
424
|
POST
|
Hi, i new in this environment. I'm using SDK 10.2. I follow all the instruction in the tutorial. When i run my project in emulator, my project stopped. This is my error log. 12-14 20:23:44.800: W/linker(980): libruntimecore_java.so has text relocations. This is wasting memory and is a security risk. Please fix. 12-14 20:23:45.720: D/dalvikvm(980): Added shared lib /data/app-lib/com.esri.arcgis.android.samples.helloworld-1/libruntimecore_java.so 0xb3d96880 12-14 20:24:46.262: D/AndroidRuntime(980): Shutting down VM 12-14 20:24:46.262: W/dalvikvm(980): threadid=1: thread exiting with uncaught exception (group=0xb3aceb90) 12-14 20:24:46.292: E/AndroidRuntime(980): FATAL EXCEPTION: main 12-14 20:24:46.292: E/AndroidRuntime(980): Process: com.esri.arcgis.android.samples.helloworld, PID: 980 12-14 20:24:46.292: E/AndroidRuntime(980): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.esri.arcgis.android.samples.helloworld/com.esri.arcgis.android.samples.helloworld.HelloWorldActivity}: android.view.InflateException: Binary XML file line #9: Error inflating class com.esri.android.map.MapView 12-14 20:24:46.292: E/AndroidRuntime(980): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2176) 12-14 20:24:46.292: E/AndroidRuntime(980): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2226) 12-14 20:24:46.292: E/AndroidRuntime(980): at android.app.ActivityThread.access$700(ActivityThread.java:135) 12-14 20:24:46.292: E/AndroidRuntime(980): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1397) 12-14 20:24:46.292: E/AndroidRuntime(980): at android.os.Handler.dispatchMessage(Handler.java:102) 12-14 20:24:46.292: E/AndroidRuntime(980): at android.os.Looper.loop(Looper.java:137) 12-14 20:24:46.292: E/AndroidRuntime(980): at android.app.ActivityThread.main(ActivityThread.java:4998) 12-14 20:24:46.292: E/AndroidRuntime(980): at java.lang.reflect.Method.invokeNative(Native Method) 12-14 20:24:46.292: E/AndroidRuntime(980): at java.lang.reflect.Method.invoke(Method.java:515) 12-14 20:24:46.292: E/AndroidRuntime(980): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:777) 12-14 20:24:46.292: E/AndroidRuntime(980): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:593) 12-14 20:24:46.292: E/AndroidRuntime(980): at dalvik.system.NativeStart.main(Native Method) 12-14 20:24:46.292: E/AndroidRuntime(980): Caused by: android.view.InflateException: Binary XML file line #9: Error inflating class com.esri.android.map.MapView 12-14 20:24:46.292: E/AndroidRuntime(980): at android.view.LayoutInflater.createView(LayoutInflater.java:620) 12-14 20:24:46.292: E/AndroidRuntime(980): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:696) 12-14 20:24:46.292: E/AndroidRuntime(980): at android.view.LayoutInflater.rInflate(LayoutInflater.java:755) 12-14 20:24:46.292: E/AndroidRuntime(980): at android.view.LayoutInflater.inflate(LayoutInflater.java:492) 12-14 20:24:46.292: E/AndroidRuntime(980): at android.view.LayoutInflater.inflate(LayoutInflater.java:397) 12-14 20:24:46.292: E/AndroidRuntime(980): at android.view.LayoutInflater.inflate(LayoutInflater.java:353) 12-14 20:24:46.292: E/AndroidRuntime(980): at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:290) 12-14 20:24:46.292: E/AndroidRuntime(980): at android.app.Activity.setContentView(Activity.java:1928) 12-14 20:24:46.292: E/AndroidRuntime(980): at com.esri.arcgis.android.samples.helloworld.HelloWorldActivity.onCreate(HelloWorldActivity.java:17) 12-14 20:24:46.292: E/AndroidRuntime(980): at android.app.Activity.performCreate(Activity.java:5243) 12-14 20:24:46.292: E/AndroidRuntime(980): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087) 12-14 20:24:46.292: E/AndroidRuntime(980): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2140) 12-14 20:24:46.292: E/AndroidRuntime(980): ... 11 more 12-14 20:24:46.292: E/AndroidRuntime(980): Caused by: java.lang.reflect.InvocationTargetException 12-14 20:24:46.292: E/AndroidRuntime(980): at java.lang.reflect.Constructor.constructNative(Native Method) 12-14 20:24:46.292: E/AndroidRuntime(980): at java.lang.reflect.Constructor.newInstance(Constructor.java:423) 12-14 20:24:46.292: E/AndroidRuntime(980): at android.view.LayoutInflater.createView(LayoutInflater.java:594) 12-14 20:24:46.292: E/AndroidRuntime(980): ... 22 more 12-14 20:24:46.292: E/AndroidRuntime(980): Caused by: java.lang.NullPointerException 12-14 20:24:46.292: E/AndroidRuntime(980): at android.os.Parcel.readException(Parcel.java:1467) 12-14 20:24:46.292: E/AndroidRuntime(980): at android.os.Parcel.readException(Parcel.java:1415) 12-14 20:24:46.292: E/AndroidRuntime(980): at android.os.storage.IMountService$Stub$Proxy.mkdirs(IMountService.java:750) 12-14 20:24:46.292: E/AndroidRuntime(980): at android.app.ContextImpl.ensureDirsExistOrFilter(ContextImpl.java:2160) 12-14 20:24:46.292: E/AndroidRuntime(980): at android.app.ContextImpl.getExternalCacheDirs(ContextImpl.java:916) 12-14 20:24:46.292: E/AndroidRuntime(980): at android.app.ContextImpl.getExternalCacheDir(ContextImpl.java:905) 12-14 20:24:46.292: E/AndroidRuntime(980): at android.content.ContextWrapper.getExternalCacheDir(ContextWrapper.java:235) 12-14 20:24:46.292: E/AndroidRuntime(980): at com.esri.android.io.a.a(Unknown Source) 12-14 20:24:46.292: E/AndroidRuntime(980): at com.esri.android.map.MapSurface.<init>(Unknown Source) 12-14 20:24:46.292: E/AndroidRuntime(980): at com.esri.android.map.MapView.a(Unknown Source) 12-14 20:24:46.292: E/AndroidRuntime(980): at com.esri.android.map.MapView.<init>(Unknown Source) Please someone kindly help me. Did i miss someting or i'm doing it a wrong way. Thank
... View more
12-14-2013
04:36 PM
|
0
|
1
|
534
|
Title | Kudos | Posted |
---|---|---|
1 | 12-12-2013 06:41 PM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|