new LayerRecord()
- Source:
Methods
onMouseOut()
- Source:
Handles when the mouse leaves a layer
onMouseOver()
- Source:
Handles when the mouse enters a layer
validateProjection(spatialReference) → {Boolean}
- Source:
Determines if layer's spatial ref matches the given spatial ref. Mainly used to determine if a tile wont display on a map. Highly recommend only calling this after a layer's load event has happened.
Parameters:
Name | Type | Description |
---|---|---|
spatialReference |
Object | spatial reference to compare against. |
Returns:
true if layer has same sr as input. false otherwise.
- Type
- Boolean