Date post: | 06-Jul-2018 |
Category: |
Documents |
Upload: | gustavo-luis-condoy-pogo |
View: | 216 times |
Download: | 0 times |
of 44
8/17/2019 Ol Leaflet Dcvie1 150327053502 Conversion Gate01
1/44
OpenLayers vs.
Leaflet
DrupalCamp Vienna, Nov. 2013
8/17/2019 Ol Leaflet Dcvie1 150327053502 Conversion Gate01
2/44
The who is who!nt"e Lor#h
@ifrik
Site builder Documentation
OpenLayers
$osef Da%erni&
@dasjo
Allrounder
Community
Leaflet
8/17/2019 Ol Leaflet Dcvie1 150327053502 Conversion Gate01
3/44
'ho are you● … and why we do this Session
8/17/2019 Ol Leaflet Dcvie1 150327053502 Conversion Gate01
4/44
'hat (oes the OpenLayers mo(ule1 !uildin" #ueries
$ usin" %iews
& Confi"urin" maps
$ Openlayers settin"s
' (uttin" the map)s* on the site
$ either usin" %iews or OL blocks
8/17/2019 Ol Leaflet Dcvie1 150327053502 Conversion Gate01
5/44
'hat (oes the Leaflet mo(ule1 !uildin" #ueries
$ usin" %iews
& Confi"urin" maps
$ +sin" the A(, - hook
' (uttin" the map)s* on the site
$ %iews )step 1* or Leaflet .eo/SO0 )aja*
8/17/2019 Ol Leaflet Dcvie1 150327053502 Conversion Gate01
6/44
'hat not in OL ) Leaflet mo(ules
2data input32"eocodin"
2data stora"e2proimity search
but other modules do that
8/17/2019 Ol Leaflet Dcvie1 150327053502 Conversion Gate01
7/44
OL other mo(ules an( resour#es
2.eofield &2.eocoder
2OL !locks2OL 4ilters2OL 4eature (opups
2
8/17/2019 Ol Leaflet Dcvie1 150327053502 Conversion Gate01
8/44
Leaflet other mo(ules an( resour#es
2.eofield &2.eocoder
2Leaflet markercluster 2Leaflet wid"et2Leaflet more maps
2Leaflet label
2
8/17/2019 Ol Leaflet Dcvie1 150327053502 Conversion Gate01
9/44
DrupalStorage – Query – Display
8/17/2019 Ol Leaflet Dcvie1 150327053502 Conversion Gate01
10/44
5 ,nput data6 .eofield Openlayers 7id"et
8/17/2019 Ol Leaflet Dcvie1 150327053502 Conversion Gate01
11/44
5 ,nput data6 .eofield Leaflet wid"et
6) !eta from 0o8 &51&3 doesn9t support .eofield & yet:
8/17/2019 Ol Leaflet Dcvie1 150327053502 Conversion Gate01
12/44
1 ;uery6 OpenLayers Data O8erlay
8/17/2019 Ol Leaflet Dcvie1 150327053502 Conversion Gate01
13/44
1
8/17/2019 Ol Leaflet Dcvie1 150327053502 Conversion Gate01
14/44
2 OL maps* +eneral esour#es
)!ase* Layers6 maps < tiles
Styles6 =arkers
8/17/2019 Ol Leaflet Dcvie1 150327053502 Conversion Gate01
15/44
2.1 OL Choose or a(( your map
8/17/2019 Ol Leaflet Dcvie1 150327053502 Conversion Gate01
16/44
2.2 OL Confi&ure your map
8/17/2019 Ol Leaflet Dcvie1 150327053502 Conversion Gate01
17/44
&' OL =ap Specific settin"s
!ase Layer
Layers > Data O8erlays
=arkers per Layer
,nitial ?oom le8el
and focus
!eha8ior6
Layerswitcher3
0a8i"ation3ooltps etc
8/17/2019 Ol Leaflet Dcvie1 150327053502 Conversion Gate01
18/44
3. OL -ut the map in the site
8/17/2019 Ol Leaflet Dcvie1 150327053502 Conversion Gate01
19/44
3 Leaflet -ut the map in the site
● 0ot necessary
8/17/2019 Ol Leaflet Dcvie1 150327053502 Conversion Gate01
20/44
2.2 Leaflet Confi&ure your map
● =issin" some +,
8/17/2019 Ol Leaflet Dcvie1 150327053502 Conversion Gate01
21/44
/** * Implements hook_leaflet_map_info(). */
function leaflet_dcvie_leaflet_map_info() {
return array) 'mapbox dasjo dcvie' =>
array) 'label' => 'mapbox dasjo dcvie',
'description' => t(''),
'settings' => array)
'minZoom' => 0,
'maxZoom' => , 'dragging' => TRUE,
'touc!Zoom' => TRUE,
),
'la"ers' => array)
'control_room' => array) 'url#emplate' => '!ttp$%%{s&tilesmapboxcom%v%*%{+&%{x&%{"&png',
'options' => array)
'attribution' => 'op"rig!t notes'
)
),
), ),
Leaflet maps
http://www.php.net/arrayhttp://www.php.net/arrayhttp://www.php.net/arrayhttp://www.php.net/arrayhttp://www.php.net/arrayhttp://www.php.net/arrayhttp://www.php.net/arrayhttp://www.php.net/arrayhttp://www.php.net/arrayhttp://www.php.net/arrayhttp://www.php.net/arrayhttp://www.php.net/array
8/17/2019 Ol Leaflet Dcvie1 150327053502 Conversion Gate01
22/44
3 !lternative* Leaflet +eo$ON Allows to use an A/AB!oundin" !o Strate"y
e#uires %iews .eo/SO0 E (atches 6)
ecent "eofield chan"es re#uire chan"es
https6FFdrupalor"FnodeF1GHIJIJ !!o ar"ument handler fies
https6FFdrupalor"FnodeF1J'HKKI
https://drupal.org/node/1794848https://drupal.org/node/1794848
8/17/2019 Ol Leaflet Dcvie1 150327053502 Conversion Gate01
23/44
Demo time:
8/17/2019 Ol Leaflet Dcvie1 150327053502 Conversion Gate01
24/44
8/17/2019 Ol Leaflet Dcvie1 150327053502 Conversion Gate01
25/44
/amples
8/17/2019 Ol Leaflet Dcvie1 150327053502 Conversion Gate01
26/44
www.moonun(erwater.eu
8/17/2019 Ol Leaflet Dcvie1 150327053502 Conversion Gate01
27/44
unes#o.nl
8/17/2019 Ol Leaflet Dcvie1 150327053502 Conversion Gate01
28/44
unes#o.nl
8/17/2019 Ol Leaflet Dcvie1 150327053502 Conversion Gate01
29/44
&elui(vanne(erlan(.nl
8/17/2019 Ol Leaflet Dcvie1 150327053502 Conversion Gate01
30/44
&elui(vanne(erlan(.nl
8/17/2019 Ol Leaflet Dcvie1 150327053502 Conversion Gate01
31/44
8/17/2019 Ol Leaflet Dcvie1 150327053502 Conversion Gate01
32/44
8/17/2019 Ol Leaflet Dcvie1 150327053502 Conversion Gate01
33/44
!ase tiles
8/17/2019 Ol Leaflet Dcvie1 150327053502 Conversion Gate01
34/44
/a8aScript =appin" Libraries
● Leaflet
● OpenLayers
●
d' F (roto8is● polymaps
● =odest =aps
8/17/2019 Ol Leaflet Dcvie1 150327053502 Conversion Gate01
35/44
8/17/2019 Ol Leaflet Dcvie1 150327053502 Conversion Gate01
36/44
8/17/2019 Ol Leaflet Dcvie1 150327053502 Conversion Gate01
37/44
=y recipe
● .eofield
● Leaflet
●
%iews .eo/SO0● Leaflet .eo/SO0
● Leafletmarkercluster )clientside*
or .eocluster )ser8erside*
8/17/2019 Ol Leaflet Dcvie1 150327053502 Conversion Gate01
38/44
8/17/2019 Ol Leaflet Dcvie1 150327053502 Conversion Gate01
39/44
and more
● Custom base tiles6 ilemill
● Custom 8isualiation6 d'3 /a8aScript
●
,mport6 4eeds● (roimity search6 .eofield3 Search A(,
Location
8/17/2019 Ol Leaflet Dcvie1 150327053502 Conversion Gate01
40/44
8/17/2019 Ol Leaflet Dcvie1 150327053502 Conversion Gate01
41/44
8/17/2019 Ol Leaflet Dcvie1 150327053502 Conversion Gate01
42/44
?
8/17/2019 Ol Leaflet Dcvie1 150327053502 Conversion Gate01
43/44
8/17/2019 Ol Leaflet Dcvie1 150327053502 Conversion Gate01
44/44