POST
|
Jonah, Thank yo for your response. In my original post, I should have stated that I cannot find those maps listed in my Catalog Pane. They are not listed under Maps or any other folders associated with the project as best as I can tell. Thanks, Craig
... View more
09-30-2020
07:47 AM
|
0
|
1
|
207
|
POST
|
I'm trying to share an ArcGIS Pro project by exporting it to project package using the New Project Package -> save project as file tool from the Share Tab. When I do this I get several errors saying MapControlMapXX does not have any layers. I can click on the Options button for each and open in the Contents Pane. These are all blank maps. I do not know how they were created and I cannot figure out how to delete them. I don't see them listed in my project folder in File Explorer. How do I get rid of them so I can create my Project Package?
... View more
09-30-2020
07:23 AM
|
0
|
4
|
248
|
POST
|
Did you ever find a solution to your problem? I trying to export or copy a feature linked annotation layer from SDE to a File GDB and it's crashing on me. This same annotation layer gave me issues when converting some data using Data Interoperability. It seems very similar
... View more
11-01-2018
01:17 PM
|
0
|
0
|
46
|
POST
|
Hi Robert, Thanks so much for replying. I actually had tried your proposed solution previously without luck. I did find a solution though. I found this old thread and based my solution on it, InfoWindow formatting I also used code from this site, Epoch Date Conversion - JSFiddle. In case anyone else runs into a similar issue, here's what I did. var docInfoTemplate = new InfoTemplate(); docInfoTemplate.setTitle(generateInfoTitle); docInfoTemplate.setContent(generateInfoContent); //creates string for info tag function generateInfoContent(graphic){ var formatString = "<b>Bar Code:</b>" + graphic.attributes.BARCODE + "<br/><b>File Number</b>: " + graphic.attributes.FILENUMBER + "<br/><b>Date: </b>" + formatDateInfoWindow(graphic.attributes.PRINT_DATE) + "<br/><b>System</b>: " + graphic.attributes.SYSREF; return formatString; } function generateInfoTitle(graphic){ var formatString = "<b>File Number</b>: " + graphic.attributes.FILENUMBER; function formatDateInfoWindow(value){ formattedValue = ""; if(value){ var dateVal = "/Date("+ value + ")/"; var date = new Date(parseFloat(dateVal.substr(6))); formattedValue = date.getMonth() + "/" + date.getDate() + "/" + date.getFullYear(); } return formattedValue; } return formatString; } Craig
... View more
07-28-2016
12:17 PM
|
0
|
1
|
84
|
POST
|
I have a GraphicLayer that I build using a QueryTask. One of the attributes is a date field. When the InfoWindow for this layer is rendered, it displays the date in Epoch or Unix format, IE, -297512519. I've tried various solutions for formatting the date in the InfoTemplate. Here are a couple of them: ${PRINT_DATE:DateFormat(selector:'date')} ${PRINT_DATE:DateFormat(datePattern:'MM/dd/yyyy.', selector:'date')} With a custom function. This works in formatting my DataGrid. I've tried to embed this inline into the InfoTemplate ${PRINT_DATE:formatDate} function formatDate(datum){ if (datum){ var d = new Date(datum); return dojo.date.format(d, { selector:'date', datePattern: 'MM/dd/yyyy' } } return; } Any suggestions? Thanks, Craig
... View more
07-28-2016
07:00 AM
|
0
|
3
|
1476
|
POST
|
I've created a FeatureLayer with it's Mode = MODE_SELECTION. I've created a FeatureTable and set it's featureLayer to this layer. I use a QueryTask to select the features I want. Unfortunately, when the web page loads, the FeatureTable loads all the the feature class' features even though the FeatureLayer has no selected features. I don't see any settings for the FeatureTable to have it only show the selected records. Is this a bug or am I overlooking something? Thanks, Craig
... View more
04-21-2016
05:57 PM
|
0
|
1
|
4662
|
POST
|
Thanks for the advice. I ended up setting up the feature layers selection symbol outside of the setup method and got it working. But I'll keep your suggestion in mind for future reference.
... View more
04-18-2016
05:34 PM
|
0
|
0
|
37
|
POST
|
Update number 2. I've isolated the problem. If I have any code in my callback on the map's load event, the last layer doesn't finish loading. Here's how I create my map. map = new Map("map",{ //basemap: "dark-gray", extent: new Extent({ "xmin": 12772352.907166796, "xmax": 12775795.524319759, "ymin": 536599.993017194, "ymax": 538666.659683864, "spatialReference": {"wkid": 2253 } }) }); map.addLayers([waterLayer,basemapLayer, documentPolygonsFeatureLayer ]); map.on("load", setup); function setup () { //define a selection symbol for the feature layer var selectionSFS = new SimpleFillSymbol(SimpleFillSymbol.STYLE_SOLID, new SimpleLineSymbol(SimpleLineSymbol.STYLE_DASHDOT, new EsriColor([255,0,0]), 2),new EsriColor([255,255,0,0.25])); documentPolygonsFeatureLayer.setSelectionSymbol(selectionSFS); } How can I execute my callback method without causing this issue?
... View more
04-15-2016
10:22 AM
|
0
|
2
|
37
|
POST
|
I haven't solved the issue, but here's a little more information. For my map, I add the layers using the addLayers method. map.addLayers([waterLayer, documentPolygonsFeatureLayer, basemapLayer ]); I also am using the LayerList dijit. When I open the layer list, whatever layer I have listed first is grayed out in the LayerList. As soon as I zoom in or out, the layer becomes active.
... View more
04-14-2016
12:16 PM
|
0
|
0
|
37
|
POST
|
I'm writing a stand alone ArcGIS Javascript API application that's behaving strangely when it initially loads. It contains three map services but when it starts, only two of them load. Another symptom is that the default mouse behavior isn't working either. If I click and hold down the left mouse button, the Hand icon appears and I can pan the map as expected. However, if I hold down the shift key and the left mouse and draw a rectangle, the default graphic doesn't render (showing the rectangle I've drug) nor does the map zoom in to the new extent. I have added a Draw Object, defined the renderer, but that doesn't work either when I activate the Draw Object. However, when I click the Zoom In button, (the + in the top left corner), the map zooms in, the missing layer is drawn, and the mouse graphics start working. Has anyone seen this behavior before? If so, any suggestions on where to start on debugging it? I'm not seeing any error messages in the web browser console, it it doesn't seem to matter if I change the map service. It acts the same. Thanks for any help! Craig
... View more
04-14-2016
11:59 AM
|
0
|
4
|
2104
|
Online Status |
Offline
|
Date Last Visited |
2 weeks ago
|