|
POST
|
I also need this functionality. We create a tax map book application on CD that has to be completely functional without access to the internet. The website has images that I export from ArcMap as a png that has corresponding rollover hotspots for the townships and the map book pages. For duplication purposes (we build this application for every revenue year), it is critical that the exported images are clipped to the graphics extent or the rollovers will not line up on the images. This is the only process holdng me up from running a python script to completely automate the process of building the application every year. I have to manually export nearly 40 images before i can run my script and the application gets built. I hope this functionality gets implimented in the next release.
... View more
02-10-2012
09:41 AM
|
0
|
0
|
2405
|
|
POST
|
I was just experiencing this same problem using the editor dijit with the attribute inspector displaying in a div instead of the info window. An empty info window kept popping up on screen. My solution was to set the following styles in my css stylesheet. #map_infowindow {
display:none;
visibility:hidden;
}
.window {
display:none;
visibility:hidden;
} Hope this helps! 🙂
... View more
08-05-2011
12:56 PM
|
0
|
0
|
605
|
|
POST
|
I was just experiencing this same problem using the editor dijit with the attribute inspector displaying in a div instead of the info window. An empty info window kept popping up on screen. My solution was to set the following styles in my css stylesheet. #map_infowindow {
display:none;
visibility:hidden;
}
.window {
display:none;
visibility:hidden;
} Hope this helps! 🙂
... View more
08-05-2011
12:12 PM
|
0
|
0
|
1033
|
|
POST
|
your colors are not valid. RGB colors do allow for a fourth value that represents transparency, however this value should be between 0.0 and 1.0. for example... [255,255,255,1.0]
... View more
05-06-2011
11:24 AM
|
0
|
0
|
900
|
|
POST
|
you cannot call map.onLoad() until after you initialize the map. try placing it after map = new esri.Map("map", { extent: startExtent });
... View more
04-28-2011
07:34 AM
|
0
|
0
|
371
|
|
POST
|
I am also trying to impliment the .Net version of this. I have the layers blending to the output image, but the graphics are not yet working. a few things to remember when setting up this application: In the Web.config: <appSettings>
<add key="OutputPath" value="C:\\arcgisserver\\arcgisoutput\\" />
<add key="OutputUrl" value="http://www.[your domain]/arcgisoutput/" />
</appSettings>
Note: OutputPath should be changed to the actual physical location of the arcgisoutput folder if the default settings were not accepted. replace [your domain] with your virtual location of arcgisoutput example: value="http://www.maps.ccgisc.org/arcgisoutput/" in IIS manager browse to Default Web Site (or whatever your application is called) make sure you have a virtual directory called arcgisoutput. If you do not have virtual directories set up, refer to the post install and configuration instructions. in layout.aspx in the init() function: //configure custom PrintableLayer
esri.config.defaults.io.proxyUrl = "http://www.maps.ccgisc.org/proxy.ashx";
var layer = new my.PrintableLayer("http://www.maps.ccgisc.org/MergeAndOutput.ashx", {
layers:appState.map.layers,
extent: new esri.geometry.Extent(appState.map.extent)
});
remember to replace the link location with the virtual location of your own application. remember to update the references to the javascript api and stylesheet to version 2.1 (the body of this file can also be modified to style your print page.) in printing.js: printingHiddenFrame.src = "../hiddenframe.html"; needs to match your relative location from the printing.js file. good luck!
... View more
02-21-2011
08:00 AM
|
0
|
0
|
1497
|
|
POST
|
I use dijit.form.ToggleButton. dojo.require("dijit.form.ToggleButton");
var idStatus = false; in the init() function: dojo.connect(map, "onClick", function(evt) {
mapPoint = evt.mapPoint;
testIdentify();
}); the buttons onClick: onClick: function() { idStatus = !idStatus; idStatus ? map.setMapCursor("help") : map.setMapCursor("default"); } function testIdentify(evt) {
if (idStatus) {
// do identify
}
return;
}
... View more
02-16-2011
01:21 PM
|
0
|
0
|
654
|
|
POST
|
I ran into an interesting issue using the queryTask and thought I would post my findings in hopes it can save someone else the coding heartache I just went through. We pull data tables into SDE from the County's AS400. One of the data tables I was performing a query on had a SQL reserved keyword used as an field name. When including the conflicting field name in the query.outFields; the query fails. This is also the case when trying to use query.outFields = ["*"]; In my example, the conflicting field name was ALL. using query.outFields = ["ALL"]; failed using query.outFields = ["*"]; also failed not setting query.outFields to anything, works! The errors produced: Code 100005: Method failed. HRESULT = 0x8004152f : This is a FACILITY_ITF error that is specific to the interface that returned this error. See the documentation of the interface that returned this error for information about this HRESULT. Code 10837: General GeoDatabase Error. Code 10837: Geodatabase error: Invalid SQL syntax [Microsoft SQL Server Native Client 10.0: Incorrect syntax near the keyword 'ALL'.] [Server.DataBase.TableName]. Solution: Do not use SQL reserved keywords for field names. Now we simply rename the field when pulling the table into SDE. Happy Debugging!
... View more
01-23-2011
06:09 AM
|
0
|
1
|
1561
|
|
POST
|
wish you would have posted the solution... I've been battling this one for over a week! 🙂
... View more
01-17-2011
07:32 AM
|
0
|
0
|
1889
|
|
POST
|
I figured out what I was doing wrong. when I was adding the graphic to the drawingGraphicsLayer I was calling drawingGraphicsLayer.add(map.graphics.add(graphic)); so essentially, I was adding the graphic to both the drawingGraphicsLayer and the default GraphicsLayer map.graphics I think the reason I did this was because I was calling map.addLayer(drawingGraphicsLayer); before the map was loaded which caused a JScript runtime error "this._cg._surface" is null or not an object. I found the solution here: http://forums.esri.com/Thread.asp?c=93&f=2396&t=284131&g=1 Seems like (unlike most layers) you have to wait for the map to load before adding a new GraphicsLayer drawingGraphicsLayer = new esri.layers.GraphicsLayer();
dojo.connect(map, "onLoad", function() {
map.addLayer(drawingGraphicsLayer));
});
... View more
01-17-2011
07:07 AM
|
0
|
0
|
472
|
|
POST
|
I was getting the same Jscript runtime error: "this._gc._surface" is null or not an object when adding a new graphics layer to the map. I found the solution here: http://forums.esri.com/Thread.asp?c=93&f=2396&t=284131&g=1 The solution was to not load the graphics layer until after the map is finished loading.
selLayer = new esri.layers.GraphicsLayer();
dojo.connect(map, "onLoad", function() {
map.addLayer(selLayer));
});
Not sure if you are trying to add your graphics to a new graphics layer or the default graphics layer maps.graphics but this solution worked for me.
... View more
01-17-2011
06:57 AM
|
0
|
0
|
1889
|
|
POST
|
add the following line to the top of your addToMap function: map.graphics.clear(); function addToMap(geometry) { map.graphics.clear(); //toolbar.deactivate(); map.showZoomSlider(); switch (geometry.type) { case "point": var symbol = new esri.symbol.SimpleMarkerSymbol(esri.symbol.SimpleMarkerSymbol.STYLE_X, 10, new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_SOLID, new dojo.Color([255,0,0]), 2), new dojo.Color([0,255,0,1])); } var graphic = new esri.Graphic(geometry, symbol); map.graphics.add(graphic); }
... View more
01-14-2011
10:52 AM
|
0
|
0
|
557
|
|
POST
|
I created a graphics layer for the drawing toolbar tools. var drawing = new esri.layers.GraphicsLayer({}); when I call drawing.clear(); the graphics are removed from the screen. but after I pan, zoom in / out, or try to print the graphics are visible again? the strange thing is that drawing.graphics.length is zero. is this a caching issue? my development site is at http://www.maps.ccgisc.org/test/ thanks.
... View more
01-13-2011
01:19 PM
|
0
|
2
|
891
|
|
POST
|
My legend is not respecting the current map scale. My layer and sublayer visibility is set to turn on and off at certain scales in my mxd and msd. However, when you click on the legend button on my map, it loads the legend for the entire map service at every scale. Am I missing something here? here is the code for my legend floating window: dojo.require("esri.dijit.Legend"); function createLegendFloater() { if (dijit.byId("float")) { dijit.byId("float").destroyRecursive(); } if (dojo.byId("floatDiv")) { dojo.destroy(dojo.byId("floatDiv")); } var mainDiv = dojo.create("div", { id: "floatDiv" }, dojo.byId("floatWin")); var legendDiv = dojo.create("div", { id: "legendDiv" }, mainDiv); var legendBase = new esri.dijit.Legend({ map:map, //layerInfos:[{layer:mapLayer,title:"Base Map Legend"}], respectCurrentMapScale: true },"legendDiv"); legendBase.startup(); floatPane = new dojox.layout.FloatingPane({ title: "Legend", dockable: false, maxable: false, closable: true, resizable: true, id: "float", iconClass: "legendIcon" }, dojo.byId("floatDiv")); floatPane.startup(); floatPane.resize({ w: 350, h: 450 }); } here is the link to my development site: http://www.maps.ccgisc.org/test/ Any help would be appreciated. Thanks.
... View more
01-09-2011
10:37 AM
|
0
|
0
|
797
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 08-20-2024 02:08 PM | |
| 2 | 09-20-2023 10:50 AM | |
| 1 | 06-13-2023 11:45 AM | |
| 3 | 01-11-2022 07:33 AM | |
| 1 | 05-25-2022 10:27 AM |
| Online Status |
Offline
|
| Date Last Visited |
Wednesday
|