|
POST
|
Hi Derek, Yep, I'm using the in-built Mountain Lion web server - after looking up how to configure it months ago I haven't touched it, and up until now it has "just worked". The URL I'm using is file:///Library/WebServer/Documents/demos/test.html for the simple sample referenced above. This works when using v2.8 but fails when using 3.1 or 3.2 I just tried restarting the web server using sudo apachectl restart but this had no effect. Thanks, Steve
... View more
10-11-2012
02:50 PM
|
0
|
0
|
1200
|
|
POST
|
I'm seeing a few error messages if I run this simple sample from a Mac webserver directory. I'm getting the error message below, and the map fails to load: Error: [Exception... "Failure" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: http://serverapi.arcgisonline.com/jsapi/arcgis/?v=3.2 :: <TOP_LEVEL> :: line 15" data: no]
http://serverapi.arcgisonline.com/jsapi/arcgis/?v=3.2
Line 15
[ATTACH=CONFIG]18374[/ATTACH] If I revert the code to use v2.8 the error messages disappear and the map loads. This code wasn't causing a problem for me previously. The live sample doesn't cause the error message, implying that there's a problem with my web server - what should I be looking at in order to debug this? I'm not aware of having changed anything recently. Thanks, Steve
... View more
10-11-2012
02:06 PM
|
0
|
4
|
2010
|
|
POST
|
I'm not aware of any specific training materials for the JS API, but if you're already an experienced programmer (in whatever language) you shouldn't have any problems figuring it out using the Getting Started page in conjunction with the Samples. And if you do run into any problems, this forum is a great place to get help!
... View more
10-09-2012
12:06 AM
|
0
|
0
|
1674
|
|
POST
|
Sometimes the cluster layer draws fine and sometimes it doesn't draw at all Note that by default, ArcGIS Server only returns 1,000 features as a result of a query. In the problem above, it may be the case that you're zooming to an extent which doesn't contain any returned features (depending on how you're structuring the query).
... View more
10-07-2012
05:53 PM
|
0
|
0
|
3781
|
|
POST
|
I'd like a ContentPane to be hidden on page load, then make it visible dynamically when a particular event is triggered One approach could be to set the content pane's CSS to display: none; by default, then modify it inside the event:
dojo.connect(element, "event", function(evt) { document.getElementById("contentPaneId").style.display = 'block';
});
Steve
... View more
10-07-2012
04:18 PM
|
0
|
0
|
769
|
|
POST
|
+1 this would be a very nice feature Have you tried adding something at ideas.esri.com?
... View more
10-02-2012
03:18 PM
|
0
|
0
|
3242
|
|
POST
|
Hi Samir, Further, if I try to zoom in using the zoom slider, the ESRI street map disappears as well. It sounds like there are a few things going on here, so the best option is to strip your code back to the bare minimum. Once that's working, add an extra piece of functionality (eg the combo box) and see if that causes the error to occur. This will help you to debug precisely what is causing the problem. So I would remove all functionality except the basemap, and verify that zooming in does not cause a problem. Now add the combo box, etc Also, when posting code to the forums, use the CODE button (the # at the top right) to avoid losing your formatting. Cheers, Steve
... View more
10-02-2012
03:10 PM
|
0
|
0
|
813
|
|
POST
|
Security flaw - Eastern Europeans will be able to decode our tokens!
... View more
10-01-2012
03:07 PM
|
0
|
0
|
502
|
|
POST
|
Sorry, I'm not sure what's going on. Is it possible to post your entire script, or point us to a live site? I'd suggest stepping through your code live in FireBug to see what's going on.
... View more
09-27-2012
09:58 PM
|
0
|
0
|
1191
|
|
POST
|
I would pay good money for a web map template with Bob Marley-themed icons
... View more
09-26-2012
05:10 PM
|
0
|
0
|
1253
|
|
POST
|
I was hopping for something simple that I might have overlooked. Like an arrow line style. As far as I can see, that doesn't exist yet - cartographicLineSymbol would seem the obvious place for this, but it doesn't have the option.
... View more
09-26-2012
03:33 PM
|
0
|
0
|
5806
|
|
POST
|
Try loading the basemap layer first, then load the other layers once the basemap has been successfully added. You can use map.onLoad to listen for this. See this sample for some working code:
dojo.connect(map,'onLoad', initOperationalLayer);
function initOperationalLayer(map){
var featureLayer =new esri.layers.FeatureLayer(....
.......
map.addLayer(featureLayer);
... View more
09-26-2012
03:24 PM
|
0
|
0
|
1191
|
|
POST
|
You could also try obfuscating your code to make it a bit harder to access, but the reality is that given enough effort, someone will be able to access your JS code. An alternative is to use the Flex or Silverlight APIs.
... View more
09-26-2012
03:14 PM
|
0
|
0
|
588
|
|
POST
|
Hi Steve, In your HTML there'll be a pointer to the API - update this to point to the 3.2 version: <script type="text/javascript" src="http://serverapi.arcgisonline.com/jsapi/arcgis/?v=3.2"></script> Steve
... View more
09-24-2012
09:35 PM
|
0
|
0
|
1200
|
|
POST
|
I haven't tested this so can't verify it will work. But you could try setting the symbology that you want (including the dashed lines and arrowheads) in ArcMap, then publish that as a map service. Now create a Dynamic Map layer from the service. With luck this will contain the arrow heads and dashed lines. If that doesn't work, you could create a point at the end of each line, and use a PictureMarkerSymbol to display the arrow heads. Steve
... View more
09-24-2012
05:35 PM
|
0
|
0
|
5806
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 11-17-2014 08:45 PM | |
| 1 | 03-15-2011 04:23 PM | |
| 1 | 10-18-2019 12:50 AM | |
| 3 | 01-22-2019 02:33 PM | |
| 1 | 09-26-2011 10:36 PM |
| Online Status |
Offline
|
| Date Last Visited |
10-20-2022
12:19 AM
|