New builder for Roassal: building geographical maps

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

New builder for Roassal: building geographical maps

abergel
Hi!

During our pair coding session on Friday, we worked on a new builder for Roassal.

Here is short example:


| builder |
builder := ROFranceMapBuilder new.
builder shape circle size: 15; color: Color red; withLabel.
builder showCities: #('Paris' 'Lyon' 'Marseille').

builder shape circle size: 25; color: Color blue; withLabel.
builder show: 'Nice'.

builder open

It should produce:


There is no reference to external files. It runs out of the box.

In case you got a sudden need to press a like button or do some retweet, here a bit of material:

https://www.facebook.com/media/set/?set=a.543459092407359.1073741830.340543479365589&type=1
https://twitter.com/objectprofile/status/401433558684008448

On our facebook account we have many more screenshots.

Cheers,
Alexandre
-- 
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.




_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: [Pharo-dev] New builder for Roassal: building geographical maps

Andre Hora

Amazing :)

On Nov 15, 2013 8:57 PM, "Alexandre Bergel" <[hidden email]> wrote:
Hi!

During our pair coding session on Friday, we worked on a new builder for Roassal.

Here is short example:


| builder |
builder := ROFranceMapBuilder new.
builder shape circle size: 15; color: Color red; withLabel.
builder showCities: #('Paris' 'Lyon' 'Marseille').

builder shape circle size: 25; color: Color blue; withLabel.
builder show: 'Nice'.

builder open

It should produce:


There is no reference to external files. It runs out of the box.

In case you got a sudden need to press a like button or do some retweet, here a bit of material:

https://www.facebook.com/media/set/?set=a.543459092407359.1073741830.340543479365589&type=1

On our facebook account we have many more screenshots.

Cheers,
Alexandre
-- 
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.




_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: [Pharo-dev] New builder for Roassal: building geographical maps

abergel
In reply to this post by abergel
It is currently ad-hoc since we use a bitmap for the map, and locate cities with distances in pixels.

 We have found description in SVG and found a couple of formulas to map longitude and latitude into pixels. So we will have something vectorial very soon.

If someone has some ideas, data, examples the we will be very happy to take them as challenges!

Alexandre


> Le 15-11-2013 à 18:39, Sven Van Caekenberghe <[hidden email]> a écrit :
>
> Very nice, Alex, I guess you are using shape files then ?
>
> Sven
>
>> On 15 Nov 2013, at 20:56, Alexandre Bergel <[hidden email]> wrote:
>>
>> Hi!
>>
>> During our pair coding session on Friday, we worked on a new builder for Roassal.
>>
>> Here is short example:
>>
>>
>>    | builder |
>>    builder := ROFranceMapBuilder new.
>>    builder shape circle size: 15; color: Color red; withLabel.
>>    builder showCities: #('Paris' 'Lyon' 'Marseille').
>>
>>    builder shape circle size: 25; color: Color blue; withLabel.
>>    builder show: 'Nice'.
>>
>>    builder open
>>
>> It should produce:
>> <Screen Shot 2013-11-15 at 4.53.30 PM.png>
>>
>>
>> There is no reference to external files. It runs out of the box.
>>
>> In case you got a sudden need to press a like button or do some retweet, here a bit of material:
>>
>> https://www.facebook.com/media/set/?set=a.543459092407359.1073741830.340543479365589&type=1
>> https://twitter.com/objectprofile/status/401433558684008448
>>
>> On our facebook account we have many more screenshots.
>>
>> Cheers,
>> Alexandre
>> --
>> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
>> Alexandre Bergel  http://www.bergel.eu
>> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>
>

_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev