R: Highlight the map portion where zoomed or viewing.

0 votes
How to highlight the map portion where zoomed or viewing? My map consists of a lot of markers with popups and labels. I want to highlight the region where the map is currently zoomed.
Oct 14 in Data Analytics by ch
• 3,290 points
17 views

1 answer to this question.

0 votes

@ch,

Use the minimap to show a side map showing the area where the map is zoomed as per your requirements.

Use addMiniMap() function like below.

leaflet() %>% setView(lng=77.669907, lat=13.0118285, zoom = 10) %>% addTiles() %>% addMarkers(lng=77.669907, 
  lat=13.0118285) %>% addMiniMap()
answered Oct 14 by Cherukuri
• 31,840 points

Related Questions In Data Analytics

0 votes
1 answer
0 votes
0 answers

How to use the where clause in R programming?

I'm trying to implement a where clause ...READ MORE

Dec 24, 2018 in Data Analytics by Sophie may
• 9,870 points
505 views
0 votes
1 answer

Export the plot to a pdf or png - R

You need to close the device to ...READ MORE

answered Jul 15 in Data Analytics by anonymous
40 views
0 votes
1 answer

Plotting multiple graphs on the same page in R

If you want to plot 4 graphs ...READ MORE

answered Mar 27, 2018 in Data Analytics by Bharani
• 4,550 points
61 views
0 votes
1 answer

How to add external markers in maps?

Use external markers by creating icons using ...READ MORE

answered Oct 14 in Data Analytics by Cherukuri
• 31,840 points
20 views
0 votes
0 answers

Add multiple maps over each other

How to multiple layers of maps over ...READ MORE

Sep 19 in Data Analytics by anonymous
• 31,840 points
15 views
0 votes
1 answer

Reduce markers overlapping in maps

Hey, You can either reduce the font size ...READ MORE

answered Sep 23 in Data Analytics by anonymous
• 3,290 points
28 views
0 votes
1 answer

How to create and call groups in maps?

Groups are used to group a set ...READ MORE

answered Oct 14 in Data Analytics by Cherukuri
• 31,840 points
14 views
0 votes
1 answer

How to add legend or any text on the map in leaflet?

See below example, > p = colorFactor(palette = ...READ MORE

answered Oct 28 in Data Analytics by anonymous
• 31,840 points
35 views
0 votes
2 answers

Splitting the data into training and testing sets - R

Hi, Try like this. train = sample(x = ...READ MORE

answered Aug 20 in Data Analytics by anonymous
• 31,840 points
1,236 views