Map Builder

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

Map Builder

Alexandre Bergel-7
Hi!

Some of you have asked about visualizing locations on a map. It is fairly easy using the map builder in roassal 2. Here is a small example:

=-=-=-=-=-=-=-=-=-=-=-=
| map |
map := RTMapBuilder new.

map countries: #('UnitedStates' 'Canada' 'Mexico').

map cities addCityNamed: 'New York City'  location: 40.7127 @ -74.0059.
map cities addCityNamed: 'Ottawa'  location: 45.420833 @ -75.69.
map cities addCityNamed: 'Mexico City'  location: 19.433333 @ -99.133333.

map cities: #('New York City' 'Ottawa' 'Mexico City').

map render.
map view
-=-=-=-=-=-=-=-=-=-=-=-=

You will have something like: 



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




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