Professional Documents
Culture Documents
L.esri.Cluster.featureLayer({
url: 'https://services.arcgis.com/rOo16HdIMeOBI4Mb/arcgis/rest/services/Trimet_Transit_Sto
}).addTo(map);
</body>
System.import('https://code.jquery.com/jquery.js');
Angular 2
Don't fight the loader, work around it
Angular 2
function register(name: string, mods: any[]) {
System.register(name, [], exp => {
return {
setters: [],
execute: () => {
mods.map((mod: any, idx: number) => {
exp(moduleName(deps[idx]), mod);
});
}
}
});
}
require(['esri/Map', 'esri/views/MapView'], function(...modules) {
register('esri-mods', modules);
System.import('app/boot');
});
Packaged it up for you
esri-system-js
esriSystem.register(
// array of Esri module names to load and then register with SystemJS
[
'esri/Map',
'esri/views/MapView',
'esri/widgets/Home/HomeViewModel',
'esri/request'
],