Skip to content

Commit

Permalink
conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
SymbolixAU committed Sep 15, 2019
2 parents 9e6889b + 2864a15 commit 2f281b8
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 19 deletions.
10 changes: 5 additions & 5 deletions R/map_layer_scatterplot.R
Original file line number Diff line number Diff line change
Expand Up @@ -198,13 +198,13 @@ add_scatterplot <- function(
tp <- l[["data_type"]]
l[["data_type"]] <- NULL

if(!is.null(brush_radius)) {
jsfunc <- "add_scatterplot_brush_geo"
map <- addDependency(map, mapdeckScatterplotBrushDependency())
} else {
# if(!is.null(brush_radius)) {
# jsfunc <- "add_scatterplot_brush_geo"
# map <- addDependency(map, mapdeckScatterplotBrushDependency())
# } else {
jsfunc <- "add_scatterplot_geo"
map <- addDependency(map, mapdeckScatterplotDependency())
}
# }

if ( tp == "sf" ) {
geometry_column <- c( "geometry" )
Expand Down
20 changes: 7 additions & 13 deletions inst/htmlwidgets/lib/deckgl.min.js

Large diffs are not rendered by default.

8 changes: 7 additions & 1 deletion inst/htmlwidgets/lib/scatterplot/scatterplot.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ function add_scatterplot_geo( map_id, map_type, scatter_data, layer_id, auto_hig
const b = new deck.BrushingExtension();
console.log( b );


// if ( brush_radius > 0 ) {
// // add brushing extension
// extensions.append( new BrushingExtension() );
Expand Down Expand Up @@ -47,10 +46,17 @@ function add_scatterplot_geo( map_id, map_type, scatter_data, layer_id, auto_hig
onClick: info => md_layer_click( map_id, "scatterplot", info ),
onHover: md_update_tooltip,
transitions: js_transition || {},
<<<<<<< HEAD
brushingEnabled: true,
brushingRadius: brush_radius,
mousePosition: [0, 0],
extensions: [ ]
=======
//brushingEnabled: true,
//brushingRadius: brush_radius,
//mousePosition: [0, 0],
extensions: extensions
>>>>>>> 2864a15abb152b17b6a74b884d281b8b84f3b344
});

if( map_type == "google_map") {
Expand Down

0 comments on commit 2f281b8

Please sign in to comment.