POST
|
hI, I am attempting to host the 'agsjs' files on our own server, I downloaded the code from //http://gmaps-utility-gis.googlecode.com/svn/tags/agsjs/ and put it in folders on our server and then use path like: //"location": location.pathname.replace(/\/[^/]+$/, '') + '/../src/agsjs' When I run the app, I always get the following error.... 404 Object Not Found - http://localhost/APPS/agsjs/build/agsjs/layers/GoogleMapsLayer.js Where is the 'GoogleMapsLayer.js' coming from. I don't want to point to 'http://gmaps...." seems to unstable lately. Thanks. I am not pointing to GoogleMapsLayer.js to display the TOC, but to:
'http://localhost/APPS/agsjs/build/agsjs' But, this is in order to use the TOC feature with my data.
... View more
08-08-2013
01:59 PM
|
0
|
0
|
745
|
POST
|
I have created a multi-frame ArcGIS Javascript web application (i.e., multiple ContentPane's). I am finding that each ContentPane is showing up differently on different computers. I assume this is due to different screen resolutions. But, if use Ctrl+mouse wheel to change zoom level (using Internet Explorer 8 here), it eventually displays correctly. How to control (by CSS possibly) this on different machines / different resolutions? I have tried different formats of this with no luck: if (screen.width=1680)
document.body.style.zoom="100%";
else document.body.style.zoom="85%"; The error, on the first line of code above, states the object doesn't support this action, referring to the "init.js" api file as the object.
... View more
08-08-2013
11:19 AM
|
0
|
0
|
183
|
POST
|
I have created a multi-frame ArcGIS Javascript web application (i.e., multiple ContentPane's). I am finding that each ContentPane is showing up differently on different computers. I assume this is due to different screen resolutions. But, if use Ctrl+mouse wheel to change zoom level (using Internet Explorer 8 here), it eventually displays correctly. How to control (by CSS possibly) this on different machines / different resolutions? I have tried different formats of this with no luck: if ((screen.width=1680)
document.body.style.zoom="100%");
else document.body.style.zoom="85%";
... View more
08-05-2013
12:57 PM
|
0
|
1
|
598
|
POST
|
Could anybody ever get this portion of the agsjs connection code to work? I could only get a full direct path to the 'agsjs' directory to work. name: "agsjs", //necessary for TOC
location:location.pathname.replace(/\/[^/]+$/, "")+'/./build/agsjs' I ended up having IT place the 'agsjs' files on the server, and put the full path to the directory on the server in the web application, which now works. First, I basically tried the same on my Sharepoint site, which did not work.
... View more
08-05-2013
10:55 AM
|
0
|
0
|
1890
|
POST
|
Could anybody ever get this portion of the agsjs connection code to work? I could only get a full direct path to the 'agsjs' directory to work. name: "agsjs", //necessary for TOC
location:location.pathname.replace(/\/[^/]+$/, "")+'/./build/agsjs'
... View more
08-01-2013
04:47 AM
|
0
|
0
|
1890
|
POST
|
I am also using the Javascript API 3.2, and agsjs 2.03, and cannot get it to work. Does the agsjs files HAVE to be on the web server? I have tried putting them on my Sharepoint site and linking to them in the Javascript of the web application, as well as in a local directory for testing. I don't know, maybe there is an issue with the Javascript API v.3.2 and the agsjs, as well; but, what leads me to believe this is not the issue is that it does work fine when using the public link to agsjs: 'http://gmaps-utility-gis.googlecode.com/svn/tags/agsjs/2.03/xbuild/agsjs' Is there another option to load a TOC in the Javascript API?
... View more
07-18-2013
01:27 PM
|
0
|
0
|
215
|
POST
|
I am now trying to zoom to searched graphics (below) function showResults(results) {
//This function works with an array of FindResult that the task returns
map.graphics.clear();
var symbol = new esri.symbol.SimpleFillSymbol(esri.symbol.SimpleFillSymbol.STYLE_NULL, new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_SOLID, new dojo.Color([98,194,204]), 2), new dojo.Color([98,194,204,0.5]));
//Create Extent to use for view an area containing all the search results
var SearchAreaExtent;
//create array of attributes
var items = dojo.map(results,function(result){
var graphic = result.feature;
graphic.setSymbol(symbol);
map.graphics.add(graphic);
//Add Extent to Search Area Extent
if (SearchAreaExtent) SearchAreaExtent = SearchAreaExtent.union(graphic.geometry.getExtent());
else SearchAreaExtent = graphic.geometry.getExtent();
return result.feature.attributes;
}); , but it currently doesn't recognize the map extent following resize of the map and datagrid with: dojo.style(dojo.byId("map"), "height", "75%"); Is it possible to use 'onExtentChange' function on resizing the map as such?
... View more
07-15-2013
07:58 AM
|
0
|
0
|
538
|
POST
|
Thank you, Mr. Watson. Actually, the section of the article, that you provided a linked to, that I was interested in is: ArcGIS 10.1 for Server will be the last planned release for the ArcGIS Server Manager Web Mapping Application (Microsoft .NET and Java). o ArcGIS Server Manager includes a wizard for configuring out-of-the-box web mapping applications based on web ADF technology. ArcGIS 10.1 is the last release of the Web Mapping Application wizard in Manager. Esri will continue supporting the ArcGIS Server Manager Application Wizard and web applications created with it during the 10.1 release cycle, but only fixes to critical issues will be addressed. New out-of-the-box applications (ArcGIS Viewer for Flex, ArcGIS Viewer for Silverlight, ArcGIS for SharePoint, ArcGIS.com viewer, ArcGIS Explorer Online) based on the ArcGIS Web Mapping APIs, as well as a new experience for configuring them, will be offered as part of the ArcGIS 10.1 for Server release. Which appears that the web application wizard builder will still be offered to create an out-of-the-box web application.
... View more
07-15-2013
05:24 AM
|
0
|
0
|
376
|
POST
|
Does 10.1 still have the web application builder in Manager?
... View more
07-14-2013
06:30 PM
|
0
|
0
|
376
|
POST
|
For the life of me, I cannot figure this out. I have a function in my Javascript code (below snippet) that does select features returned from search, and will even zoom to single (selected) record rows in the datagrid, but I'd like to have it zoom to all selected features first (from the search). The current functionality is derived from the example here. Sorry I cannot include all of the code, due to reasons for restrictions, but think the included code should contain all needed for the appropriate function. I imagine it should be a simple addition to the code, but I have been researching how to do it, am not a programmer, and could use some help please. dojo.connect(grid, "onRowClick", onRowClickHandler);
function doFind() {
//Set the search text to the value in the box
findParams.searchText = dojo.byId("BUILDING").value;
esri.show(datagrid); //shows the entire datagrid ContentPane upon selecting the "Search" button
dojo.style(dojo.byId("map"), "height", "78%"); //resizes the map (center) pane to manually fit
findTask.execute(findParams,showResults);
}
function showResults(results) {
//This function works with an array of FindResult that the task returns
map.graphics.clear();
var symbol = new esri.symbol.SimpleFillSymbol(esri.symbol.SimpleFillSymbol.STYLE_SOLID, new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_SOLID, new dojo.Color([98,194,204]), 2), new dojo.Color([98,194,204,0.5]));
//create array of attributes
var items = dojo.map(results,function(result){
var graphic = result.feature;
graphic.setSymbol(symbol);
map.graphics.add(graphic);
return result.feature.attributes;
});
//Create data object to be used in store
var data = {
identifier: "BUILDING", //This field needs to have unique values
label: "BUILDING", //Name field for display. Not pertinent to a grid but may be used elsewhere.
items: items
};
//Create data store and bind to grid.
store = new dojo.data.ItemFileReadStore({ data:data });
var grid = dijit.byId('grid');
grid.setStore(store);
//Zoom back to the initial map extent
map.setExtent(initExtent);
}
//Zoom to the parcel when the user clicks a row
function onRowClickHandler(evt){
var clickedBuilding = grid.getItem(evt.rowIndex).BUILDING;
var selectedBuilding;
esri.hide(datagrid); //Re-hides the entire datagrid ContentPane after selecting a row in the datagrid
dojo.style(dojo.byId("map"), "height", "98%");
dojo.forEach(map.graphics.graphics,function(graphic){
if((graphic.attributes) && graphic.attributes.BUILDING === clickedBuilding){
selectedBuilding = graphic;
return;
}
});
var BuildingExtent = selectedBuilding.geometry.getExtent();
map.setExtent(BuildingExtent);
}
... View more
07-09-2013
10:06 AM
|
0
|
0
|
354
|
POST
|
As the online Help states "The ADF continues to ship with ArcGIS 10.1 for Server as a separate setup named ArcGIS Web Applications. This exists solely for the purpose of supporting legacy applications. The setup includes ArcGIS Web Applications Manager, a legacy version of Manager that allows you to view and modify your web applications."; I assume that as long as you rebuild the map services the same as were with 10.0, and the directory in which the 10.0 web applications are not deleted on uninstall / install of 10.1, the legacy web applications will still run, right?
... View more
04-30-2013
11:53 AM
|
0
|
0
|
365
|
POST
|
Barry, You should be able to run the flex application from IIS on your local machine and point to services on the remote server. All that needs to be put in place is the cross domain file on the arcgis server to allow flash to talk to it Regards Anthony That would require the web server (IIS) to be on my machine for testing though, right? See, I cannot have a web server on my machine either.
... View more
04-30-2013
11:45 AM
|
0
|
0
|
313
|
POST
|
I have checked it out a while back, prior to choosing the Javascript API, Anthony. The problem is that I have to develop the ArcGIS web applications from a remote desktop. I, absolutely, cannot work from the server machine, as I am not a part of IT here. Therefore, the Javascript API seemed to fit my needs the best, as it runs on the client machine, and all is needed is a link to the map service of the server within the HTML code.
... View more
04-30-2013
11:03 AM
|
0
|
0
|
313
|
POST
|
Thanks very much, Anthony. But, I must state that I am already not becoming a fan of 10.1. I have been playing with developing web applications (with Server 10.0) using the Javascript API, which does create very nice applications and has a variety of useful dijits (dojo widgets), but liked the fact that the ArcGIS Server Manager is much simpler to build web applications with, therefore quicker, and often fits the purpose of the particular web application for our needs. 😞
... View more
04-30-2013
10:49 AM
|
0
|
0
|
313
|
Title | Kudos | Posted |
---|---|---|
1 | 01-23-2012 09:43 AM |
Online Status |
Offline
|
Date Last Visited |
02-08-2022
04:15 PM
|