|
POST
|
When i view my map web application in IE8 with Windows XP, it was displaying perfectly. When i run the application in IE9 in Windows 7 environment, it is not displaying as like IE8. I am using the below meta tag for setting the compatibility <meta http-equiv="X_UA_Compatible" content="IE=IE8, IE=IE7"/> is there any specific way to make my application work in IE9 as expected? Please suggest me on this. Thanks, Gomathi try <meta http-equiv="X-UA-Compatible" content="IE=7,IE=9" /> note its 7 , not IE7 etc..
... View more
11-29-2012
04:37 AM
|
0
|
0
|
825
|
|
POST
|
actually, looks like the proxied the endpoint but did not proxy the output directory.
... View more
11-28-2012
12:04 PM
|
0
|
0
|
1692
|
|
POST
|
interesting, you data isnt visible via your rest service either http://geoportal.gc.ca/ArcGIS/rest/services/chs-shc/los-nds/MapServer/?f=jsapi maybe an access/data/mxd issue?
... View more
11-28-2012
10:58 AM
|
0
|
0
|
1692
|
|
POST
|
Thanks for the insight Jeff. I do have scale dependencies set, but I should have mentioned that the map display is the whole point. The intention here is to do exactly what the ESRI States code sample does: Zoom in to a particular extent around the polygon (expand(5.0)) and highlight it on the map. Finding the extent of a queried polygon and then just resetting the map extent seemed to be the easiest way to do this. Maybe I am missing something here. Understood. My guess is that it is the selection process that is the most time consuming. Can you try a querytask instead of a selection? Since you will be receiving one geometry back, you can get its extent and do your calculation.
... View more
11-28-2012
08:02 AM
|
0
|
0
|
1732
|
|
POST
|
Our parcel layer is 200k+. Anything other that a tiled service was unacceptable performance. Just because you are querying a service does not mean you have to display it. In fact, it doesnt even need to be added to the map. First thing i would do would be put big scale dependencies on display.
... View more
11-28-2012
07:46 AM
|
0
|
0
|
1732
|
|
POST
|
Hi All, I am using the following code snippet straight from the javascript API examples and it appears to be working. However, it takes up to 10 seconds to complete the redraw (map.setExtent) by which time the user has given up and assumes it did not work. The feature layer I am using has about 60,000 polygons in it. Any ideas on how I can make this work and speed things up? Perhaps a different method than below? function zoomRow(id){ statesLayer.clearSelection(); var query = new esri.tasks.Query(); query.objectIds = [id]; statesLayer.selectFeatures(query,esri.layers.FeatureLayer.SELECTION_NEW,function(features){ //zoom to the selected feature var stateExtent = features[0].geometry.getExtent().expand(5.0); map.setExtent(stateExtent); }); } That exceeds the recommended limits for graphics. Remember a Feature Layer is a graphic with added functionality, rendering that much each time is excessive. Can you either filter or generalize ?
... View more
11-28-2012
06:49 AM
|
0
|
0
|
1732
|
|
POST
|
nothing in your web app can prevent it. In fact, someone could just hit the rest endpoint and query objectid <500, objectid 500-1000, etc.. Your only option would be to hide the entire service behind a firewall, then only allow your application access to it. However if your app can make the request and return results those request/results can always be viewed.
... View more
11-27-2012
12:10 PM
|
0
|
0
|
820
|
|
POST
|
No. Its a cached service which means the tiles are pre-generated. No tiles exist at your defined scales You either need to 1. Create your own basemap 2. Access the basemap dynamic (not sure you can do this) 3. Use the existing LODS.
... View more
11-19-2012
11:43 AM
|
0
|
0
|
810
|
|
POST
|
The AGO basemap is cached. You have to match your LODS to the services LODs
... View more
11-19-2012
11:31 AM
|
0
|
0
|
810
|
|
POST
|
Thats what i thought. I still think its a scoping issue
... View more
11-09-2012
05:41 AM
|
0
|
0
|
1190
|
|
POST
|
Continuing to populate my own thread! Oh well, maybe what I'm working through will help someone else. I was correct in that it is failing in the dojo.forEach loop where it is supposed to be creating items to put in as search results. I can see there are values returned from a featureLayer.selectFeatures. This is within my function that processes the returned features: dojo.forEach(sortedFeatures, function (result) {
var resultItem = new dojox.mobile.ListItem({
label: result.attributes.FACILITY
});
resultItem.set("class", "mblVariableHeight");
var content = [];
content.push(result.attributes.FACILITY + "<br />" + result.attributes.ADDRESS + "<br />" );
content.push(result.distance + " miles<br/>");
var formatContent = content.join("");
resultItem.domNode.innerHTML = formatContent;
var button = new dojox.mobile.Button({
label: 'Map It',
moveTo: 'mapView'
}).placeAt(resultItem.domNode);
var locationDetails = function (result) {
return function (results) {
mapResults(results, result);
};
};
dojo.connect(button, "onClick", locationDetails(result));
//clearProgress();
itemList.addChild(resultItem);
}); Putting a watch on resultItem, I see there is an object created for each feature. It looks like the line itemList.addChild is adding features in itemList. But when it finishes, and slides to the Search Results, testing in IE 8 there is nothing listed. http://wwwgis.dhss.mo.gov/Website/mobileWIC/WIC.html I dont see where you defined itemList, which means it is defined outside the loop. I think you have a scope issue, where itemList is not properly referenced try changing to dojo.forEach(sortedFeatures, dojo.hitch(this, function (result) {
...
}));
... View more
11-09-2012
05:23 AM
|
0
|
0
|
1190
|
|
POST
|
havent done symbology, but have done in popups using googles chart api var att = f.attributes;
var TOTAL2K = parseInt(att.TOTAL2K);
var WHITE2K = parseInt(att.WHITE2K);
var HISPAN2K = parseInt(att.HISPAN2K);
var BLACK2K = parseInt(att.BLACK2K);
var AM_IND2K = parseInt(att.AM_IND2K);
var ASIAN2K = parseInt(att.ASIAN2K);
var PAC_ISLAND2K = parseInt(att.PAC_ISLAND2K);
var OTHER2K = parseInt(att.OTHER2K);
WHITE2K = (WHITE2K / TOTAL2K) * 100;
BLACK2K = (BLACK2K / TOTAL2K) * 100;
HISPAN2K = (HISPAN2K / TOTAL2K) * 100;
AM_IND2K = (AM_IND2K / TOTAL2K) * 100;
ASIAN2K = (ASIAN2K / TOTAL2K) * 100;
PAC_ISLAND2K = (PAC_ISLAND2K / TOTAL2K) * 100;
OTHER2K = (OTHER2K / TOTAL2K) * 100;
var chart = {
content:"<div style='width:260px; height:155px;'><b>Total 2000 Census Block Population is " + TOTAL2K + ".</b><br />The ethnicity breakdown is as follows. <br />"
+ "<img src='http://chart.apis.google.com/chart?chco=92BF23,cc0000&chf=c,s,EFEFEF00&cht=p3&chs=260x130&chd=t:"
+ WHITE2K + "," + BLACK2K + "," +HISPAN2K+","+ AM_IND2K + "," + ASIAN2K + ","
+ PAC_ISLAND2K + "," + OTHER2K + "&chdl=White ("
+ Math.round(WHITE2K)+"%)|Black ("
+ Math.round(BLACK2K)+"%)|Hispanic ("
+ Math.round(HISPAN2K)+"%)|Am Ind ("
+ Math.round(AM_IND2K)+"%)|Asian ("
+ Math.round(ASIAN2K)+"%)|Pac Isl ("
+ Math.round(PAC_ISLAND2K)+"%)|Other ("
+ Math.round(OTHER2K)+"%)' /></div>"
};
return chart.content;
... View more
10-31-2012
10:46 AM
|
0
|
0
|
1755
|
|
POST
|
Jeff, I am looking to emulate the Map item gallery so users can select the mapping application that they need... much like whaqt you see when you go to the code gallery for this API... also, greetings from Texas we may have meet a while back when I worked in Hillsborough County. Cheers Oh I got you, sorry I see gallery and make assumptions.
... View more
10-29-2012
09:34 AM
|
0
|
0
|
2281
|
|
POST
|
I use nliu's Basemap Control (same author of TOC and googlelayer). Its very similiar, but has way more functionality and is super easy to configure. http://www.mymanatee.org/gisapps/mapviewer/index.jsp?widgetOn=Basemap%20Gallery Last version he supported it at was 1.07 (his version number) but i have continued to have it work in the 3.2api with minor tweaks http://gmaps-utility-gis.googlecode.com/svn/tags/agsjs/1.07/
... View more
10-29-2012
08:22 AM
|
0
|
0
|
2281
|
|
POST
|
i think this is do to javascript being asynchronous. centerat fires (but does not complete), so when setlevel fires the map center is still the old one. centerat then completes, and then setlevel does. So the final command is setlevel using the original center. Hence it looks like centerat never fired have you tried the centerAndZoom method? http://help.arcgis.com/EN/webapi/javascript/arcgis/help/jsapi/map.htm#centerAndZoom
... View more
10-26-2012
11:56 AM
|
0
|
0
|
2357
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 05-22-2014 08:35 AM | |
| 1 | 05-02-2012 04:56 AM | |
| 1 | 10-29-2021 07:40 AM | |
| 1 | 10-28-2021 05:26 AM | |
| 1 | 07-17-2012 08:48 AM |
| Online Status |
Offline
|
| Date Last Visited |
03-01-2022
02:00 PM
|