Esri JavaScript APIs
Tiled Map Labels
Available Reference Layers
Dynamic Map Labels
Client-side Labels
Scale Dependent Rendering
Adding SVG Filters
Q & A
Cartographic Conventions
Typographic Conventions
ArcMap Label Manager
Labels vs. Annotations
Maplex Label Engine
Tile Cache Generation & Storage
Polygon Skeletons
JavaScript Developer Tools
Adobe Illustrator / InkScape
var map;
require(["esri/map", "dojo/domReady!"], function(Map) {
map = new Map("map", {basemap:"topo", center:[-122.45, 37.75], zoom:13});
});
var map = L.map('map').setView([37.78, -92.85], 4);
L.esri.basemapLayer('Streets').addTo(map);
Services Requests
Centralized Logic
Data Rich
Executes JavaScript
Distributed Logic
Limited Data
Generated Offline
Static
Scalable
Expressive
OceansLabels
GrayLabels
DarkGrayLabels
ImageryLabels
ShadedReliefLabels
Oceans
Gray
DarkGray
Imagery
ShadedRelief
var map = L.map('map').setView([32.73, -117.17], 10);
L.esri.basemapLayer('DarkGray').addTo(map);
L.esri.basemapLayer('DarkGrayLabels').addTo(map);
Generated at runtime
Dynamic image for viewport
Utilitarian
Less-Portable
var map = L.map('map').setView([34.025, -116.203], 9);
L.esri.basemapLayer('Oceans').addTo(map);
var federalLands = L.esri.dynamicMapLayer('http://maps1.arcgisonline.com/ArcGIS/rest/services/USA_Federal_Lands/MapServer', {
opacity: 1,
useCors: false
}).addTo(map);
var labelField = "STATE_NAME";
var statesLabel = new TextSymbol().setColor(new Color("#C7C7C7"));
statesLabel.font.setSize("14pt");
statesLabel.font.setFamily("arial");
statesLabelRenderer = new SimpleRenderer(statesLabel);
var labels = new LabelLayer({ id: "labels" });
labels.addFeatureLayer(states, statesLabelRenderer, "${" + labelField + "}");
map.addLayer(labels);
var labelLayer = new LabelLayer({ id: "labels" });
labelLayer.addFeatureLayer(states, mediumLabelRenderer, "${STATE_NAME}");
labelLayer.addFeatureLayer(counties, mediumLabelRenderer, "${NAME}");
labelLayer.addFeatureLayer(groups, mediumLabelRenderer, "${BLKGRP}");
labelLayer.addFeatureLayer(blocks, mediumLabelRenderer, "${BLOCK}");
http://github.com/patrickalrt
http://github.com/patrickalrt