Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
426f6c6
Added first brush through the type definitions - only done controls s…
Dec 16, 2016
b365d22
Finished first pass of typescript definitions
Jan 12, 2017
6029dd5
Cleaned comments, updated meta information
Jan 12, 2017
8add1b3
Fix: id prop on Feature is required.
Jan 12, 2017
13a2367
Added source.xyz
Jan 14, 2017
1a96928
Added geom.Point
Jan 17, 2017
6075da0
Merge branch 'add-geom-point'
Jan 17, 2017
3889140
Allowed nesting of properties for styles
Jan 17, 2017
9089be0
Cleaned render function
Jan 17, 2017
5699a53
Merge branch 'add-geom-point'
Jan 17, 2017
a01d6ec
Merge branch 'style-changes'
Jan 17, 2017
08fbce9
Fix interaction prop, active should be nullable as default is set by …
Jan 19, 2017
0959fa4
Changed the view to be a controlled component
Jan 29, 2017
e18faf3
Updated openlayers version to 3.20.1
Jan 29, 2017
f9fdba4
Updated source.bingmaps with required parameter.
Jan 29, 2017
00966bb
Added overlay
Feb 2, 2017
f5b9d38
Updated babel to 6.
Feb 17, 2017
0abbd08
Exposed getGeometry on Feature
Feb 17, 2017
e3cf170
Cleaned geometries
Feb 17, 2017
32ddee4
Reworked view to take default parameters, and exposed the fit method
Feb 17, 2017
970325a
Updated typescript definitions to match latest changes
Feb 17, 2017
28699b9
Fix for map not correctly resizing to 100%, passing style prop down c…
Mar 22, 2017
b2d179d
Added getSize to map, fixed View.fit parameters
Apr 10, 2017
3c2946a
Cleaning up some of the work in View around controlled/uncontrolled c…
Apr 18, 2017
ab52b11
Upgraded to react 15.5.4, changed to prop-types
Apr 20, 2017
2e53db4
Added animation options to overlay, point
May 31, 2017
42ceb5d
Making sure to clean up the DOM correctly, creating DOM element at th…
May 31, 2017
a54ba44
Updated polygons to be editable..
Jun 1, 2017
719c5e6
Fixing up Modify definition for polygon
Jun 1, 2017
fb420a0
Made all geometries capable of modification
Jun 3, 2017
c05c96b
Added an onFeatureHover event to ol.Map for feature hovering
Jun 8, 2017
7bfac85
Added an onFeatureClick to ol.Map
Jun 9, 2017
5f49625
Adding babel es2015 support so that code is compiled down correctly
Jun 27, 2017
6cfea91
Updating layer.base props, draw props
Jun 29, 2017
11cd39c
Updated Babel to use object spread and brought layer props/prop types…
Jun 30, 2017
913c124
refactoring layers into a common base component, adding selecting + h…
Jun 30, 2017
f272518
Added property TileSize to Source.XYZ
Jul 20, 2017
a4a70b8
Added prop-types package
Aug 19, 2017
6ac628d
Fixed implict any return in animate function
Aug 19, 2017
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"presets": [
"es2015",
"react"
],
"plugins": [
"transform-es2015-destructuring",
"transform-object-rest-spread"
]
}
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,23 @@ The goal is to be able to write applications using OpenLayers maps in a declarat

To understand what each element does, read the [OpenLayers API documentation](http://openlayers.org/en/v3.11.2/apidoc/).

### Styles

Are declared using a JSON object, passing through the properties you'd like on the final object.

When creating an Icon, Circle or RegularShape, a `type` parameter must be present, with the value of `icon`, `circle`, or `regular-shape`.

Example:

```
image: {
type: 'circle',
radius: 10,
fill: { color: '#666666' },
stroke: { color: '#bada55', width: 1 }
}
```

It's early days! If you're familiar with react and/or openlayers and are interested in helping, please get in touch. Available on [github](https://github.com/richardhills/ol-react) and [npm](https://www.npmjs.com/package/ol-react).

I am especially interested in assistance with having each component be optionally [controlled](https://facebook.github.io/react/docs/forms.html#controlled-components). This would allow binding of the components with, say, Redux and for sophisticated state management outside of OpenLayers.
Loading