Earlier this year I worked a bit with our logo to propose a small change to it – first change to the logo in 5 years. The team approved, but for various reasons the new logo did not make it to 17.10. Now we’re ready to push it out to the world.
For the last five years, we’ve served two versions of the logo – one for small rendered sizes and one for larger sizes – because the whiskers needed to look good in all sizes. This has been slightly confusing for people who want to use the Xubuntu logo outside the material curated by the Xubuntu team. To be honest, the team itself has been a bit confused at times too and sometimes special arrangements have been made.
The new logo solves this problem – there is now one version for all sizes. While fixing this small annoyance (by essentially making the weight of the whiskers something in between the old versions), I improved their shape and distance to the head a little bit. Finally, I cleaned up some path nodes to make the head vector slightly less complex – without changing the looks of it too much.
I will be working to get the logo spread out everywhere as soon as possible starting from now. If you are using the Xubuntu logo on your website (or any place really), take action now to update it.
The new logo is already available from the Brand Resources page on the Xubuntu website.
As announced in the Google Geo Developers Blog, pan controls are removed from the Google Javascript API since v3.24, which was released in February 2016.
The new panning controls are good and work especially well with mobile devices, but if you for any reason need the old panning control back, you can do it by creating your own custom control. This is relatively easy, but since it might not be trivial enough for everybody, here’s how I solved the issue.
JavaScript
In the script after initializing your map, add the following to create a new control wrapper:
var panControl = document.createElement( 'div' );
panControl.className = 'panControls';
Next, we’ll want to create the actual buttons for panning and add them to the control wrapper. Note: The code below refers to pan_arrow.png, which you need to provide – either download the one created by me or create your own instead. Alternatively, you can embed it in the script itself with base64; see the gist for an example.
After that, we’ll add listeners for the buttons to activate panning on clicking. Change the panAmount variable (in pixels) to pan more or less per click.
Finally, we’ll push the pan control wrapper to the left bottom of the map. Change LEFT_BOTTOM to something else if you want to change the location of the panning control.
The JavaScript itself renders a not so good looking and mostly useless block of arrows all facing in the same direction even, so we’ll need to add some CSS to go with it. Add the following CSS to your page with your map.
Now you have a nicer looking control that matches the style of the default controls!
Summary
The panning controls you can create with the code above are very simple but serve my purpose very well. The above code can be found in a gist.
There is at least one particular feature missing from these controls: constant panning when the buttons are held down for a longer time. The controls also do not include hover tooltips, let alone talking about localized ones.
Ultimately, you might want something completely different than I do, but I hope this can help you build the panning controls you need for your situation. Enjoy!