|
POST
|
I second modularizing your code. Also, regarding modules, you can specify multiple package locations to further compartmentalize: Configuring Dojo with dojoConfig - Archived Tutorial - Dojo Toolkit var dojoConfig = {
packages: [
"package1",
"package2"
],
paths: {
package1: "../lib/package1",
package2: "/js/package2"
}
};
// ...is equivalent to:
var dojoConfig = {
packages: [
{ name: "package1", location: "../lib/package1" },
{ name: "package2", location: "/js/package2" }
]
}; Oh, and one more thing - regarding adding more requires in your main module, you can group like Tim suggests. I simply keep them sorted alphabetically - you can just throw it in Excel with the module name you gave and sort to keep the ordering in synch.
... View more
08-24-2015
01:24 PM
|
1
|
0
|
1810
|
|
POST
|
Also, if you are curious, here's the CSS class reference: CSS framework—Web AppBuilder for ArcGIS (Developer Edition) | ArcGIS for Developers
... View more
08-24-2015
11:26 AM
|
0
|
0
|
1811
|
|
POST
|
I haven't had a chance yet to dive into the JavaScript-based web app builder, but according to the documentation, there are widget configuration options you can set, including position: Widget configuration—Web AppBuilder for ArcGIS (Developer Edition) | ArcGIS for Developers
... View more
08-24-2015
11:24 AM
|
0
|
1
|
1811
|
|
POST
|
Here's some info that may help: Install and set up on Windows—ArcGIS Runtime SDK for Qt | ArcGIS for Developers * Visual Studio 2012 and WinDbg Integration - MarioHewardt - Site Home - MSDN Blogs How to debug AppStudio apps in Qt Creator http://stackoverflow.com/questions/13366495/how-to-qt-qml-debugging-and-or-profiling
... View more
08-24-2015
11:07 AM
|
0
|
0
|
841
|
|
POST
|
Wes, I had something similar, but ended-up using falsy logic on the null string check: def FindLabel ( [NominalDiameter], [Material] ):
ins, material, nd, q = ' in ', str([Material]), str([NominalDiameter]), '?'
if not [Material]:
label = ''.join([nd, ins, q])
else:
label = ''.join([nd, ins, material])
return label
... View more
08-21-2015
08:51 AM
|
1
|
0
|
2599
|
|
POST
|
Nice! Andre, I perused the Web AppBuilder documentation last night - totally missed where you could set map options (I blame lack of sleep... that's my story)! For anyone who may be looking - you can find it here: Map configuration—Web AppBuilder for ArcGIS (Developer Edition) | ArcGIS for Developers
... View more
08-21-2015
05:55 AM
|
1
|
3
|
11865
|
|
POST
|
I'm not really familiar with the Web AppBuilder, however, according to the documentation, you can download and host the app yourself - Deploy app—Web AppBuilder for ArcGIS (Developer Edition) | ArcGIS for Developers. If you are doing this, maybe run a find-in-files search in the app using Notepad++, or however you'd like to do that, for the instantiation of the map and add the option param to disable the logo. I've never seen what the Web AppBuilder creates - it might be minified JS, but you can at least pretty-print it easily... Notepad++ has a plug-in that will do this for you. I didn't see anywhere in the documentation where you could configure this in the app config files, and I'm assuming you looked through the generation options, so it sounds like you may have to edit it yourself. I could be wrong on this, though! The other option if you're hosting the app - you could just add some css... something like this should work: div.esriControlsBR {
display: none;
}
... View more
08-20-2015
10:02 PM
|
0
|
0
|
11864
|
|
POST
|
Can you by chance post a jsfiddle demonstrating the issue?
... View more
08-20-2015
12:52 PM
|
0
|
1
|
1119
|
|
POST
|
There's a few ways you can accomplish this - Esri has products that can accomplish this within the ArcGIS ecosystem, but it sounds like you already have a process in place that does this, however, and you just need to hook-up ArcGIS as a forward-facing web app. I develop against the JSAPI - ArcGIS API for JavaScript - so I can speak a little bit from that angle. There are quite a few ways to go about doing this, however. I have an ArcGIS Server license, so I can't speak to your licensing needs since you mentioned you are trying to avoid buying more products. The topic has come-up before - ArcGIS Javascript API license question and ArcGIS Javascript API on personal website? - take it for what it is... I can't speak about using the API outside of being licensed for ArcGIS Server for commercial use. You should contact your Esri rep for your use case and consult all of your TOS docs and agreements. First thing I would do, run through the JSAPI tutorial: Build your first application | Guide | ArcGIS API for JavaScript It's all HTML/JavaScript based - you can reference the Esri CDN so you don't even need to host anything except your web page/main module. The API can consume web services published onto ArcGIS Server (like a feature layer), but it doesn't have to be... You can write an AJAX routine to poll a db and create features from a proc call on demand - no need to hit a service hosted on ArcGIS Server. Esri has an example showing something similar - Feature collection | ArcGIS API for JavaScript - in this sample, they are using esriRequest to pull JSON from Flickr to create points from the retrieved lat/longs. I code in .NET, so I have used ashx/page methods to run procs that return lat/longs, then constructed the JSON needed to display the layer, similar to the Flickr example. So, when the user wants to display the points, they could click a button, which would query the db, pull-back the lat/longs, create the JSON layer, then display on the map. If you do the legwork, I can envision a routine that could update the points in near real-time... I haven't had a need to do this yet, though. On that same note, if I had to do this, I would consider streaming layers: Stream Layer | ArcGIS API for JavaScript Keep in mind that the "ArcGIS GeoEvent Extension for Server must be licensed and installed in your enterprise GIS in order to leverage stream services." So, you would need the extension in addition to ArcGIS Server. StreamLayer (legacy) | API Reference | ArcGIS API for JavaScript Stream Services—Documentation (10.3 and 10.3.1) | ArcGIS for Server Output Connectors—Real-time Data Feeds and Sensors (10.3 and 10.3.1) | ArcGIS for Server
... View more
08-20-2015
08:47 AM
|
1
|
0
|
2467
|
|
POST
|
Leonardo, Are you looking to pull one-time static maps (snapshots) in ArcMap, or are you looking to push this to the web in a dynamic fashion?
... View more
08-20-2015
07:59 AM
|
0
|
3
|
2467
|
|
POST
|
I quickly gave a stab at what I think it's expecting based on the documentation, but it's throwing an error - "Error: smartMapping.createClassedColorRenderer: unable to find suitable colors for number of classes." ArcGIS API for JavaScript Sandbox function createRenderer(field) {
//smart mapping functionality begins
smartMapping.createClassedColorRenderer({
layer: layer,
field: field,
basemap: map.getBasemap(),
classificationMethod: "quantile",
scheme:
{
primaryScheme:
{
colorsForClassBreaks:
{
numClasses: 5,
colors:
[
new Color("#FFE6E6"),
new Color("#FFB2B2"),
new Color("#FF8080"),
new Color("#FF4D4D"),
new Color("#FF1919")
]
}
}
}
}).then(function (response) {
layer.setRenderer(response.renderer);
layer.redraw();
createLegend(map, layer, field);
});
}
... View more
08-19-2015
01:18 PM
|
0
|
0
|
2317
|
|
POST
|
It seems that you might be able to using scheme: esri/renderers/smartMapping | API Reference | ArcGIS API for JavaScript I wasn't able to pull an example, though - looking into that now...
... View more
08-19-2015
12:25 PM
|
0
|
2
|
2317
|
|
POST
|
I wasn't successful, either, trying to load the source (commented-out code), but I did just reverse the array to show it's possible: multiple sources example - world geocoder at the end - JSFiddle
... View more
08-19-2015
09:35 AM
|
0
|
1
|
1783
|
|
POST
|
Have a look at the following thread - Disable ESRI World Geocoder from Search Bar I provided an example of how to remove the Esri World Geocoder - I believe you can just add the Esri world geocoder source at the end of the sources array and it should show-up in that order. I'll see if I can put-together a jsfiddle...
... View more
08-19-2015
09:09 AM
|
1
|
3
|
1783
|
|
POST
|
It sounds like it should be applying the settings to the incremental back-ups - is this a bug, perhaps?
... View more
08-19-2015
09:00 AM
|
0
|
0
|
6102
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 06-16-2020 01:25 PM | |
| 1 | 03-20-2019 09:07 AM | |
| 2 | 07-31-2015 07:31 AM | |
| 1 | 09-14-2015 12:14 PM | |
| 1 | 05-12-2015 12:04 PM |
| Online Status |
Offline
|
| Date Last Visited |
07-27-2023
02:30 AM
|