ABOUTDEVELOPERS |
ParcelStream™ Code Examples
Publish With SpatialLink and Aggregation
This is an example of a published layer that joins a Neighborhoods layer with a Listings layer using spatial links. The Listings data has been rolled-up to Neighborhood boundaries. A filter has also been applied to only include medium priced, single family residences that sold in the first quarter of 2010.
The layer has been Thematically Mapped to display the difference in average sales price per sqft between each neighborhood. Blue is for the neighborhoods with the lowest average sales price per sqft and red is for the highest. Table Loader | GetMap
var neighborhoodLayer = new Dmp.Layer.WMSLayer("NeighborhoodListings", "SS");
neighborhoodLayer.addChild("NeighborhoodPolys", "MY_FOLDER/NeighborhoodListingsStats", "$(ACCOUNT_FOLDER)SLD/NeighborhoodListingsStats.xml", { zoomRange: { }); min: 8, max: 16 }neighborhoodLayer.addChild("NeighborhoodLabels", "MY_FOLDER/NeighborhoodListingsStats", "$(ACCOUNT_FOLDER)SLD/NeighborhoodListingsStats_Labels.xml", { zoomRange: { }); min: 12, max: 16 }map.addOverlay(neighborhoodLayer); Run Sample Back To Index |