Anh Mai
da55fffe07
remove d3-selection and extra example map ( #189 )
...
* remove d3-selection
* remove extra example map
2017-03-24 14:37:22 -07:00
Anh Mai
d28d5cb432
Fix flow build process
...
Fix unit tests. README updates. Add browser tests
Adapt exhibits for react-map-gl
2017-03-24 14:37:00 -07:00
Ib Green
72a0324cb8
Component split ( #170 )
...
* StaticMap and InteractiveMap separates event handling concerns from map display concerns.
2017-03-07 14:57:37 -08:00
Ib Green
05cc1f163d
ES6 tests now run untranspiled in Node.js ( #172 )
...
* ES6 tests now run directly in Node.js.
* Create `examples` folder to contain multiple standalone examples.
* Fix precommit hook
2017-03-07 14:56:26 -08:00
Ib Green
fa4ae3ffbb
Buble+webpack2 ( #169 )
...
* Compile with buble and bundle with webpack
* Reduce number of dependencies
* Support for tree-shaking
* Standalone, easy-to-understand example with small package.json
* Tests now work under Node.js even when loading mapbox-gl.
* Fix travis config
2017-03-07 14:55:57 -08:00
Anh Mai
ea36250cae
fix typo in pitch calculation ( #185 )
2017-01-24 08:04:41 -08:00
voby
ec8192b454
Typo fix in draggable-points overlay ( #178 )
2017-01-13 13:44:55 -08:00
Anh Mai
8dc905cc6a
update to mapbox-gl 0.29.0; add maxZoom as a prop ( #171 )
...
* update to mapbox-gl 0.29.0; add maxZoom as a prop
* revert to array convention for startDragLntLat and convert to object where needed
2017-01-08 15:15:30 -08:00
Balthazar Gronon
ecdc2bf115
Add onLoad event handler
2017-01-06 18:46:14 -08:00
Thomas Forrer
1625df150d
use 'changedTouches' for 'touchend'/'touchcancel' events ( #164 )
...
closes #139
2016-12-29 16:31:40 -08:00
Ib Green
190dc3d575
Remove mapbox Point dependency from map-interactions. ( #161 )
...
* Remove mapbox Point dependency from map-interactions. Update eslint settings. Use static for propTypes.
* Update examples
* Address review feedback. Update propTypes in example layers.
2016-12-20 14:07:29 -08:00
Jonathan Warning
b4e46055c6
Ensure fitBounds doesn't return NaN zoom value ( #159 )
2016-12-09 15:24:28 -06:00
Balthazar Gronon
1996d1bccb
Propagate wheel event
...
Closes #85 .
2016-12-06 15:16:57 -08:00
Anh Mai
9e8eff21a1
Merge pull request #140 from forrert/onclick
...
Adds `onClick` prop handler
2016-12-06 14:45:14 -08:00
Jonathan Warning
37fca99708
Add project method to HTML Overlay ( #104 )
2016-12-05 13:20:29 -08:00
Yang Wang
28d0b33b67
use command | shift | ctrl | alt to enable perspective mode
2016-10-28 17:21:58 -07:00
Thomas Forrer
e9bcc7a0d5
add onClick prop handler
...
adds a property `onClick` that allows adding a handler
to be called with the coordinates when the map is clicked.
refs #49
2016-10-21 23:07:16 -07:00
Xiaoji Chen
06e31235fa
Fix bug where onClickFeatures is fired after dragging ( #133 )
...
* Fix bug where onClickFeatures is fired after panning and rotating
* Rename dragged to didDrag
2016-10-09 10:35:56 -07:00
Xiaoji Chen
c5dd69982c
Provide a way to control per-layer interactivity ( #131 )
...
* queryRenderedFeatures only check layers with style prop interactive: true
* query all layers if no interactive layer is found
* update JSDoc for onHoverFeatures and onClickFeatures
2016-09-27 16:11:09 -07:00
tsemerad
59944409ef
fixed GeoJSONSource updating, broken when upgrading from mapbox-gl v0.21.0 to v0.22.0 ( #128 )
2016-09-21 18:05:34 -04:00
Ib Green
b509d59192
Merge pull request #124 from alseageo/efficient-geojson-update
...
update data if no other GeoJSONSource options changed - prevents flicker
2016-09-21 14:50:56 -04:00
Xiaoji Chen
c5722a140c
Handle unsupported browsers ( #125 )
...
Exposes mapbox-gl's supported() API; prevent errors when mapbox is unsupported.
2016-09-20 16:04:18 -07:00
Xiaoji Chen
555db37b6b
Change cursor to pointer when hovering over interactive features ( #126 )
...
* change cursor to pointer over interactive features
* bump bower version and fix grab cursor in blink browsers
2016-09-20 11:58:16 -07:00
Tanner Semerad
f046279210
update data if no other GeoJSONSource options changed - prevents flicker
2016-09-15 14:37:46 -07:00
Ib Green
96c35dbd65
Merge pull request #101 from cammanderson/master
...
Adds in touch support
2016-09-09 15:21:06 -07:00
Ib Green
ad3b12126b
Remove alphaify
2016-08-23 14:20:42 -07:00
Ib Green
52fefd7f9a
Add fitBounds test
2016-08-22 16:48:52 -07:00
Ib Green
480262ac08
Introduce d3 v4 micro modules. Move utilities to utils directory
2016-08-22 13:50:52 -07:00
Anh Mai
44ac4bb255
add prop for click radius to allow overriding default radius of 15
2016-08-09 22:50:40 -07:00
Ib Green
5acaa6ac5b
Add fitBounds
2016-07-28 15:35:07 -07:00
Cam Manderson
1f658d938e
Pushes touch events back to map.react.js. Maps those touch events to mouse behaviour
2016-07-23 15:12:32 +10:00
Cam Manderson
d2bcbe4b72
Adds in touch events to fire corresponding mouse events
2016-07-23 14:57:05 +10:00
Ib Green
64d11620b0
Add testron based testing
...
Add autobind-decorator to dependencies
Remove projectionMatrix from map state
Use tape-catch instead of tape for tests.
2016-06-22 07:35:43 -07:00
Ib Green
8ae5e20c78
ES6/JSX port.
...
Examples running under ES6
Remove dist folder from git repo
Support for React 14 in tests. Add envify to tests.
Add props for bearing and pitch
Ensure map.resize() happens after render()
Added resize handling to examples
Add CHANGELOG
Ensure onChangeViewport is called on resize and with fresh projectionMatrix in onMouseRotate
Specify a version range for react.
Fix example overlay imports and remove map style batching per mapbox-gl 0.18
Updating mabox-gl to 0.20
Use tape-catch
2016-06-21 14:35:13 -07:00
Victor Powell
767658662f
Upgrade to mapbox-18
2016-05-01 20:43:04 -07:00
Victor Powell
0587d6760c
Use a size of 15 instead of 5 for onClickFeatures callback.
2016-03-31 17:04:31 -07:00
Victor Powell
c9a6dd0a11
Fix onClickFeatures to use the new map.queryRenderedFeatures.
2016-03-31 16:59:52 -07:00
Anh Mai
b5fe3cf457
actually defaults to true
2016-03-14 11:29:30 -07:00
Anh Mai
86e041fa99
expose a prop to allow onHoverFeatures callback to be called when there are no features under x,y
2016-03-14 11:18:13 -07:00
Chris Chua
a052accafc
Free up resource on unmount
2016-03-01 19:46:31 -08:00
Victor
a3e12e81f3
Merge pull request #48 from AndyMoreland/fix-batch-style-changes
...
Fix bug in batched source/layer updates
2016-02-29 10:48:48 -08:00
Kuvakin Sergey
1219f20227
updated deps
2016-02-20 00:53:49 +03:00
Andy Moreland
a1e28ad509
Fix bug in batched source/layer updates
...
_setDiffStyle called map.batch but didn't use the "style_batch" argument
that it receives in order to batch updates to layers and sources. This
caused one "_broadcastLayers" call in mapbox-gl per changed source or layer,
which is very slow in some cases.
2016-02-04 15:27:22 -08:00
Victor Powell
e63b9552b7
Add an option to opt out of style diffing. Add a style diffing example.
2016-01-26 14:08:18 -08:00
Victor Powell
3616b42e6b
Fix a bug preventing DraggablePointsOverlay from properly positioning itself
...
when the Map is not interactive.
2016-01-05 21:54:33 -08:00
Victor Powell
9fd6416f8d
Upgrade uber-standard and use typical .editorconfig file.
2016-01-04 16:18:53 -08:00
Victor Powell
7ebb48e37e
Expose the preserveDrawingBuffer configuration passed to the created mapbox
...
as a MapGL prop.
2015-12-17 11:18:55 -08:00
Anh Mai
b15fce08b1
Merge pull request #39 from uber/remove-unused-prop
...
remove unused overlays prop
2015-12-17 11:04:45 -08:00
Victor Powell
3f465bcd6c
remove unused overlays prop
2015-12-17 11:03:47 -08:00
Rye Terrell
118326c48a
remove debounce dependency
2015-12-13 16:08:31 -06:00