Hide Table of Contents
esri/dijit/util
esri/layer/pixelFilters
esri/process
esri/support
esri/workers
Object: esri/geometry/normalizeUtils

require(["esri/geometry/normalizeUtils"], function(normalizeUtils) { /* code goes here */ });

Description

(Added at v3.8)
Normalizes geometries that intersect the central meridian or fall outside the world extent so they stay within the current coordinate system. Only supported for Web Mercator and geographic coordinates.

When coding legacy (non-AMD) style, there is no need to require the module. All methods and properties are available in the namespace. For example, esri.geometry.normalizeCentralMeridian().

Samples

Search for samples that use this class.

Methods

NameReturn typeSummary
normalizeCentralMeridian(geometries, geometryService?, callback?, errback?)DeferredNormalizes geometries that intersect the central meridian or fall outside the world extent so they stay within the current coordinate system.
Method Details

normalizeCentralMeridian(geometries, geometryService?, callback?, errback?)

Normalizes geometries that intersect the central meridian or fall outside the world extent so they stay within the current coordinate system. Only supported for Web Mercator and geographic coordinates.
Return type: Deferred
Parameters:
<Geometry[]> geometries Required An array of geometries to normalize.
<GeometryService> geometryService Optional Specify a valid geometry service. If this is null and you've specified a geometry service using esriConfig.defaults.geometryService, that service will be used.
<Function> callback Optional The function to call when the method has completed. The callback returns an array of normalized geometries.
<Function> errback Optional An error object is returned, if an error occurs on the Server during task execution.
Show Modal