|
POST
|
If this is the sample you're referring to, it looks like each checkbox controls a separate map service.
... View more
01-09-2013
09:05 AM
|
0
|
0
|
455
|
|
POST
|
What kind of service are you querying? ArcGIS Server map services and most GP services will allow you to specify the output coordinate system. You should be able to request the output coordinate system to match your map.
... View more
01-09-2013
08:56 AM
|
0
|
0
|
767
|
|
POST
|
Thanks for the reply. It seems the only substantial changes you suggested were to start the layers visible and to load them separately with addLayer() instead of loading an array of layers with addLayers(). The program does load the OSM layer first in the OSM_HIS mode. I've expanded the program (attached) to allow testing separate or array loads and found no difference. When OSM is loaded first, and the extent for Oahu based on the dynamic HIS layer is set, the OSM layer shows Africa with Oahu from the dynamic layer on top (which disappears if panned or zoomed). If it were projected on the fly, as you suggest it should be and I had hoped it would be, the dynamic Oahu should not have shown in Africa. If I instead use an extent for Oahu on OSM, the OSM Oahu shows, but the dynamic Oahu is not there, again indicating the on-the-fly projecting is not taking place. I wonder if I need some addtional setting/step to make the on-the-fly projection work. Is on-the-fly projection of non-first layers expected to work only for tile layers? The OSM layer class is a subclass of the tile class. I've got it running on jsFiddle. If you zoom in to Hawaii you'll see your layer overlapping the basemap.
... View more
01-09-2013
08:55 AM
|
0
|
0
|
876
|
|
POST
|
You need to make sure you add the OSM layer first to set the map's spatial reference system to match your tiled layer. When your dynamic service is added, it will be projected on the fly to match. require(["esri/map", "esri/layers/osm", "esri/layers/agsdynamic"], function() {
var map, osmLayer, url, HISlayer;
map = new esri.Map("map");
osmLayer = new esri.layers.OpenStreetMapLayer({ id: "OSM" });
var url = "http://mapsLiveCB.hawaiiinformation.com/ArcGIS/rest/services/HIS_BASE_Standard/MapServer";
HISlayer = new esri.layers.ArcGISDynamicMapServiceLayer(url, { id: "standard" });
map.addLayer(osmLayer);
map.addLayer(HISlayer);
});
... View more
01-08-2013
11:45 AM
|
0
|
0
|
876
|
|
POST
|
I was able to get it to work: https://github.com/WSDOT-GIS/OsmTilesInArcGisJS.
... View more
01-08-2013
07:30 AM
|
0
|
0
|
1108
|
|
POST
|
In your format string try changing {subDomains} to {subDomain}.
... View more
01-07-2013
12:08 PM
|
0
|
0
|
1108
|
|
POST
|
It looks like Esri JavaScript API v 3.3 will be using Dojo 1.8.
... View more
01-07-2013
09:54 AM
|
0
|
0
|
407
|
|
POST
|
The amount of offline storage allowed by the browser is pretty small. Esri has a sample for storing tiles for offline use, but the local storage fills up before you can get enough tiles to be useful. There may be some other way that I am not aware of, but the way they do it in the sample doesn't look like it will work.
... View more
01-03-2013
08:32 AM
|
0
|
0
|
865
|
|
POST
|
Use the alternative "data-" versions of those attributes. Any attribute name starting prefixed with "data-" is valid under HTML5. If you're using Visual Studio 2010, it still might give you warnings. Visual Studio 2012 should recognize the "data-" attributes, though.
... View more
01-03-2013
08:27 AM
|
0
|
0
|
645
|
|
POST
|
If you're after the jQuery style of selector syntax, check out dojox.jq. dojox.jq has been "abandoned".
... View more
12-31-2012
02:36 PM
|
0
|
0
|
1701
|
|
POST
|
Thanks! I think that is my problem - I would like to use the REST API, however can't figure out how to make the GET request (passing in the filter geometry to the map service and setting the export to KMZ) work for KMZ prgramatically. The reason I can't figure it out is because, as far as I know, GET requests can only be handled as text (json, text, html), but not as binary (zip, kmz). So I was wondering is there was a way around this (or if I have it entirely wrong). It here any ways browsers can handle binary responses from http get requests? The api says to use esri.request but I can't get it to deliver a KMZ. Thanks for your assistance! Jay See this example.
... View more
12-31-2012
09:05 AM
|
0
|
0
|
3682
|
|
POST
|
I would use the esri.request method to consume the WCF services.
... View more
12-28-2012
09:18 AM
|
0
|
0
|
688
|
|
POST
|
I don't think you need to use an ArcGIS Server GP Service to do this. This could all be done from your web server with some server-side code to convert from the JSON representation of your Features to CSV. Here's an example in JavaScript, but it could be done in any language. Since you are excluding the geometry from your output it should not be very difficult.
... View more
12-27-2012
02:23 PM
|
0
|
0
|
1025
|
|
POST
|
I found an issue with the jQuery Mobile samples when browsing from the desktop. Is there a way to fix this? Go to this page and click the View live sample link. Wait for the map to load and zoom to your location. (Grant permission to your browser to access your location information if necessary.) Click the button in the upper right corner to open the Legend page. Resize the browser window. Click the X button in the upper left of the Legend to return to the map. Now the map looks weird. (See attachment.) [ATTACH=CONFIG]20221[/ATTACH]
... View more
12-27-2012
09:07 AM
|
0
|
5
|
1628
|
|
POST
|
One thing I'd like to see is a write up of things that dojo does poorly and could be improved by switching to jQuery. I'm not advocating that Esri switch to jQuery, but here are some reasons I prefer to use jQuery over Dojo. jQuery has better documentation than Dojo. Not just jQuery and Dojo's own websites, but it's easier to find outside tutorials for accomplishing a task with jQuery than with Dojo using a search engine. Most things are more complicated in Dojo than jQuery. For example, try going through the both the jQuery Mobile and Dojo Mobile tutorials. I found that it is much easier for me to create my own widgets in jQuery (using the jQuery UI Widget Factory) than it is to create "dijits". The Dojo UI controls are weird. When you create a Dojo UI Button, it changes the HTML button element into a span element. When you create a jQuery UI Button, it remains an HTML button. When I create controls for developers who have no GIS experience, I currently create them using jQuery UI Widget Factory using a minimal amount of Dojo as required for the ArcGIS JS API.
... View more
12-27-2012
08:47 AM
|
0
|
0
|
1701
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 04-08-2025 08:56 AM | |
| 2 | 03-05-2024 05:10 PM | |
| 1 | 04-30-2013 08:23 AM | |
| 1 | 05-03-2022 09:45 AM | |
| 1 | 06-30-2015 10:55 AM |