|
POST
|
So i have a utilities folder with a common.js that contains a bunch of helper methods. Pre AMD it looked like. NO idea how to migrate to AMD. THANKS! dojo.provide("utilities.common");
utilities.common.getType = function(value) {
var type = "config.json";
switch (value) {
case "test":
type = "config-test.json";
break
case "landdevelopment":
type = "config-landdevelopment.json";
break
case "utilitiesinfrastructure":
type = "config-utilitiesinfrastructure.json";
break
default:
type = "config.json";
}
return type;
};
utilities.common.getFormattedServiceType = function(value) {
var type = "Property Locator";
var newValue = (value.replace(".json", "")).replace('config-', '');
switch (newValue) {
case "test":
type = "Test";
break
case "landdevelopment":
type = "Land Development";
break
case "utilitiesinfrastructure":
type = "Utilities Infrastructure";
break
default:
type = "Property Locator";
}
return type;
};
utilities.common.getAllNamedChildDijits = function(id) {
// Gather all child widgets
var w = null;
var children = null;
widgets = {};
w = dojo.query("[widgetId]", dojo.byId(id));
children = w.map(dijit.byNode);
children.forEach(function(item, idx) {
if (item.name) {
widgets[item.name] = item;
}
});
return widgets;
};
... View more
08-21-2013
09:50 AM
|
0
|
6
|
2784
|
|
POST
|
Hmmm.. Figured this out but its complicated. Extent is NaN because there is no spatial index on the data layer. THere is no spatial index on the data layer because there are no features in the layer (at the moment). how to workaround....
... View more
08-21-2013
09:17 AM
|
0
|
0
|
1929
|
|
POST
|
I'm using Esri.dijit.Print to print a map with MAP_ONLY template. In the generated PDF only map graphics (Esri.graphics) are visible. Basemap and service layers (loaded on map in webapp) are not visible. Browsers not throwing any errors... Any suggestions? are your basemap and service layers publicly accessible?
... View more
08-21-2013
08:57 AM
|
0
|
0
|
1003
|
|
POST
|
Sorry, print task https://developers.arcgis.com/en/javascript/jsapi/printtask-amd.html Then you set in the template the format of jpg ( or png) and map only.
... View more
08-20-2013
05:56 PM
|
0
|
0
|
2697
|
|
POST
|
The extent for Layer: DMS Access Points (ID:7) is not set. Check http://www.mymanatee.org/arcgis/rest/services/tools/traffic/MapServer/7. Fix that, and you should be good to go:) You sir are awesome thank you
... View more
08-20-2013
05:53 PM
|
0
|
0
|
1929
|
|
POST
|
TO add on, you can use the print class, just not the print template. The workflow can be 1. Use print class to render your map as a single image by specifying the IMAGE return type (as opposed to PDF) 2. Then take that image and build your own output page, either PDF using a client or serverside library, or as a html page with a print.css style
... View more
08-20-2013
12:47 PM
|
0
|
0
|
2697
|
|
POST
|
This might be for the REST API forums, but I like you guys better 🙂 if I access http://www.mymanatee.org/arcgis/rest/services/tools/traffic/MapServer/layers My service works (its an msd, server 10sp5) If i append the "f=json" tag (for accessing in my javascript application) I get http://www.mymanatee.org/arcgis/rest/services/tools/traffic/MapServer/layers?f=json {"error":{"code":500,"message":"JSON does not allow non-finite numbers.","details":[]}} Obviously I am doing something "illegal" in my mxd, but no idea what it might be. Any help is appreciated. Thanks
... View more
08-20-2013
12:15 PM
|
0
|
4
|
3698
|
|
POST
|
got it thank you. Hoping the upgrade with fix the ID manager error im getting but i doubt it. Waiting on support at the same time.
... View more
08-20-2013
06:30 AM
|
0
|
0
|
831
|
|
POST
|
Starting with 2.8 (maybe 3.0) code must be deployed to a webserver. You cannot run it in notepad/editplus, etc..
... View more
08-20-2013
06:00 AM
|
0
|
0
|
510
|
|
POST
|
traded one error for another Esri logo Our servers are currently busy or they are down for maintenance. You can try the following: Refresh your browser page Retry the URL address to ensure its accuracy Return in a few minutes and try again If this problem persists, tell us what you are experiencing through the following contacts: By e-mail: Esri Site Manager By form: Web Site Feedback We apologize for the inconvenience. copyright © Esri
... View more
08-20-2013
05:59 AM
|
0
|
0
|
831
|
|
POST
|
The Javascript API is built with DOJO. If you are using it, you are already using dojo. In my opinion, it is as easy as Jquery. I know this is not the answer you want, but it is the answer. You cannot use the API without using dojo. That said, YOU don't ever have to write dojo. There are samples on using jquery.
... View more
08-08-2013
04:57 AM
|
0
|
0
|
883
|
|
POST
|
I think i found a bug/memory leak. I have an app that can load layers based on a config. The layers can be loaded on the fly setA (15 layers, some dynamic, some tiled) setB (3 layers, some dynamic, some tiled) setC (10 layers, some dynamic, some tiled) I can start the map with setB, and unload reload (remove all, addLayers[setb]) with no problem I can do the same with A or B, and switch amongst them, without issue. ERROR If i add a legend I can start the map with setB, and unload reload (remove all, addLayers[setb]) with no problem I can start the map with setA, and switch to setB, without problem. If I start with any set, and switch to A or C, firefox usage goes up over 1 gb, goes not responding, never comes back (and the "onaddlayersresult event never fires") if i change to code to
if(legend){
legend.destroy();
map.addLayers[setB];
createLegend();} it works perfectly, in just a few seconds. bug/memory leak? ir bad workflow. Right now i have to code in to replace the legend , but it seems "hacky"
... View more
08-06-2013
09:42 AM
|
0
|
0
|
825
|
|
POST
|
not sure if this is too late, but you are adding all your findtask results as graphics. Once the are added, you have an array of Graphics in a GraphicsLayer. so
//get extent of graphicsLayer's array of graphics using esri.namespace,
var extent = esri.graphicsExtent(map.graphics.graphics);
map.setExtent(extent, true);
... View more
08-01-2013
12:06 PM
|
0
|
0
|
1358
|
|
POST
|
I am pretty surprised that the popup class doesnt support a "hyperlink" data type. Thats the point of gis right? bring data together? Spatial Links? I have (for example) parcels, which i can generate 5+ hyperlinks on (appraiser, tax collector, permitting, google, document management, etc..) simply with the parcel id. Oh well, its handled for now.
... View more
07-25-2013
12:29 PM
|
0
|
0
|
1562
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 05-22-2014 08:35 AM | |
| 1 | 05-02-2012 04:56 AM | |
| 1 | 10-29-2021 07:40 AM | |
| 1 | 10-28-2021 05:26 AM | |
| 1 | 07-17-2012 08:48 AM |
| Online Status |
Offline
|
| Date Last Visited |
03-01-2022
02:00 PM
|