Pascal Bugnion

Results 46 issues of Pascal Bugnion

Thanks to a recent update of Google Maps, the controls for zoom and map type now look enormous.

The drawing layer can currently draw lines and polygons, but it would be useful to also draw circles (cf [this tweet](https://twitter.com/AlanZucconi/status/930480664234913792)). The GoogleMaps JavaScript API supports circles (see [docs](https://developers.google.com/maps/documentation/javascript/3.exp/reference#Circle)). To...

enhancement
good first issue

At the moment, to modify the style of every GeoJSON feature, you have to iterate over all of them: ```py for feature in layer.features: feature.stroke_weight = 4.0 ``` It'd be...

It would be good to be able to catch zoom events to resize specific features -- see, for instance issue #228 .

At the moment, the drawing layer only works in the notebook. We should see if it's possible to move more of the interaction client-side, so that the map still works...

The following should work: ```py import gmaps import gmaps.datasets gmaps.configure(api_key="AI...") df = gmaps.datasets.load_dataset_as_df('starbucks_kfc_uk').sample(200) fig = gmaps.figure() marker_layer = gmaps.marker_layer( df[['latitude', 'longitude']], info_box_content=df['chain_name'] ) fig.add_layer(marker_layer) fig ``` At the moment, we...

enhancement
good first issue

Gmaps bundles useful GeoJSON geometries to save users the work of having to find them from the Internet. There are currently a [handful](https://github.com/pbugnion/gmaps/blob/master/gmaps/geojson_geometries/geojson_geometries.py) of geometries included. Adding new geometries is...

good first issue

[This example](https://developers.google.com/maps/documentation/javascript/adding-a-legend) describes how to add a legend to a map. Can we add this to the marker layer? It would be good to do a proof-of-concept first.

enhancement

At the moment, exporting maps that contain a directions layer to PNG is not supported (because html2canvas 0.4.1 doesn't support it). See [this question](https://stackoverflow.com/questions/37457945/html2canvas-screenshot-of-a-div-element-containing-google-drive-directions-map) on StackOverflow for reference.