|
POST
|
i haven't done any testing, but in version 3.6 of the JS API they listed the bug below as 'resolved': [NIM093459: Resample tiledMapServiceLayer at the levels where it doesn't have data available and the service returns 404 for missing tiles.]
... View more
09-30-2013
12:32 PM
|
0
|
0
|
3203
|
|
POST
|
nevermind. i just realized that you weren't talking about the application i mentioned above, but rather http://tryitlive.arcgis.com/TaxParcelViewer/ The locate tool in this application is not intended to be used to return to a 'previous' extent or 'default' extent, but rather to use geolocation to pan the map to the location of the end user. clicking the button calls the function ShowMyLocation() at line 345 within utils.js. it doesn't call code within Locate.js. if you see an error when you are running the app from somewhere that should be identified as within the extent of your own basemap, theres a possibility that the call to a geometry service at line 353 to convert the GCS coordinates to the map coordinate system is failing somehow, so i recommend stepping through that section to debug it.
... View more
09-30-2013
08:52 AM
|
0
|
0
|
761
|
|
POST
|
are you referring to this application template? http://www.arcgis.com/apps/Solutions/s2.html i wasn't able to find any references to a configurable "defaultExtent" property. where exactly in the source code are you seeing this?
... View more
09-30-2013
08:45 AM
|
0
|
0
|
761
|
|
POST
|
i have a hunch that this problem is being caused by the fact that the coordinate system defined for own map service is different than the wkid:102113 which is defined for the DRG map service. when working with a tiled basemap, you can add it to the map immediately, trust that it will set the spatial reference for the application and then see dynamic map service layers and feature layers reproject on the fly. since you are working only with dynamic map service layers, i would recommend loading the base layer first and then waiting to load your own layer after the first layer has been loaded successfully. also, within the map constructor you can't get a reference to the full extent of a layer you haven't loaded yet. you can do something like this, but i'd actually recommend hardcoding an extent object based on your own service and passing it to the map constructor instead.
var baseLayer = new ArcGISDynamicMapServiceLayer("http://raster.nationalmap.gov/ArcGIS/rest/services/DRG/TNM_Digital_Raster_Graphics/MapServer/");
map = new Map("mapDiv", {
//even if myLayer has already been instantiated, fullExtent will return null until its actually been loaded in the map
//extent: myLayer.fullExtent
});
map.on("layers-add-result", addDynLayer);
map.addLayers([baseLayer]);
function addDynLayer() {
map.on("layer-add-result", function(target) {
map.setExtent(target.layer.fullExtent);
});
var myLayer = new ArcGISDynamicMapServiceLayer("http://sampleserver6.arcgisonline.com/arcgis/rest/services/PoolPermits/MapServer");
map.addLayer(myLayer);
}
... View more
09-30-2013
08:20 AM
|
0
|
0
|
2155
|
|
POST
|
i was able to load the DRG on top of a tiled map service without any trouble.
var map;
require(["esri/map",
"esri/layers/ArcGISDynamicMapServiceLayer"
"dojo/domReady!"], function(Map, ArcGISDynamicMapServiceLayer) {
map = new Map("mapDiv", {
center: [-117, 38],
zoom: 5,
basemap: "streets"
});
var myLayer = new ArcGISDynamicMapServiceLayer("http://raster.nationalmap.gov/ArcGIS/rest/services/DRG/TNM_Digital_Raster_Graphics/MapServer/");
map.addLayer(myLayer);
});
how exactly are you loading the DRG service? as an ArcGISDynamicMapServiceLayer? what about your own 'base' service?
... View more
09-27-2013
02:27 PM
|
0
|
0
|
2155
|
|
POST
|
no guarantee, but i'd bet $5 that your print service is set up as asynchronous (ie: has a 'submitJob' operation and not an 'execute' operation.) if so, either change the service property in server manager or set 'async' to true in the widget constructor. var printer = new esri.dijit.Print({
async: true,
map: map,
url: "http://" + hostName + "/arcgis/rest/services/Utilities/PrintingTools/GPServer/Export%20Web%20Map%20Task"
}, dojo.dom.byId("printButton"));
... View more
09-25-2013
09:40 AM
|
0
|
0
|
1774
|
|
POST
|
i personally don't log bugs until i've been able to reproduce an error :). i agree that it seems inappropriate that ArcGIS Server would ever choose to enforce security on a site when it wasn't previously enforced, but given the simplicity of resolving the problem, the behavior seems a lot more desirable than if ArcGIS Server chose to make sensitive resources public when it started up incorrectly.
... View more
09-25-2013
09:30 AM
|
0
|
0
|
1335
|
|
POST
|
zach is right on the mark, i've seen a few cases in which server manager needed to be reminded that all services were public after an unexpected shutdown.
... View more
09-25-2013
08:43 AM
|
0
|
0
|
1335
|
|
POST
|
do you see an actual request to your print service in the web traffic or does the error appear in the console before it even fires? if you're issuing a request, does it use the proxy? have you considered setting up our simple print dijit sample and pointing it at your own service to make sure things are working on the server?
... View more
09-25-2013
08:38 AM
|
0
|
0
|
1774
|
|
POST
|
the way you interact with different operations of the geometry service is actually quite similar. have you checked out any of these samples? have you written any code yet? when you said "layer" and polygon, did you mean 'polyline' and polygon?
... View more
09-25-2013
08:21 AM
|
0
|
0
|
574
|
|
POST
|
the Tax Parcel Viewer is an example of a hosted application template that already supports search http://tryitlive.arcgis.com/TaxParcelViewer/ to reiterate what i said before, hosted applications can be configured, but not extended. if you'd like to write some custom code to extend the functionality of any particular template, you will have download it, write some new code and then host the finished application on your own web server.
... View more
09-24-2013
12:19 PM
|
0
|
0
|
814
|
|
POST
|
do you have a feature layer loaded which displays a graphic for the country?
... View more
09-20-2013
08:04 AM
|
0
|
0
|
804
|
|
POST
|
maybe it would be helpful to post in the ArcGIS Server forum directly? this doesn't actually appear to by a JS API issue... that being said, if you are updating a table outside of the ArcGIS world, this KB article might be helpful to check out. FAQ: How are updates to event layers handled in ArcGIS Server? http://support.esri.com/en/knowledgebase/techarticles/detail/34350
... View more
09-20-2013
08:03 AM
|
0
|
0
|
5715
|
|
POST
|
we don't have a prepackaged way for you to refine graphic mouse events based on geography, so you would have to perform your own check based on the current extent (map.extent property) and connect and disconnect the event manually. this conceptual article provides an excellent in depth discussion of event handling Working with the API > Inside events https://developers.arcgis.com/en/javascript/jshelp/inside_events.html
... View more
09-20-2013
07:45 AM
|
0
|
0
|
804
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 04-16-2014 02:35 PM | |
| 1 | 03-15-2013 04:25 PM | |
| 1 | 06-01-2016 10:51 AM | |
| 1 | 12-28-2015 04:46 PM | |
| 1 | 12-28-2015 05:26 PM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:22 AM
|