Thanks to the support of the GIS team, and Nicolas Guilhaudin in particular, it is quite easy to integrate a map from maps.cern.ch (the public site of CERN GIS) in your Drupal content.
- Setup your site to allow iframe fields (see my other post: Integrate iframe in your content types)
- In the iframe field URL use http://maps.cern.ch.
- You can select which widget to use. Here are the possible values:
- basemapToggle, compass, directions, home, locate, search, viewSwitch, zoom
- You have multiple parameters available
- showMenu=false: hide the menu
- center (number, number): X and Y in Swiss projected coordinate system (WKID: 2056)
- xmin, xmax, ymin, ymax (number): extent of the map in Swiss projected coordinate system (WKID: 2056)
- scale (number): scale of the map
- rotation (number): rotation of the map
- basemap (plan | satellite): basemap of the map
- mode (2D | 3D): mode of the view
- n ([string]): zoom on a specific CERN building or POI (NB: quotes around string should be included)
- showAccessibility: boolean (default: false): display accessibility layers at startup
- showBigBang: boolean (default: false): display Passport to the Big Bang layers at startup
- showHealthAndSafety: boolean (default: false): display healthh and safety layers at startup
- showTransport: boolean (default: false): display transport layers at startup
Examples:
- Minimal map centered on the Globe of Science and Innovation:
maps.web.cern.ch?center=2493322.38,1121210.33&scale=2000&basemap=satellite&widgets=compass,search,zoom&showMenu=false - Minimal map centered on the Globe of Science and Innovation using building number:
maps.web.cern.ch?widgets=compass,search,zoom&showMenu=false&n=[‘80’] - Minimal map with display of Passport to the Big Bang paths:
maps.web.cern.ch?widgets=compass,search,zoom&showMenu=false&showBigBang=true - Minimal CERN 3D Map:
maps.web.cern.ch?widgets=compass,search,zoom&showMenu=false&basemap=satellite&mode=3D
For any extra help on building these URLs, please send mail to Sig.Support@cern.ch to open a ticket.