MapService is an Angular Factory in the SVG module with the name
map.js. It provides an API to load geographical maps into SVG layers. To use this API, see the documentation on injecting Angular services.
|Searches for a map in a large datafile and loads a specific map region into to the SVG layer.|
|Load a map region into the SVG layer.|
Searches for a map in a large datafile and loads a specific map region into to the SVG layer. This assumes the map file you are providing has multiple maps in it.
|Example Usage||Arguments||Return Value|
var promise = ms.loadMapRegionInto(
'countryFilter': function reference that is a filter function to find the country in the file
|a promise to load (asynchronously) the geo-map-data-file|
Load a map region into the SVG layer. This assumes the map file you are providing only has one map in it.