|
POST
|
So the API has a where option and a setWhere method with other time filter methods.
L.esri.Layers.FeatureLayer | Esri Leaflet
Is there a way to set the geometry as well? Right now it uses the bounds of the map to limit queries, but can I override that pretty easily somewhere?
Right now I can jump through some hoops using Turf to do point-in-polygon searches, but it doesn't work if I need to check points outside the bounds of the map not queried yet.
Turfjs/turf-inside · GitHub
I'm thinking I could just query the data on my own, convert to GeoJSON and use Turf + properties filtering to search my results, but was kind of hoping there was a workflow in Esri-Leaflet already to do this. Any ideas?
Thanks.
... View more
10-14-2014
09:12 AM
|
0
|
4
|
5475
|
|
POST
|
It's a method of the graphic object, so it's
alert(graphic.getContent()+"Arcgis");
... View more
10-02-2014
09:15 AM
|
0
|
1
|
3900
|
|
POST
|
A good DIY solution is using the IBrowserManager interface. Adobe Flex 4.6 * Using the BrowserManager You may need to use setTimeout to wait for the map to load and all your layers. Something like this.
map.addEventListener(MapEvent.LOAD, function():void {
setTimeout(function():void {
bm = BrowserManager.getInstance();
bm.init();
var o:Object = URLUtil.stringToObject(bm.fragment);
var type:String = String(o.view);
if (type != "") {
switchMap(views[type]); // I use it for custom views
}
}, 500)
});
... View more
09-29-2014
09:31 AM
|
0
|
0
|
872
|
|
POST
|
You could still use the LocateButton widget, but don't pass it a dom id and don't run the startup method on it or pass the visible parameter as false. The widget methods will still be available to you. So when you dijit button is clicked, you could do something like this
locateWidget.locate().then(function(e) {
// do something with the event which returns error, graphic, position and scale
});
locatebutton-amd | API Reference | ArcGIS API for JavaScript
... View more
09-23-2014
09:20 AM
|
0
|
0
|
2961
|
|
POST
|
Did you require dojo/parser and diji/form/Button in your main.js file? If you don't set parseOnLoad; true in your dojoConfig, you'll need to do parser.parse() before anything else. dijit/form/Button — The Dojo Toolkit - Reference Guide
... View more
09-15-2014
01:00 PM
|
1
|
5
|
2245
|
|
POST
|
The SDKs provide the most reliable forms of offline editing and use. That's not to say you can't get something useful working with the JS API. Check out this library. Esri/offline-editor-js · GitHub It provides some very nice features, including handling offline tiles, editing, and even a library for tile packages (which I have not tried yet). You could also try and put some simpler offline editing in place using something like PouchDB that can work pretty well. ArcGISWebDev/pouchstore.js at master · odoe/ArcGISWebDev · GitHub
... View more
09-02-2014
12:41 PM
|
0
|
1
|
936
|
|
POST
|
You are in luck. The docs and samples are really well written. I think you'll find some great resources there. Esri/esri-leaflet · GitHub
... View more
08-31-2014
08:31 PM
|
0
|
1
|
4544
|
|
POST
|
You can find that information in the fields property of the layer. Each field will have a domain property associated with it and will look something like this.
{
"name":"Enabled",
"type":"esriFieldTypeSmallInteger",
"alias":"Enabled",
"domain":{
"type":"codedValue",
"name":"EnabledDomain",
"codedValues":[
{
"name":"False",
"code":0
},
{
"name":"True",
"code":1
}
]
}
}
... View more
08-28-2014
03:28 PM
|
1
|
0
|
1010
|
|
POST
|
Well, 'click' will work, dbl-click/dbl tap not so much. There's a thread discussing some click/tap issues here that are stil present in the current issue of the api. There's a hacky way to do it, but so far it's an "all hack" or nothing solution as it will break some other click events. Feature Layer double TAP point
... View more
08-28-2014
06:46 AM
|
0
|
0
|
1513
|
|
POST
|
I'm going to guess it's because dojo/_base/event is deprecated. The recommendation is to call event.preventDefault() and event.stopPropagation() natively. dojo/_base/event — The Dojo Toolkit - Reference Guide
... View more
08-26-2014
02:11 PM
|
0
|
0
|
936
|
|
POST
|
I'm curious if getting double-tap to work in an upcoming version of the API is on the roadmap anywhere. Mobile editing is pretty key and although the hack I posted still works, I am finding it can interfere with some other click events on the map. I am still trying to work around this issue in my particular case, so it may work fine for others. It would however be nice if the API could check for touch events and fallback to those as needed behind the scenes. By the way, I have created a widget that implements the above hack. odoe/esri-simpleedit-widget · GitHub
... View more
08-26-2014
06:38 AM
|
1
|
0
|
3263
|
|
POST
|
There is an issue open for this on the esri/resource-proxy page, but no updates in a while on it. node.js proxy page · Issue #63 · Esri/resource-proxy · GitHub You could try and roll your own using express. It's not too difficult. I have one you could probably tweak, but it does not handle tokens.
proxy = new httpProxy.RoutingProxy();
// My attempt to use node http-proxy, may or may not work
// Seems to work when trying to proxy to a web site and AGS URLs, so ok
app.all('/proxy', function (req, res) {
var buffer,
url_,
_query,
_query_url,
full_url,
clean_url;
/*
* Apparently need this buffer because
* express turns a POST body response
* into an object.
**/
buffer = httpProxy.buffer(req);
url_ = req.url.split('?')[1];
_query = req.url.split('?')[2];
_query_url = '';
if (typeof _query !== 'undefined') {
_query_url = '?' + _query;
}
full_url = url_ + _query_url;
req.url = full_url;
clean_url = url.parse(url_);
proxy.proxyRequest(req, res, {
host: clean_url.host,
port: 80,
buffer: buffer
});
});
... View more
08-25-2014
06:44 AM
|
0
|
1
|
1108
|
|
POST
|
I posted it earlier in this thread, but this version of the ClusterLayer is a FeatureLayer (almost) with clusters enabled. odoe/esri-clusterfeaturelayer · GitHub It takes a URL, does caching and more. It will even convert a service of polygons to points and cluster them. One of the samples tries to access an AGOL service that requires a login now though, so I need to update that.
... View more
08-19-2014
06:41 AM
|
0
|
0
|
3103
|
|
POST
|
Is this a Dynamic layer or FeatureLayer? If it's a FeatureLayer, you should be able to add the popupInfo to the layers JSON constructor and get the popups.
... View more
08-18-2014
06:36 AM
|
0
|
0
|
4537
|
|
POST
|
Yes please. Heck, I'd even say most of the *Parameters currently in the library don't even need to be there. Abstract them away in the internals of the Task. I should just be able to say
var dynamicMapServiceLayer = new ArcGISDynamicMapServiceLayer("http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Demographics/ESRI_Population_World/MapServer", {
"opacity" : 0.5,
"imageParameters" : {dpi: 96, format: 'PNG32'}
});
Provide the specs and bam.
... View more
08-15-2014
02:57 PM
|
1
|
1
|
1109
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | Wednesday | |
| 2 | 05-19-2026 02:12 PM | |
| 1 | 04-24-2026 11:01 AM | |
| 2 | 04-21-2026 07:06 AM | |
| 1 | 02-27-2026 06:31 AM |
| Online Status |
Online
|
| Date Last Visited |
7 hours ago
|