|
POST
|
i don't know exactly what i screwed up, but i was wrong earlier today. tokens are definitely already passed through when they are specified as an option for any of the various providers. if you update the static token in the jsbin below and perform a search for a US state, the network traffic confirms that the token is passed along in the corresponding requests. http://jsbin.com/fafexuf/edit?html,output i'll make a point of updating the documentation.
... View more
05-23-2017
01:21 AM
|
1
|
0
|
1183
|
|
POST
|
i took a quick look at this and it looks like we're currently ignoring tokens passed to arcgisOnlineProvider entirely. the way i envision this working is that 'token' should be a universally understood provider constructor option and that it should be up to the developer to pass an appropriate token to any provider that requires one. https://github.com/Esri/esri-leaflet-geocoder/issues/177
... View more
05-22-2017
03:13 PM
|
1
|
1
|
1183
|
|
POST
|
Hi Sara, i think the GitHub FAQ offers the best explanation of what Esri Leaflet is (and what it is not). If you have any questions after reading it, let me know...
... View more
04-27-2017
09:39 AM
|
2
|
0
|
3236
|
|
POST
|
dropbox disabled website hosting awhile back. here's the same file as a download https://www.dropbox.com/s/i7b7x16yaowbmgb/leaflet-requirejs.html?dl=0 this is the pattern: <script src="require.js"></script>
<script>
require.config({
paths: {
'leaflet': '//cdn.leafletjs.com/leaflet-1.0.0-b1/leaflet',
'esri-leaflet': '//cdn.jsdelivr.net/leaflet.esri/2.0.0-beta.5/esri-leaflet',
}
});
require(['leaflet', 'esri-leaflet'], function(L, esri) {
var map = L.map('map').setView([37.75, -122.23], 12.5)
esri.basemapLayer('Topographic').addTo(map)
})
</script>
... View more
04-20-2017
02:41 PM
|
2
|
1
|
1630
|
|
BLOG
|
it turns out the capability of uploading flat .geojson files and publishing them as hosted feature layers was added to Portal at 10.4 What's new in Portal for ArcGIS 10.4.1—Portal for ArcGIS (10.4.1) | ArcGIS Enterprise
... View more
04-11-2017
09:27 AM
|
1
|
0
|
2249
|
|
BLOG
|
hi simo, Filip (above) is correct that you can now specify f=geojson in ArcGIS Server feature layer queries to ensure that the response uses GeoJSON format, but as far as i know it is not possible yet to use .geojson files directly to spin up hosted feature services outside of ArcGIS Online. arcgis desktop - Methods for importing GeoJSON feature collection into ArcMap? - Geographic Information Systems Stack Ex…
... View more
04-10-2017
02:51 PM
|
1
|
0
|
2249
|
|
POST
|
when Leaflet.markerCluster.addLayer() is called, an attempt is made immediately to check whether a single lat/long can be extracted and clustered: // if its not possible to dig out a single lat/lon from the layer,
// abort clustering
if (!layer.getLatLng) {
this._nonPointGroup.addLayer(layer);
this.fire('layeradd', { layer: layer });
return this;
} so you have several problems... 1. L.esri.featureLayer doesn't fetch any features at all until after it is added to the map and even then has to make asynchronous web requests to ask for features that intersect the area being drawn 2. even when these features are retrieved, they can't be pulled out of L.esri.featureLayer via the .getLatLng() method that plugin uses (above). in the ArcGIS world, we tend to think of layers as entire collections of features with the same geometry type in a map. In Leaflet, a layer often refers to a single geometry (marker, polyline or polygon) unfortunately, i don't have any helpful advice for conveniently managing and clustering data coming from several different services. it would take some work.
... View more
04-07-2017
03:27 PM
|
0
|
1
|
1726
|
|
POST
|
if you want to enable authentication with a standalone ArcGIS Server instance, you can consider creating your own sign in dialog with <input> elements and a <button> to give your users a chance to supply the credentials so that you can kick off a `/generateToken` request dynamically. If the content is secured through ArcGIS Online (or an instance of ArcGIS Server federated with Portal) you can and should use OAuth2 instead of handling the user's credentials yourself. You can find an example of that below. ArcGIS Online OAuth | Esri Leaflet
... View more
04-07-2017
01:02 PM
|
1
|
0
|
909
|
|
POST
|
the esri control is extensible so if you'd like to blend the functionality of both plugins one option would be to write a custom esri-leaflet-geocoder provider that makes AJAX requests for native GeoJSON features. in the FeatureLayer provider below, the suggestions() and results() methods do the bulk of the work and both call query.run() to issue the actual web requests. that's where you'd do your own thing. esri-leaflet-geocoder/FeatureLayer.js at d990664e7e001bbd2676c958b3a276e696824f08 · Esri/esri-leaflet-geocoder · GitHub
... View more
03-13-2017
01:02 PM
|
0
|
0
|
1500
|
|
POST
|
layers expects an array `layers: [12]`, but other than that i don't see any problems with your code. live working sample http://jsbin.com/vovunun/edit?html,output if you snoop the network traffic, do you see an 'export' request and valid response from your map service?
... View more
12-26-2016
11:38 AM
|
2
|
0
|
3132
|
|
POST
|
dynamicMapLayer fetches a raster depiction of the data using the export operation of a service published to ArcGIS Server. WMS is a comparable, OGC compliant resource. http://resources.arcgis.com/en/help/arcgis-rest-api/index.html#/Export_Map/02r3000000v7000000/ The value passed as a simplifyFactor is as a multiplier to generate an appropriate maxAllowableOffset to pass to the service to remove extraneous vertices without affecting the shape of the result geometry too severely. You're correct that it can accept any number, not just an integer. relevant source: esri-leaflet/Query.js at 9ad267e62410c7c1c7229a6cb77fcd80c660d3ad · Esri/esri-leaflet · GitHub i've logged a documentation issue to make sure it gets fixed: https://github.com/Esri/esri-leaflet-doc/issues/123
... View more
12-19-2016
12:41 PM
|
2
|
2
|
3132
|
|
POST
|
instead of loading the layer as a WMS service, you might consider loading a dynamicMapLayer and calling `identify()` when the map is clicked to display in your popup. live sample: http://esri.github.io/esri-leaflet/examples/identifying-features.html another option would be to set the appropriate constructor properties to generalize the geometries of the featureLayer. http://esri.github.io/esri-leaflet/examples/simplifying-complex-features.html you can find more information on the differences between different esri-leaflet layer types in the tutorial below. http://esri.github.io/esri-leaflet/tutorials/introduction-to-layer-types.html
... View more
12-15-2016
04:31 PM
|
2
|
4
|
3132
|
|
POST
|
check out this stack overflow thread. http://stackoverflow.com/questions/5613834/convert-string-to-variable-name-in-javascript
... View more
11-28-2016
02:48 PM
|
0
|
0
|
3561
|
|
POST
|
the curmudgeon in me really feels like it is more helpful in the long run to give folks a chance to try themselves and learn something new than it is to immediately provide ready to use code.
... View more
11-23-2016
01:05 PM
|
1
|
2
|
6107
|
|
POST
|
the easiest way to compare and contrast individual map services is to click the 'ArcGIS JavaScript' link in the top lefthand corner of an individual service metadata page. https://services.geodataonline.no/arcgis/rest/services/Geocache_UTM33_WGS84/GeocacheBasis/MapServer I took a look at a few and it appears that they were designed and cached in a custom projection that is specific to the area surrounding Norway (UTM33 North/ wkid:32633), rather than Google and Leaflet's default Web Mercator which is used worldwide (wkid:3857). https://services.geodataonline.no/arcgis/rest/services/Geocache_UTM33_WGS84/GeocacheBasis/MapServer?f=jsapi In Leaflet, you'll need to reference the example below and define the properties of the UTM33 North projection explicity in your code. http://esri.github.io/esri-leaflet/examples/non-mercator-projection.html Dealing with custom projections is much less cumbersome in the ArcGIS API for JavaScript, because that API parses the information directly from service metadata. https://jsbin.com/kasixern/edit?html,output
... View more
11-23-2016
10:37 AM
|
1
|
6
|
6107
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 04-16-2014 02:35 PM | |
| 1 | 03-15-2013 04:25 PM | |
| 1 | 06-01-2016 10:51 AM | |
| 1 | 12-28-2015 04:46 PM | |
| 1 | 12-28-2015 05:26 PM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:22 AM
|