|
POST
|
I created a sample project where I tested using secure geocoding and routing services with a proxy page. I posted the sample to github after I got it working. Someone else tried to use it and is having issues with a map service not showing up. As it may be a while before I have a chance to look into this issue I thought I would post it here. Any ideas? The link to the description of that user's issue is here: https://github.com/WSDOT-GIS/ArcGIS-Server-Routing-Test/issues/2
... View more
06-10-2013
09:00 AM
|
0
|
4
|
1327
|
|
POST
|
Try this: function createFieldInfos() {
var endpoint, jsonobject, fieldInfos = "";
function processServiceInfo(info) {
console.log('layer info: ', info);
console.log("info.name: " + info.name + ",info.id: " + info.id);
fieldInfos += "[";
dojo.forEach(info.fields, function (field) {
console.log("Name: " + field.name + ", Alias: " + field.alias);
if (field.name != "Shape" & field.name != "OBJECTID") {
fieldInfos += "{'fieldName': '" + field.name + "',";
fieldInfos += "'label': '" + field.alias + "',";
fieldInfos += "'visible':" + true + "},";
}
});
fieldInfos += "],";
console.log("fieldInfos: " + fieldInfos);
}
function errorHandler(err) {
console.log('error: ', err);
}
console.log("-->inside createFieldInfos function");
endpoint = "http://gis.tpcmaps.org/ArcGIS/rest/services/LandUse/Existing_Land_Use/MapServer/0";
jsonobject = esri.request({
url: endpoint,
content: {
f: 'json'
},
callbackParamName: 'callback',
load: processServiceInfo,
error: errorHandler
});
console.log("jsonobject: " + jsonobject);
}
... View more
05-31-2013
02:11 PM
|
0
|
0
|
1617
|
|
POST
|
A good alternative to using a Geometry service to do projections is to use proj4js and do the conversions on the client.
... View more
05-31-2013
02:05 PM
|
0
|
0
|
5615
|
|
POST
|
I haven't used a georeferenced image like this before, but I noticed this in the documentation for MapImageLayer. The MapImageLayer class is used to add georeferenced images to the map. The map will place the georeferenced images at the specified geographic extent. The extent of the image should be within the map's extent. The image should also be in the same coordinate system as the map. Perhaps eliminating the basemap option from the Map constructor would fix the problem. /*global require*/
require(["dojo/ready", "esri/map", "esri/layers/MapImageLayer", "esri/layers/MapImage"], function (ready, Map, MapImageLayer, MapImage) {
"use strict";
ready(function() {
var map = new Map("mapDiv", {
center: [-123.3673, 54.51],
zoom: 6,
basemap: "topo"
});
// create and add the layer
var mil = new MapImageLayer({
'id': 'usgs_screen_overlay'
});
map.addLayer(mil);
// create and add the actual image
var mi = new MapImage({
'extent': {
'xmin': -125.1823,
'ymin': 53.4984,
'xmax': -121.5028,
'ymax': 55.5116,
'spatialReference': {
'wkid': 4326
}
},
'href': 'TILERGB.jpg'
});
mil.addImage(mi);
});
});
... View more
05-22-2013
08:04 AM
|
0
|
0
|
584
|
|
POST
|
I was able to get this to work with jQuery Mobile. I posted this code on GitHub. You can test it out here. Let me know if you find any problems, as it hasn't been tested extensively. The best way to report an issue would be to create an issue on the GitHub page.
... View more
05-22-2013
07:43 AM
|
0
|
0
|
1656
|
|
POST
|
I am currently attempting to add an ArcGIS JavaScript API map into a legacy ASP.NET Web Forms application that uses AJAX Control Toolkit controls. When a map is placed inside of a TabContainer (which is inside of an Accordion) it causes any graphics drawn on the map to be offset. For example, when you hold down shift and draw a box to zoom, the zoom box is offset from where it should be and is not connected to the cursor. Has anyone else had to deal with this? Is there a way to get the map to behave correctly? I have created a sample project on GitHub that demonstrates the issue.
... View more
05-21-2013
02:11 PM
|
0
|
0
|
698
|
|
POST
|
Any further update on this release of new code? Past mid May !! Version 3.5 just came out. Version 3.4 came out a while ago.
... View more
05-21-2013
02:00 PM
|
0
|
0
|
711
|
|
POST
|
I would be interested in this as well, but as far as I know there are no examples of this with the JS API.
... View more
05-17-2013
12:33 PM
|
0
|
0
|
349
|
|
POST
|
When I use the AMD URL, http://serverapi.arcgisonline.com/jsapi/arcgis/?v=3.5amd, I am unable to load the esri/dijit/BasemapLayer module. I have a jsFiddle demo that demonstrates this.
... View more
05-16-2013
10:09 AM
|
0
|
1
|
551
|
|
POST
|
Are people still interested in this? I was able to throw together a rough approach that seems to be working fairly well for me. If anyone is interested let me know, I will probably clean it up and throw up on github in a few weeks. Should work for 3.3 and 3.4. I would also be interested.
... View more
05-14-2013
12:25 PM
|
0
|
0
|
1267
|
|
POST
|
This is a known issue that also occurs with jQuery UI and other platforms. There is a workaround, though.
... View more
05-14-2013
12:25 PM
|
1
|
0
|
1147
|
|
POST
|
I think the PDF files would need to be served out via HTTP. You can set up the directory on the server that contains the PDF files to be a web site. (E.g., in IIS you would create a "Virtual Directory" pointing to the folder with the PDFs.)
... View more
05-06-2013
08:32 AM
|
0
|
0
|
538
|
|
POST
|
Thanks Guys! It runs like a champ now. I'll be sure to use the jslint site in the future too. Sincerely, If you are using Visual Studio 2010 or 2012 there is a handy JSLint add-in available. JSLint.VS2010 JSLint.VS2012 I haven't used Aptana in a while, but I think it either had JSLint functionality built into it or had a JSLint add-in.
... View more
05-06-2013
08:23 AM
|
0
|
0
|
1606
|
|
POST
|
The same problem occurs with Esri's jQuery Mobile samples. I haven't tested this myself yet, but someone posted this fix for this issue in jQuery Mobile. Perhaps it will help with your problem as well. http://forums.arcgis.com/threads/82287-Hiding-the-map-problems-with-building-a-mobile-application-with-AngularJS?p=290203&viewfull=1#post290203
... View more
05-03-2013
10:07 AM
|
0
|
0
|
519
|
| 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 |