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

Alexandre Bergel alexandre.bergel at me.com
Sat Nov 16 05:52:02 EST 2013


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 <sven at stfx.eu> a écrit :
> 
> Very nice, Alex, I guess you are using shape files then ?
> 
> Sven
> 
>> On 15 Nov 2013, at 20:56, Alexandre Bergel <alexandre.bergel at me.com> 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
>> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
> 
> 




More information about the Pharo-dev mailing list