Do not tilt satellite image in GMapPlot

Hi all.

I’m trying to create a plot using GMapPlot with satellite imagery.

The problem that I have is that the Google Maps imagery is tilted.

The Google Maps website also does this but you can tilt it upright using a control button.

For the Google maps API that bokeh uses this seems to be controlled by the tilt option Maps JavaScript API  |  Google Developers

Am I correct in understanding that I can’t control this option through bokeh?

Thanks for your help

Hi,

I had no idea this option existed, so it's safe to say I did not put in any plumbing to expose it to the Python side. However, it seems that adding it to GMapOptions would be straightforward, and an idea self-contained task for a new contributor. Would be be interested in working up a PR to add this, with some guidance?

Thanks,

Bryan

···

On Jul 31, 2018, at 06:01, [email protected] wrote:

Hi all.

I'm trying to create a plot using GMapPlot with satellite imagery.

The problem that I have is that the Google Maps imagery is tilted.

The Google Maps website also does this but you can tilt it upright using a control button.
For the Google maps API that bokeh uses this seems to be controlled by the tilt option Maps JavaScript API  |  Google for Developers

Am I correct in understanding that I can't control this option through bokeh?

Thanks for your help

--
You received this message because you are subscribed to the Google Groups "Bokeh Discussion - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/024bf01a-00e0-4cec-9077-896913d03904%40continuum.io\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.

I’d be happy to contribute.

I have set up the development environment and tried adding a tilt option to GMapOptions in map_plots.py.

I’ve also tried adding tilt-related stuff in analogy to any scale_control code I found.

When using GMapOptions with tilt set to a non-default value, the plot does not render and I see an error in the console: “Uncaught Error: property GMapOptions.tilt wasn’t declared”

Here is what I did: GitHub - ndepal/bokeh at gmapoptions_tilt

Your help would be greatly appreciated.

Thanks,

Nick

···

On Wednesday, August 1, 2018 at 11:52:24 PM UTC+2, Bryan Van de ven wrote:

Hi,

I had no idea this option existed, so it’s safe to say I did not put in any plumbing to expose it to the Python side. However, it seems that adding it to GMapOptions would be straightforward, and an idea self-contained task for a new contributor. Would be be interested in working up a PR to add this, with some guidance?

Thanks,

Bryan

On Jul 31, 2018, at 06:01, [email protected] wrote:

Hi all.

I’m trying to create a plot using GMapPlot with satellite imagery.

The problem that I have is that the Google Maps imagery is tilted.

The Google Maps website also does this but you can tilt it upright using a control button.

For the Google maps API that bokeh uses this seems to be controlled by the tilt option https://developers.google.com/maps/documentation/javascript/reference/3/map#MapOptions.tilt

Am I correct in understanding that I can’t control this option through bokeh?

Thanks for your help


You received this message because you are subscribed to the Google Groups “Bokeh Discussion - Public” group.

To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].

To post to this group, send email to [email protected].

To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/024bf01a-00e0-4cec-9077-896913d03904%40continuum.io.

For more options, visit https://groups.google.com/a/continuum.io/d/optout.

Hi,

Great! Regarding your comments, have you gone through the Dev Guide "Getting Set Up" section to be able to Build and use BokehJS locally?

  Setting up a development environment — Bokeh 3.3.2 Documentation

The changes you made look about right at a glance, but the message you are seeing indicates that your browser is not using the updated BokehJS. I'd suggest going ahead and making a PR on the Bokeh repo and we can discuss any technical issues there.

Thanks,

Bryan

···

On Aug 2, 2018, at 02:56, Nicolas de Palézieux <[email protected]> wrote:

I'd be happy to contribute.

I have set up the development environment and tried adding a tilt option to GMapOptions in map_plots.py.
I've also tried adding tilt-related stuff in analogy to any scale_control code I found.

When using GMapOptions with tilt set to a non-default value, the plot does not render and I see an error in the console: "Uncaught Error: property GMapOptions.tilt wasn't declared"

Here is what I did: GitHub - ndepal/bokeh at gmapoptions_tilt

Your help would be greatly appreciated.

Thanks,
Nick

On Wednesday, August 1, 2018 at 11:52:24 PM UTC+2, Bryan Van de ven wrote:
Hi,

I had no idea this option existed, so it's safe to say I did not put in any plumbing to expose it to the Python side. However, it seems that adding it to GMapOptions would be straightforward, and an idea self-contained task for a new contributor. Would be be interested in working up a PR to add this, with some guidance?

Thanks,

Bryan

> On Jul 31, 2018, at 06:01, nic...@sunflower-labs.com wrote:
>
> Hi all.
>
> I'm trying to create a plot using GMapPlot with satellite imagery.
>
> The problem that I have is that the Google Maps imagery is tilted.
>
> The Google Maps website also does this but you can tilt it upright using a control button.
> For the Google maps API that bokeh uses this seems to be controlled by the tilt option Maps JavaScript API  |  Google for Developers
>
> Am I correct in understanding that I can't control this option through bokeh?
>
> Thanks for your help
>
> --
> You received this message because you are subscribed to the Google Groups "Bokeh Discussion - Public" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to bokeh+un...@continuum.io.
> To post to this group, send email to bo...@continuum.io.
> To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/024bf01a-00e0-4cec-9077-896913d03904%40continuum.io\.
> For more options, visit https://groups.google.com/a/continuum.io/d/optout\.

--
You received this message because you are subscribed to the Google Groups "Bokeh Discussion - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/7ec3c9b3-9e42-447b-9eb6-c6f88c587db8%40continuum.io\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.

Done: Add tilt option to GMapOptions by ndepal · Pull Request #8130 · bokeh/bokeh · GitHub

···

On Thursday, August 2, 2018 at 5:17:17 PM UTC+2, Bryan Van de ven wrote:

Hi,

Great! Regarding your comments, have you gone through the Dev Guide “Getting Set Up” section to be able to Build and use BokehJS locally?

    [https://bokeh.pydata.org/en/latest/docs/dev_guide/setup.html](https://bokeh.pydata.org/en/latest/docs/dev_guide/setup.html)

The changes you made look about right at a glance, but the message you are seeing indicates that your browser is not using the updated BokehJS. I’d suggest going ahead and making a PR on the Bokeh repo and we can discuss any technical issues there.

Thanks,

Bryan

On Aug 2, 2018, at 02:56, Nicolas de Palézieux [email protected] wrote:

I’d be happy to contribute.

I have set up the development environment and tried adding a tilt option to GMapOptions in map_plots.py.

I’ve also tried adding tilt-related stuff in analogy to any scale_control code I found.

When using GMapOptions with tilt set to a non-default value, the plot does not render and I see an error in the console: “Uncaught Error: property GMapOptions.tilt wasn’t declared”

Here is what I did: https://github.com/ndepal/bokeh/tree/gmapoptions_tilt

Your help would be greatly appreciated.

Thanks,

Nick

On Wednesday, August 1, 2018 at 11:52:24 PM UTC+2, Bryan Van de ven wrote:

Hi,

I had no idea this option existed, so it’s safe to say I did not put in any plumbing to expose it to the Python side. However, it seems that adding it to GMapOptions would be straightforward, and an idea self-contained task for a new contributor. Would be be interested in working up a PR to add this, with some guidance?

Thanks,

Bryan

On Jul 31, 2018, at 06:01, [email protected] wrote:

Hi all.

I’m trying to create a plot using GMapPlot with satellite imagery.

The problem that I have is that the Google Maps imagery is tilted.

The Google Maps website also does this but you can tilt it upright using a control button.
For the Google maps API that bokeh uses this seems to be controlled by the tilt option https://developers.google.com/maps/documentation/javascript/reference/3/map#MapOptions.tilt

Am I correct in understanding that I can’t control this option through bokeh?

Thanks for your help


You received this message because you are subscribed to the Google Groups “Bokeh Discussion - Public” group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/024bf01a-00e0-4cec-9077-896913d03904%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.


You received this message because you are subscribed to the Google Groups “Bokeh Discussion - Public” group.

To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].

To post to this group, send email to [email protected].

To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/7ec3c9b3-9e42-447b-9eb6-c6f88c587db8%40continuum.io.

For more options, visit https://groups.google.com/a/continuum.io/d/optout.