Giter Site home page Giter Site logo

rmaps's Introduction

rMaps

rMaps is an R package to create, customize and publish interactive maps from R. It supports multiple mapping libraries, including leaflet, datamaps and crosslet

Installation

You can install rMaps from github using the devtools package. You will also need to install the dev version of rCharts, that contains several experimental features, required by rMaps.

require(devtools)
install_github('ramnathv/rCharts@dev')
install_github('ramnathv/rMaps')

Quick Start

Here are some quick examples to get you started.

Example 1: CrossLet

CrossLet is an amazing mappling library that combines Leaflet and CrossFilter, allowing one to create awesome visualizations. rMaps wraps CrossLet and provides R users with a simple interface to access its features.

library(rMaps)
crosslet(
  x = "country", 
  y = c("web_index", "universal_access", "impact_empowerment", "freedom_openness"),
  data = web_index
)

Click to see Interactive Map

Example 2: DataMaps

DataMaps uses D3.js to create customizable SVG map visualizations in a single Javscript file. rMaps provides a simple wrapper around DataMaps and also extends its features using AngularJS.

ichoropleth(Crime ~ State, data = subset(violent_crime, Year == 2010))
ichoropleth(Crime ~ State, data = violent_crime, animate = "Year")
ichoropleth(Crime ~ State, data = violent_crime, animate = "Year", play = TRUE)

Example 3: Leaflet

map <- Leaflet$new()
map$setView(c(51.505, -0.09), zoom = 13)
map$tileLayer(provider = 'Stamen.Watercolor')
map$marker(
  c(51.5, -0.09),
  bindPopup = 'Hi. I am a popup'
)
map

Credits

rMaps would have not been possible without these amazing mapping libraries written in javascript

  1. Leaflet
  2. DataMaps
  3. CrossLet

License

rMaps is licensed under the MIT License. However, the JavaScript charting libraries that are included with this package are licensed under their own terms. All of them are free for non-commercial and commercial use. For more details on the licensing terms, you can consult the License.md file in each of the charting libraries.

rmaps's People

Contributors

ramnathv avatar rctatman avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

rmaps's Issues

Installation Problem

Hi,

Although I have no issues installing rMaps, I can't seem to install the the dev version of rCharts.

When I use install_github('ramnathv/rCharts@dev') , this is what I get:

Installing github repo rCharts/dev from ramnathv
Downloading rCharts.zip from https://github.com/ramnathv/rCharts/archive/dev.zip
Installing package from /var/folders/sq/d17nht2d26q8pd76602j9jmh0000gn/T//RtmpeljKXM/rCharts.zip
arguments 'minimized' and 'invisible' are for Windows only
Installing rCharts
'/Library/Frameworks/R.framework/Resources/bin/R' --vanilla CMD INSTALL  \
  '/private/var/folders/sq/d17nht2d26q8pd76602j9jmh0000gn/T/RtmpeljKXM/devtoolsf1532b10324/rCharts-dev'  \
  --library='/Library/Frameworks/R.framework/Versions/3.0/Resources/library' --install-tests 

* installing *source* package 'rCharts' ...
** R
** inst
** preparing package for lazy loading
Error in loadNamespace(name) : there is no package called 'base64enc'
Error : unable to load R code in package 'rCharts'
ERROR: lazy loading failed for package 'rCharts'
* removing '/Library/Frameworks/R.framework/Versions/3.0/Resources/library/rCharts'
* restoring previous '/Library/Frameworks/R.framework/Versions/3.0/Resources/library/rCharts'
Error: Command failed (1)

Any guidance would be greatly appreciated.

Mac OSX 10.9.1
RStudio 0.98.490

Custom topojson not displaying

Hi.

And thanks for yet another inspiring package! I'm itching to get to use it, but have run to a small problem with custom topojson -files.

I'm trying to display a map of administrative borders in Finland. Some examples from here and here got me started, but I've now run to a dead end. For some reason I can't get the topojson object to display. The github repo with original shapefiles, topojson files and R-script is here (Sorry for the mess, the file I'm trying to display is kunnat2.topojson).

The file displays properly on GitHub, as you can see here

The code I've tried is as follows:

library(rMaps)

maps = Datamaps$new()

maps$set(
geographyConfig = list(
dataUrl="https://raw.github.com/Koalha/tryermap/master/kunnat2.topojson"
),

   scope = "id",
setProjection = '#! function( element, options ) {
   var projection, path;
   projection = d3.geo.transverseMercator()
    .rotate([-27,-65,0])
    .scale(2000)
    .translate([element.offsetWidth / 2, element.offsetHeight / 2]);

   path = d3.geo.path().projection( projection );
   return {path: path, projection: projection};
  } !#'
)


maps

If I comment out the lines with dataUrl and scope, I get a perfectly displaying default world map with the options that I want. The full script returns a blank page however. This makes me suspect there's something wrong with my topojson file. The file was created using topojson from the command line (Windows 8):

topojson -o kunnat.json -s 1e-7 -q 1e5 Kunnatwgs.shp -p name=text,id=nationalCo --id-property name

At first I thought it might have something to do with the umlauts in the feature names, so I tried making a topojson file with only the numerical id:s, with the same result.

Any suggestions on where to go from here? My ultimate goal is to make an animated cloropleth of population changes in the municipalities of Finland.

Use local TopoJSON URL?

When using a custom TopoJSON file, is it possible to reference a relative path to the topoJSON file, rather than having to upload it to, e.g., github? In other words, I guess my question is, what is the root of the server used by rMaps?

Plotting route using rMaps and leaflet routing machine plugin

Hi all!

I am new to using rMaps and leaflet. I would like to plot the route between two locations. The leaflet routing machine plugin allows us to do this (https://github.com/perliedman/leaflet-routing-machine). I am not quite sure how to use the functions addAssets() and setTemplate() to be able to use this plugin.

I have downloaded the "leaflet-routing-machine.min.js" file and saved in the same directory as my R code. I started playing a bit with the example that was given for rMaps. Here is my code so far:

question

I appreciate any help!! Thank you!

crosslet example country names

The map has several omissions due, I believe, to a difference in naming of some countries in the web_index and the map.
For instance, if the web_index$country "United Kingdom Of Great Britain And Northern Ireland" is changed to "United Kingdom" then its area is appropriately coloured
Does the map use a standard naming, and can it easily be cross-referenced with the web_index data

Updating data with time change

Hi Ramnath,

Is it possible to update the tooltip to reflect changes in data over time? For example, crime rates changing from one year to the next in the animated choropleth example. Using the data. in the popupTemplate does not seem to update the data.

Thanks!
Tom

crosslet example not working

Hello,

I'm not sure if I'm doing something wrong or missing any pre-reqs, but the CrossLet example is not working for me.

> sessionInfo()
R version 3.0.2 (2013-09-25)
Platform: x86_64-apple-darwin10.8.0 (64-bit)

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] rMaps_0.1

loaded via a namespace (and not attached):
[1] grid_3.0.2         lattice_0.20-24    plyr_1.8           rCharts_0.4.2     
[5] RColorBrewer_1.0-5 rjson_0.2.13       RJSONIO_1.0-3      whisker_0.3-2     
[9] yaml_2.1.10       

Here's the screenshot from the Google Chrome console.

screen shot 2014-02-10 at 10 32 54 am

DataMaps and Leaflet examples are working well.

Cheers,
Leo

Labels and legend in ichoropleth

Hi all,
I am trying to get a custom map of Danish counties to show with rMaps but have run into two problems:

  • I cannot get a legend to appear on my graph
  • When a user drags the mouse over a region the name of the region pops up, but the actual value (and any other value from the dataset) is not shown.

Here's my code (apart from the input data) and the output can be seen at http://biostatistics.dk/pics/dkmap.html

library(rCharts)
library(rMaps)

options(RCHART_WIDTH = 600, RCHART_HEIGHT = 600)
options(rcharts.cdn = TRUE)


indata <- read.table("middelleveltid.txt", col.names=c("kommune", "life"), as.is=TRUE, na.string="..")
indata[is.na(indata)] <- 0
indata$extra <- 1:99

d1 <- ichoropleth(life ~ kommune, data = indata, ncut=8, map='states')
d1$set(
       geographyConfig = list( dataUrl = "/home/claus/sandbox/dk_kom.json" ),
       scope = 'states',
       legend = TRUE, 
       labels = TRUE,
       setProjection = '#! function( element, options ) {
           var projection, path;
           projection = d3.geo.mercator()
           .center([10, 56]).scale(element.offsetWidth*9)
           .translate([element.offsetWidth / 2, element.offsetHeight / 2]);

           path = d3.geo.path().projection( projection );
           return {path: path, projection: projection};
       } !#'
)

d1$print('chart4', include_assets = TRUE)

I thought that the legend and labels arguments to ichoropleth would add the legend and additional data information to the map, but there seems to be no difference in the output if I set them to TRUE or FALSE. Since they even have default values in ichoropleth I'm not even sure if I need to reset them again in the call to set or if the default values will still be inherited from the environment of d1.

Cheers,

Claus

Missing Data

Hi,
I'm using a data.frame that has missing values in the "Country" column.
The code I run, gives me the following error:

crosslet(data=ARCTP53_EsoMut, id_field="Country", fields=c("Age", "Mut_rate"))
Error in crosslet(data = ARCTP53_EsoMut, id_field = "Country", fields = c("Age", :
unused arguments (id_field = "Country", fields = c("Age", "Mut_rate"))

and if I do this, then I get the following message:

ichoropleth(Age~Country, data=ARCTP53_EsoMut)
Error in quantile.default(fml$left, seq(0, 1, 1/ncuts)) :
missing values and NaN's not allowed if 'na.rm' is FALSE

So I tried doing this, which gives me the same error message.

ichoropleth(Age~Country, data=ARCTP53_EsoMut, na.rm=TRUE)
Error in quantile.default(fml$left, seq(0, 1, 1/ncuts)) :
missing values and NaN's not allowed if 'na.rm' is FALSE

What am I missing?

Cheers,

O.

circle2 javascript problem

It seems like this code is not quite right:

if (spec.circle2){
      for (var c in spec.circle2){
        var circle = L.circle(c.center, c.radius, c.opts)
         .addTo(map);
      }
    }

I believe that that sort of for loop is not encouraged. When I run it in my browser, I get an error, and c is set to "0", not to the first element of the object. I'm pretty terrible at Javascript, so I'm not sure what the right solution is.

Error on install

Hi,

Thanks for your great work (again) at provinding us cool but pro vizualisations.
Installing rMaps i've encoutered those errors (devtools was loaded) :

install_github('ramnathv/rCharts@dev')
Installing github repo(s) ramnathv/rCharts@dev/master from hadley
Downloading ramnathv/[email protected] from https://github.com/hadley/ramnathv/rCharts@dev/archive/master.zip
Error: client error: (404) Not Found
install_github('ramnathv/rMaps')
Installing github repo(s) ramnathv/rMaps/master from hadley
Downloading ramnathv/rMaps.zip from https://github.com/hadley/ramnathv/rMaps/archive/master.zip
Error: client error: (404) Not Found

I'm on Win7 and R 3.0.1 (devtools 1.3)

Any clues ?

Install error for rCharts

Hi,
I get this error on both 2.1.5 and 3.0.2
package ‘rCharts’ is not available (for R version 3.0.2)

Is there a specific version on which this will work?

Thanks,
Harry

DataMaps example.R doesn't run

The example.R inside the inst/libraries/datamaps directory doesn't run. It throws a number of errors.

The biggest error that I can't figure out how to fix comes from line 7. The data1 variable doesn't exist anywhere.

DataMaps in shiny

Great work
I have the crudest of examples working in Shiny, but the legend appears to be absent
Looking forward to an example where the various methods are shown starting with

map <- Datamaps$new()

and then showing how to set scope, fill, data, legend etc.etc.

On a side note, I have a column in my data.frame called Asian so that

ichoropleth(Asian ~ abb, data = race) produces a map

if I have from ui.R an input$race of "Asian" how can I utilize that in the ichoropleth function?

Most examples in inst/libraries/leaflet/examples don't work

I'm trying to learn how to use this library by looking at the examples in inst/libraries/leaflet/examples but most of them don't display any map when they are run.

Example 1:
The first map1 (the one with the tileLayer) is blank, but the second one without the tileLayer displays the map.

Example 2:
Just displays a map of Vancouver/Portland with no overlay or anything. Maybe this is how it's supposed to be?

Example 3:
No map shows up, but the two markers do.

Example 4:
Both map4 and map5 display nothing

Those are the only ones I tried.

multiple geoJson layers in leaflet

Hello

I'm developing a shiny app using Leaflet in rCharts (I will move to rMaps soon, thus I'm posting here) and I have two geoJson layers I would like to plot simultaneously. One layer is a predicted line of where the animal traveled and the other is the observed points that were used in the track prediction.

I, apparently incorrectly, assumed I could just make multiple calls to $geoJson(). Do I need to create a single geoJSON file with both point and line features?

For a real world example, you can find the initial development repository here

thanks for any assistance you can provide
Josh

Leaflet circle not working

Hi,

I can't seem to get the circle function to work no matter what. I've tried various permutations of:
map3$circle(c(51.5, -0.09), 100) - from example8.R
but got no where. I also see a pull request on fixing Leaflet's circle but there doesn't seem to be any updates. Played around with Leaflet.R but got no where either.
I did see a work around using the bikeshare example you've posted, but it would be nice to just use map$circle since I would like to draw a spatial bubble chart with circle color and size as variables.

Also I'm wondering if it will be possible to have a bubble chart animated across time to visualize growth/decline at different locations. Similar to ichoropleth's animation but with change in circle size.

Thanks!

Crosslet question

Is it possible yet to reproduce a map such as this one in rMaps (using just R, without adding JavaScript)?

http://sztanko.github.io/crosslet/examples/us/

I'm not sure how one would do in rMaps data inputs such as

geo: {
      url: "data/us_counties.topo.json",
      name_field: "NAME",
      id_field: "GEOID",
      topo_object: "us_counties"
    }
  },
  data: {
    version: "1.0",
    id_field: "fips"
  },
  dimensions: {
    total: {
      title: "Population",
      data: {
        dataSet: "data/us_elect_county.csv",
        field: "total"
      },

Using hover events as Shiny inputs

The title pretty much says it all, is there a way to communicate hover events back to Shiny? In particular I'd like to subset a dataset when a particular state is hovered over.

Use several GeometryCollections

Hi,

suppose I have a custom TopoJSON with several GeometryCollections objects in it (something similar to this D3 example : http://bl.ocks.org/mbostock/4090848). Is it possible, while using only one layer to make a choropleth map, to plot other layers, with different styles? More generally, is it possible to use custom CSS bits inside rMaps with Datamaps?

Bubbles are rendered underneath polygons when using custom topojson data

This occurs when serving the datamap through shiny. It does not occur if you simply save the datamap to html and serve it locally using something like a python simplehttp server. This problem also is limited to cases when you specify custom data through the dataUrl: geographyConfig arguments.

The hacky solution I found was to change the datamap html template to include the following:

    var map{{chartId}} = new Datamap(chartParams);
    map{{chartId}}.addLayer('datamaps-subunits',null, true)

in place of:

    var map{{chartId}} = new Datamap(chartParams);

Let me know if you want me to put together a simple example to reproduce the problem.

Custom ichoropleth not displaying on Mac but on linux

Hi all,

I need a bit of help trying to figure out why I get the correct output when running on linux but almost no output when running the same script on Mac.

When I run this code on my Mac in RStudio I only get the legend but no map.

library(rMaps)
options(rcharts.cdn = TRUE)
options(RCHART_WIDTH = 700, RCHART_HEIGHT = 700)

indata <- read.table("middelleveltid.txt", col.names=c("kommune", "life"), as.is=TRUE, na.string="..")
indata[is.na(indata)] <- 0
indata$extra <- 1:99
indata$year <- rep(2010, nrow(indata))
indata$KOMNAVN <- indata$kommune
indata$name <- indata$kommune

# d1 <- ichoropleth(life ~ name, ncuts=5, data = indata, map='states', animate='year')

d1 <- ichoropleth(life ~ name, ncuts=5, data = indata, map='states')
d1$set(
  geographyConfig = list( dataUrl = "/home/claus/sandbox/dk_kom.json" ),
  scope = 'states',
  setProjection = '#! function( element, options ) {
           var projection, path;
           projection = d3.geo.mercator()
           .center([10, 56]).scale(element.offsetWidth*9)
           .translate([element.offsetWidth / 2, element.offsetHeight / 2]);
           path = d3.geo.path().projection( projection );
           return {path: path, projection: projection};
       } !#'
)
d1

If I instead save the plot instead of just viewing by

  • adding d1$print('chart4', include_assets = TRUE) at the bottom of the file, and
  • adding {r results = 'asis', comment = NA, echo=FALSE, fig.width=10, fig.height=10} at the top
  • running knit2html("filename")on the file I get an html file that shows up blank in Safari/Chrome/Firefox (still on Mac) but appears to contain all the data. Not even a legend.

If I run the same code on my Ubuntu machine it just appears to work. Any clues?

Claus

Coordinates taken from Google Maps/Mapquest not lining up in Leaflet via rMaps

Initially I was plotting coordinates taken from Google Maps with Leaflet "markers," but I realized the coordinates are not lining up, sometimes drastically so. To be more consistent, I then took coordinates from MapQuest and plotted them on top of a MapQuest tileset in rMaps Leaflet. No dice.

To bypass this, I hoped to find coordinates WITHIN Leaflet, which led me to desire the ability to display lat/long coordinates at any clicked location. An example in Leaflet API is linked below. This would be very cool. Is there a way to translate this to rMaps?

http://gis.stackexchange.com/questions/39055/how-to-get-the-lat-long-of-a-clicked-location-using-leaflet-api

Also, is my overall coordinate matching problem uncommon, and is it fixable in and of itself? Thanks!

Browser not displaying custom topojson correctly

Thanks to @ekstroem's help here I was able to get my custom topojson to display with this code:

library(rMaps)

maps = Datamaps$new()

maps$set(
geographyConfig = list(
dataUrl="https://raw.github.com/Koalha/tryermap/master/kunnat2.topojson"
),

   scope = "Kunnatwgs",
setProjection = '#! function( element, options ) {
   var projection, path;
   projection = d3.geo.transverseMercator()
    .rotate([-27,-65,0])
    .scale(2000)
    .translate([element.offsetWidth / 2, element.offsetHeight / 2]);

   path = d3.geo.path().projection( projection );
   return {path: path, projection: projection};
  } !#'
)


maps

However, the map only displays in IE (not Chrome) on my computer, and has weird refreshing issues as shown by the image.

image

Could some one else also try this on their computer? Is there a way to easily fix this? What might be the cause?

Installation issues for RMaps

Hello! When I try to install RMaps through devtools I get an error suggesting that the webpages the installer is attempting to reference are inaccessible. Putting the pages into the browser on their own yields 404 errors. Here is my code and the errors:

require(devtools)
install_github('ramnathv/rCharts@dev')

Installing github repo(s) ramnathv/rCharts@dev/master from hadley
Installing ramnathv/[email protected] from https://github.com/hadley/ramnathv/rCharts@dev/archive/master.zip
Error: client error: (404) Not Found

install_github('ramnathv/rMaps')

Installing github repo(s) ramnathv/rMaps/master from hadley
Installing ramnathv/rMaps.zip from https://github.com/hadley/ramnathv/rMaps/archive/master.zip
Error: client error: (404) Not Found

Thoughts? Thanks!

(I am running R 2.15.3)

some weaknesses in the ichoropleth function

The ichoropleth function is beautiful, but as I worked on recreating this USDA map in this Gist I found a couple issues. Some might be unique to the particular dataset, but handling these might make the function more robust:

  • the quantile function in cut can result in duplicate values causing a fail with error. The simple solution is just wrap in a unique, but I want to make sure this does not cause other problems. For this case, the unique solution worked fine. I tried to check lattice use but r-forge seems down currently.
  • also, in the cut, I got lots of #NA, which I handled with include.lowest = TRUE
  • the label legends could be improved with proper formatting as Ari Lamstein mentioned in this tweet. He handles in the @trulia chorolplethr package as shown in this code.
  • ichoropleth sends data and newData which with big datasets results in significant duplication and much larger file size. Should this be handled on the javascript side. I manually deleted the data and then in javascript set data to the first key in newData. I wonder if data should not be included in params or opts and be separate like most of the rCharts libraries. Then in JS transform the data as needed for the config in Datamaps.
  • probably not something we need to include in ichoropleth, but I feel like I should not, that Datamaps updateChoropleth requires non-numeric id, since the CSS selector cannot be numeric. I used regex to append "c" (could be anything) to the id in topojson, and then in R did the same for the data so they match.
  • +1 to #29 ; multiple ways to handle but would be nice to decide on one since it seems custom maps will be used often based on examples so far. For this I just set up a custom config.yml to point to datamaps.none, but this is not a good universal solution. I like the suggested method in the referenced issue, and I guess it will fall within the Datamaps ref class.

Thanks again @ramnathv for this. Map making is so easy now it is unbelievable.

install issue

Hello,
I'm having some issues installing the package manually.

First, using the zip file at http://ramnathv.github.io/rCharts/ I get the following:

Warning in install.packages :
  cannot open compressed file 'ramnathv-rCharts-2c368c8/DESCRIPTION', probable reason 'No such file or directory'
Error in install.packages : cannot open the connection

Second, the master zip file at https://github.com/ramnathv/rCharts does not cause any warnings but require(rCharts) brings this:

Loading required package: rCharts
Warning message:
In library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE,  :
  there is no package called ‘rCharts’

I really look forward to using the great package, so any help would be really appreciated.

Thanks in advance.

OS: Windows 7
R: 3.0.2 (Rstudio)

add objects with functions to geoJSON

I've successfully figured out how to plot points and stuff with the geoJSON functionality and leaflet, but I don't see how to add things like functions to the objects. I tried to create something like this (from the Leaflet docs):

{
    onEachFeature: function (feature, layer) {
        layer.bindPopup(feature.properties.description);
    }
}

but instead got this:

 var geojsonLayer = L.geoJson(spec.features 
        , 
         [
 "{ onEachFeature: function (feature, layer) {
        layer.bindPopup(feature.properties.description);
    }
}" 
]
      ).addTo(map)

Obviously that doesn't work. If that's not yet supported, can you specify how you'd like this to work, and I'll see if I can figure out how to implement it and create a pull request...

animated maps in leaflet?

I have briefly looked through some of the source, and my naive intuition tells me that it should be possible to use a similar method to what you used for animating DataMaps to also animate a Leaflet map. The general idea I'm envisioning is an animation tracking events over time, such that the events show up on the map as pins when they occur. This seems like it would be possible using a similar approach to what you used for DataMaps, but not having looked at the two libraries in much detail, I may be being wildly optimistic. Do you think a similar approach should be doable?

Publish Datamaps

Maybe I'm missing something very obvious, but once I've succesfully drawn a Datamaps map, how can I publish it online (e.g. on my own server)?

Leaflet vector layers (Polygon, Rectangle, ...)

Hi, for a talk I'm giving very soon, it'd be really great to have a way to overlay polygons and tile-type heat maps on Leaflet maps. It looks like Leaflet supports Polygon and Rectangle layers, which could meet my needs. (GeoJSON seems like another viable option, but I've had trouble getting GeoJSON polygons to work, and a higher-level interface would be preferable.) How difficult will it be to add rMaps wrappers around the appropriate Leaflet functions?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.