Examples

Basics
Simple map Displaying a map on a page.
Map navigation Shows some of the ways of moving around the map programmatically.
Mobile map Displaying a mobile optimised map.
Map with large text Displaying a map on a page with large text.
Asynchronous loading Loading EMS via asynchronous script loading and then displaying a map.
 
Overlays
Map with crosshair markers Displaying a map with the various crosshair markers.
Map with POI markers Displaying a map with the numbered POI markers.
Map with Custom markers Displaying a map with custom markers.
Map with popop Displaying a map with a popup which is attached to a marker.
Map with route Displaying a map with a route line on it.
Map with route and alt route How to retrieve alt routes and display them
Map with point geometry Displaying a map with various geometry types.
Map with linestring geometry Displaying a map with linestring geometry.
Map with polygon geometry Displaying a map with irregular and regular polygon geometry types.
Map with KML geometry Create a map that contains KML-based geometry imported from a URI.
Add KML geometry to a map Dynamically add KML from a URI to an existing map
Add Encoded geometry to a map Dynamically add KML from a URI to an existing map
Map with circles Displaying a map with circle and ellipse geometry types.
Map with only specific layers Shows how to set up a map with just a street layer.
Map with custom third party layers Displaying a map with custom third party layers.
Map with Image layer Displaying a map with image overlay layer.
Map with image layer (Heat) Displaying a map with an image layer containing a heat image.
Map with heat layer Displaying a map with heat overlay layer.
Map with cluster markers Displaying a map with markers that cluster instead than overlap
Map with styled cluster markers Displaying a map with markers that cluster with custom styling
Multiple cluster marker layers Displaying a map with multiple styled cluster marker layers
Map with custom cluster markers Displaying a map with fully customised markers that cluster
Map with cluster markers and events Event handling for cluster markers. This example uses a popup with dynamic content.
 
Controls
Custom controls Shows how to set up custom controls for the map through initialisation and dynamically.
Drawing Tools Shows how to set up a drawing tools control panel.
Custom Drawing Tools Shows how to set up a drawing tools control panel with some custom features
Mini controls Shows how to set up mini controls for smaller maps when space is at a premium.
Off-center zoom Shows you how to use the zoomFocus property to implement off-center .
Positioning controls Shows how to set up you can layout controls in various positions.
 
Events
Map events Demonstrations how to listen for map based events.
 
Services
Structured geocoding Geocoding of a structured address object.
Unstructured geocoding Geocoding of an unstructured address object (a string).
Unstructured geocoding (Advanced) Geocoding of an unstructured address object using pagination and some location hinting to help find the result.
Reverse geocoding Reverse geocoding of a location to find the nearest geocoded objects.
Unstructured validation Using the Address Validation service with an unstructured address.
Route Shows how to route between points.
Route (Advanced) Shows how to route between points using some advanced parameters.
Ranking points Demonstrates ranking points relative to another location by different routing travel modes.
Points of Interest Return a list of points of interest for a given area.
Suggest Suggest a location name based on a text fragment. This is useful for creating an auto suggest field.
Suggest (Advanced) Suggest a location name based on a text fragment using some advanced parameters.
Details Search for a geocoded object by id and get some more details about it. This goes hand in hand with the suggest service.
Details (Advanced) Search for a location and get details of adjacent locations, boundary geometry and more.
Static map Creates a printable static map.
Advanced static map Explore printable static map options using a form.
Static map from JS map Uses static map service to create a static map definition from a JavaScript map
Static map with route by handle Uses static map service to create a static map that contains route geometry from a route handle
 
Utilities
Browser Information Review the EMS features and events supported by your browser.
 
Compatibility
Simple map Displaying a version 2 map using version 1 code, using compatibility mode.
Degrading gracefully Optimising controls based on device capability
Samsung Galaxy Note Workaround for display bug in Samsung Galaxy Note 1
 
Tools
Boundary Explorer Search for suburb, postcode and region locations and display their details and geometry on a map.
Location Explorer Search for address locations and add them to a map.
POI Explorer Search and browse for points of interest.
Route Explorer Explore routes, alternate routes and waypoint optimisation.