Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/josedbaez/sitecore-spatial-geojson-polygons
https://github.com/josedbaez/sitecore-spatial-geojson-polygons
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/josedbaez/sitecore-spatial-geojson-polygons
- Owner: josedbaez
- Created: 2019-07-02T20:55:15.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-06-22T21:14:29.000Z (over 2 years ago)
- Last Synced: 2024-01-25T00:16:08.155Z (10 months ago)
- Language: C#
- Size: 153 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- Awesome-Sitecore - Sitecore spatial geojson polygons - Implementation of a Linq extension to be able to query on points that intercept GeoJson polygons in Solr indexes. The demo provides a template with the spatial field, a couple of sample items with polygons from OpenStreetMap that cover some cities; and a controller rendering that reads lat and long from the query string and returns the polygon of the item found (e.g. Big Ben's coordinates return London). (Content Search)
README
# sitecore-spatial-geojson-polygons
See post on implementation: https://josedbaez.com/2019/07/sitecore-polygon-search/
This repository contains the implementation of a Linq extension to be able to query on points that intercept GeoJson polygons in solr indexes.
Demo:
----
The demo provides a template with the spatial field, couple of sample items with polygons from openstreetmap that cover some cities; and a controller rendering that reads lat and lng from the querystring and returns the polygon of the item found (e.g. Big Ben’s coordinates http://sc9xp0.sc/?lat=-0.1268141&lng=51.5007292 will return London).To use:
- Update solr schema with fields under /config
- Install sitecore package under /items-package
- Add Polygon rendering to an item and browse it providing lat and lng querystring parameters