POST
|
Hi Russell! You did got me curious about the details! For some reason I can't send you a private message on Geonet. Could you send me some more details by email? dennishunink AT me DOT com
... View more
01-16-2015
10:30 AM
|
0
|
1
|
1408
|
POST
|
If you'd look to the source code of jQuery UI you would see there trying to hook into AMD. Although not tested through and through, it looked a lot like the DoJo loader (also tested with dojo core, without esri) conflicts with jQuery and jQuery UI, when the haven't finished loading. Seems a lot like it has something to do with this line of code: if ( typeof define === "function" && define.amd ) { (from jquery-ui/core.js at master · jquery/jquery-ui · GitHub ) When jQuery and/or jQuery UI haven't finished loading their modules/scripts but dojo is starting to load, the above if statement seems to prove to be true. Whoever, when you defer loading all dojo stuff until jQuery-ui and jQuery are loaded, the statement will return false (obviously). I haven't been able to fully test the hypothesis but in practice this works for me: - load jQuery and jQuery ui in de header, blocking - load alle my custom code AND the dojo stuff in the footer, deferred
... View more
01-08-2015
12:55 PM
|
2
|
0
|
12248
|
POST
|
I did had a similar issue lately. In the end it turned out there was a conflict wit jQuery UI loading stand-alone (not as a dojo package). Key is wait for jQuery UI to be loaded (blocked) before firing the DoJo loader. See ArcGIS Javascript API broken after latest WordPress release Not sure if this applies to your situation. But just in case...
... View more
01-08-2015
11:52 AM
|
0
|
0
|
3291
|
POST
|
I'm sorry, did forgot to post the right answer here as well; just did. Thanks!
... View more
01-03-2015
01:13 AM
|
0
|
0
|
1408
|
POST
|
Weird. I don't seem to get it running.... Anyway, I just restored an backup from a couple of days ago in a different folder: Oefen de Topografie van Nederland per provincie That one works like a charm. Only thing I've changed since then is upgrading WordPress from 4.0.1 to 4.1. I do believe you're right about the timing issue. Does it makes any sense to you, comparing the restored backup to the false website on https://tpgrf.nl/testserver/alpha/topotrainer/provincies/ ?
... View more
12-23-2014
01:35 PM
|
0
|
0
|
426
|
POST
|
That sounds interesting! Could you share the code you used with the pauses at the various breakpoints? I'll just go from there and dive further in it.
... View more
12-23-2014
12:58 PM
|
0
|
2
|
426
|
POST
|
Hi Rene! Really appreciate your quick reply! I've implemented your suggestion as follows: <link rel="stylesheet" href="https://js.arcgis.com/3.12/esri/css/esri.css">
<script type="text/javascript">var dojoConfig = {parseOnLoad: true, isDebug: true, async: false}; </script>
<script src="https://js.arcgis.com/3.12compact/"></script>
<script type="text/javascript">define.amd.jQuery = false;</script> Unfortunately this doesn't solve my problem, see the screenshot below (Chrome Console):
... View more
12-23-2014
12:11 PM
|
0
|
4
|
426
|
POST
|
Hi There! my implementation of the JS API is failing because dojo is trying to fetch a (non-existing) jQuery.js module on https://js.arcgis.com/3.12/jquery.js. Does anyone know any causes for this particular error? A little more details: The implementation is done on a Wordpress website, were jQuery is included by default. See it in action at https://tpgrf.nl/testserver/alpha/topotrainer/provincies/ To narrow down the possible causes I created a simple WordPress page with just the js api included: https://topografieindeklas.nl/pocdojo/. Same problem here. The problem started to occur only after the recent update of WordPress. No WordPress plugins are causing the problem, since it continues to be present, even if all plugins are disabled. A version running WordPress 4.0.1 is live here: https://topografieindeklas.nl/topotrainer/provincies/ Any help would be appreciated!
... View more
12-23-2014
11:34 AM
|
0
|
6
|
2633
|
POST
|
SOLUTION: For everyone interested: turned out the solution was moving all files that use DoJo beneath the jQuery UI files, so that jQuery UI is fully loaded before any DoJo stuff loads. Moved them all in the footer in that order (jQuery, then jQuery UI and then alle DoJo related files). I'm running a Wordpress website which uses both jQuery and the ArcGIS Javascript API v3.12. After recently upgrading from Wordpress 4.0.1 to 4.1, things broke. Dojo is returning multiple Error: multipleDefine errors. Basically it looks like DoJo tries to load a new instance of jQuery, which it shouldn't, since WordPress has loaded jQuery already and there isn't a jQuery module available in the DoJo map. Furthermore, this issues seems to only exists in WordPress, not in a jsfiddle I made including exactly the same scripts. For debugging purposes I first disabled all WordPress plugins, without any result; the problem kept existing. I went on and found a couple of interesting things. But I'm really stuck in the further debugging proces. I know the scope of this question is rather broad, but any thoughts at all are very much appreciated. What I know so far/that i'm wondering about: -Things stopt working after upgrading to WordPress 4.1 -In the info of the multipleDefine error it states https://js.arcgis.com/3.11/jquery.js, which is weird: it shouldn't be looking for jQuery there, since it's already included in Wordpress -Things break as soon as I included the ArcGIS Javascript API, which includes DoJO, but only in WordPress; on a jsfiddle things work fine http://jsfiddle.net/dhunink/mry5vn3s/6/ Above leads me to the conclusion that something changed in the last WordPress release that effects my script, although I can't find anything in the release notes that could be linked to my issue. Any thoughts, suggestions of comments are highly appreciated! Feel free to see all in action at https://tpgrf.nl/testserver/alpha/topotrainer/provincies/.
... View more
12-23-2014
06:48 AM
|
0
|
7
|
7502
|
IDEA
|
Geofencing is already possible in several API's, which is great. Therefore it shouldn't be to hard to make Geofencing also possible within the ArcGIS App. Personaly I use the Collector app a lot with students (ages 10 - 18) during field trips. It's amazing and they love it, makes field trips so much more fun then walking around with old-skool textbooks in the field. The Collector app is so much better, so much more stable and so much more feature-rich compared to other software options. Adding Geofencing to the Collector App would make it so much more powerfull, it would allow me to configure certain points that can only be accessed when students are near. In addition, it would be safer and save batery life if students would not be required to look at there phonescreens all the time but recieve a alert, triggered by geofencing, when their near a certain point. I do realize that my why of using the app isn't the one the app had been designed for. Whoever, I do believe lot's of proffesionals would encounter lot's of situations in which geofencing would be very powerfull in completeing their every day work!
... View more
11-11-2014
08:14 AM
|
40
|
5
|
1894
|
POST
|
It has been solved in the mean time, on stack exchange. See javascript - TypeError: g is not a function - Stack Overflow for more detail!
... View more
07-27-2014
01:44 PM
|
0
|
0
|
2255
|
POST
|
You might want to check out the LabelLayer or, as Jeff Pace suggested, just use a text symbol. Might also be a good idea to check out the nature of infoTemplates; you might end up with a combination of those.
... View more
07-26-2014
07:39 AM
|
0
|
0
|
1875
|
POST
|
Hi There! While re-writing one of my applications from scratch (to go from legacy to AMD) I'm encountering an error which I can'f figure out. It is driving me crazy. I'm probably just misspelling something or have another minor mistake, but I just can't figure out what. Any help would be highly appreciated! I'm still in development mode, so my code isn't that pretty at this time. You can see it live in action at here. The javascript code:
//Define area and url's
var currentPath = window.location.pathname.split('/');
var AREA = currentPath[currentPath.length - 2];
if(AREA == 'europa' || AREA =='wereld' || AREA == 'nederland'){
var AREAURL = AREA;
var AREAisProvince = false;
}else{
AREAURL = 'nederland';
var AREAisProvince = true;
}; //Ondervang provincies
var basemapURL = window.location.protocol+"//tiles.arcgis.com/tiles/nSZVuSZjHpEZZbRo/arcgis/rest/services/Topografie_in_de_klas_"+AREAURL+"_ondergrond/MapServer";
var contentFeatureURL = window.location.protocol+"//services.arcgis.com/nSZVuSZjHpEZZbRo/ArcGIS/rest/services/Topografie_in_de_klas_"+AREAURL+"/FeatureServer/0";
var CONTENT = 'cito100';//Default to 'cito100', user can adjust manually
var TYPES = '';//empty for now, will be defined later by the user
var TYPES = 'plaats';//for testingunction's//
//
function generateUUID(){
var d = new Date().getTime();
var uuid = 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function(c) {
var r = (d + Math.random()*16)%16 | 0;
d = Math.floor(d/16);
return (c=='x' ? r : (r&0x7|0x8)).toString(16);
});
return uuid;
};
//
//Figure something out here to detect if the user as a new or returning visitor
//
//////////////////////////////////////
//Create a basemap and load features//
//////////////////////////////////////
var dojoConfig = {parseOnLoad: true};
var map;
require(["esri/geometry/Extent", "esri/SpatialReference", "esri/map", "esri/graphic", "esri/layers/ArcGISTiledMapServiceLayer", "esri/tasks/query", "esri/tasks/QueryTask", "esri/tasks/FeatureSet", "esri/layers/GraphicsLayer", "esri/Color", "esri/symbols/SimpleMarkerSymbol", "esri/symbols/SimpleLineSymbol", "esri/symbols/PictureMarkerSymbol", "esri/renderers/UniqueValueRenderer", "esri/renderers/ClassBreaksRenderer",
"dijit/layout/BorderContainer", "dijit/layout/ContentPane", "dijit/TitlePane",
"dojo/domReady!", "dojo/dom", "dojo/on"],
function(Extent, SpatialReference, Map, Graphic, Tiled, Query, QueryTask, FeatureSet, GraphicsLayer, Color, SimpleMarkerSymbol, SimpleLineSymbol, PictureMarkerSymbol, UniqueValueRenderer, ClassBreaksRenderer, dom, on) {
//@TODO: Can we actually define this on the basemap mapserver?
if(AREA == 'nederland' || AREAisProvince == true){
var initExtent = new Extent(-165715, 6453119 , 1435181,7205260, new SpatialReference({ wkid:102100}));
}
if(AREA == 'europa'){
var initExtent = new Extent(-2827847 , 2851709, 6838658 , 11375669, new SpatialReference({wkid:102100}));
}
if(AREA == 'wereld'){
var initExtent = new Extent(-19705424 , -14849545, 21700207, 21624981, new SpatialReference({wkid:102100}));
}
map = new Map("map", {
extent: initExtent
});
//let's add a basemap
var tiled = new Tiled(basemapURL);
map.addLayer(tiled);
where = 'Cito100_onderdeel=1';
if(AREAisProvince == true){
where += ' AND Provincie=\''+AREA+'\'';
}
map.on("load", getFeaturesToMapAndStorage(where));
function getFeaturesToMapAndStorage(whereClause){
console.log(whereClause);
//query the featureService
var query = new Query();
query.returnGeometry = true;
query.outFields = ["*"];
query.outSpatialReference = new SpatialReference({wkid:102100});
query.where = whereClause;
var queryTask = new QueryTask(contentFeatureURL);
queryTask.on("complete", function (event) {
//map.graphics.clear();
var featureGraphicsLayer = new GraphicsLayer();
//@TODO: Can't we find a way to use the symbols from the featurservice directly, instead of the url's?
defaultSymbol = new SimpleMarkerSymbol(SimpleMarkerSymbol.STYLE_SQUARE, 10,
new SimpleLineSymbol(SimpleLineSymbol.STYLE_SOLID,
new Color([255,0,0]), 1),
new Color([0,255,0,0.25]));
var renderer = new UniqueValueRenderer(defaultSymbol, "Type");
renderer.addValue("Plaats", new PictureMarkerSymbol("https://services.arcgis.com/nSZVuSZjHpEZZbRo/ArcGIS/rest/services/Topografie_in_de_klas_nederland/FeatureServer/0/images/89e5f81878a69f9cc0525c841f98af54", 11, 11));
renderer.addValue("Gebied", new PictureMarkerSymbol("https://services.arcgis.com/nSZVuSZjHpEZZbRo/ArcGIS/rest/services/Topografie_in_de_klas_nederland/FeatureServer/0/images/165c76bd4465728a34f6d18df4a1ec03", 28, 28));
renderer.addValue("Water", new PictureMarkerSymbol("https://services.arcgis.com/nSZVuSZjHpEZZbRo/ArcGIS/rest/services/Topografie_in_de_klas_nederland/FeatureServer/0/images/f9c146a401f48c4f38202e83c2e4582a", 22, 22 ));
renderer.addValue("Provincie", new PictureMarkerSymbol("https://services.arcgis.com/nSZVuSZjHpEZZbRo/ArcGIS/rest/services/Topografie_in_de_klas_nederland/FeatureServer/0/images/7a5373d8f1dcd1ecc03cefbab687b97c", 38, 32 ));
renderer.addValue("Land", new PictureMarkerSymbol("https://services.arcgis.com/nSZVuSZjHpEZZbRo/ArcGIS/rest/services/Topografie_in_de_klas_europa/FeatureServer/0/images/7a5373d8f1dcd1ecc03cefbab687b97c", 38, 32 ));
renderer.addValue("Werelddeel", new PictureMarkerSymbol("https://services.arcgis.com/nSZVuSZjHpEZZbRo/ArcGIS/rest/services/Topografie_in_de_klas_wereld/FeatureServer/0/images/48f2256a49253388488d813d721c054b", 32, 38));
var features = event.featureSet.features;
var featureCount = features.length;
for (var i = 0; i < featureCount; i++) {
var graphic = features;
featureGraphicsLayer.add(graphic);
}
featureGraphicsLayer.renderer = renderer;
map.addLayer(featureGraphicsLayer);
//@TODO: Update localstorage
});//end on queryTask complete
queryTask.execute(query, queryComplete);
function queryComplete(){
console.log("fire function queryComplete");
//@TODO: reset progressbar
};//End function queryComplete
}//end function getFeaturesToMapAndStorage
//The two closing tags below are essential and close the complete DOJO part.
}//end function after require (AMD style)
);//end require
... View more
07-26-2014
07:26 AM
|
0
|
1
|
6448
|
POST
|
Hi, The summary template is not produced by the Story Maps team, see the StoryMaps app list.. So you may have more chance to get answer in the ArcGIS Online forum. Just posted it on that forum as well. The template is on the default list when you create a web map and select 'make an application', and is on the GitHUB, so I figured it was e story map template.
... View more
04-11-2014
07:25 AM
|
0
|
0
|
166
|
POST
|
Hi There, I'm experimenting some with the super cool Summary template. I deployed my data (see http://services2.arcgis.com/QAdJ8Cfk7wlxW3HM/ArcGIS/rest/services/ACLED_pointsonly/FeatureServer/0), which consists of almost 80.000 records. Every record is a conflict that occurred in Africa between 1997 en 2012. SO it makes sense to give a count and group the records, to see where concentrations are. However, when I deploy the template, the count does not show the correct number. On a large scale it counts up to 3.000 cases, when zoomed-in it will go slightly higher (around 4.000). What is going on here, how can I make the template show the right count? See it live here: http://topografieindeklas.nl/playground/ACLED/summary/
... View more
04-11-2014
04:15 AM
|
0
|
2
|
415
|
Title | Kudos | Posted |
---|---|---|
40 | 11-11-2014 08:14 AM | |
2 | 01-08-2015 12:55 PM |
Online Status |
Offline
|
Date Last Visited |
12-29-2023
10:49 PM
|