Discusses the input, storage, and display mechanisms of spatial fields on nodes: how to utilize Geofield's input widgets and output formatters, how to integrate Geofield with Leaflet and OpenLayers, and how to integrate them with Views.
Easily Create Maps in Drupal with LeafletAmber Matz
Mapping solutions in Drupal range from powerful configuration options in OpenLayers to simple one-line address fields that display a Google Map. Leaflet is a lightweight, mobile-friendly Javascript mapping library that uses Geofield to store location data. Geofield plus Leaflet is a solution with more options and flexibility than the Simple Google Maps contributed module, for example, and far less complexity, and fewer configuration options, than OpenLayers. If you're looking for an easy way to dive into mapping without pulling your hair out, then this webinar is for you.
Join Amber Matz, as she walks through the process of adding a map to your Drupal site using Geofield and Leaflet. In this webinar, you'll learn:
How to use Geofield to store location data in Drupal 7
How to display a single location marker on a map using Leaflet
How to use Views to create a map of many locations
Do you choose Openlayers or Leaflet to generate maps on your websites because that's what you always choose?
Is one better than the other?
We will take a few use cases and show how they could be build with both Openlayers and Leaflet, and discuss what criteria could be to choose either.
Easily Create Maps in Drupal with LeafletAmber Matz
Mapping solutions in Drupal range from powerful configuration options in OpenLayers to simple one-line address fields that display a Google Map. Leaflet is a lightweight, mobile-friendly Javascript mapping library that uses Geofield to store location data. Geofield plus Leaflet is a solution with more options and flexibility than the Simple Google Maps contributed module, for example, and far less complexity, and fewer configuration options, than OpenLayers. If you're looking for an easy way to dive into mapping without pulling your hair out, then this webinar is for you.
Join Amber Matz, as she walks through the process of adding a map to your Drupal site using Geofield and Leaflet. In this webinar, you'll learn:
How to use Geofield to store location data in Drupal 7
How to display a single location marker on a map using Leaflet
How to use Views to create a map of many locations
Do you choose Openlayers or Leaflet to generate maps on your websites because that's what you always choose?
Is one better than the other?
We will take a few use cases and show how they could be build with both Openlayers and Leaflet, and discuss what criteria could be to choose either.
Presentation of OpenLayers 3 (development: presentation is focused on a specific technology, demonstrating either a new product or new developments in an existing product.)
Cool demonstrations of how OpenLayers 3 opens up new possibilities for presenting your geospatial data.
OpenLayers 3 enables a huge range of new web mapping functionality. In this talk, we'll show off many of the cool features of OpenLayers 3, including: Rich interaction and animation Virtual globe integration Raster layer effects Wide-ranging data source support The talk will be light on technical details and heavy with cool demos to show you how OpenLayers 3 opens up new and exciting ways of presenting your geospatial data.
Getting Oriented with MapKit: Everything you need to get started with the new...John Wilker
New in 3.0 Map Kit works with the Google Mobile Maps Service and features panning and zooming, custom annotations, current location and geocoding. This new framework opens up many new possibilities programs not previously possible. Come learn everything you need to know to get started as well as some tips and tricks to speed your programming along.
Google Maps is a web mapping service developed by Google. Google Maps began as a C++ desktop program designed by Lars and Jens Eilstrup Rasmussen at Where 2 Technologies. More information the visit :- https://abhiandroid.com/programming/googlemaps
Speaking notes for a Google Earth tour and demonstration. I wanted to show my colleagues how GE can be helpful in civil, environmental, and related projects on a daily basis.
Presentation of OpenLayers 3 (development: presentation is focused on a specific technology, demonstrating either a new product or new developments in an existing product.)
Cool demonstrations of how OpenLayers 3 opens up new possibilities for presenting your geospatial data.
OpenLayers 3 enables a huge range of new web mapping functionality. In this talk, we'll show off many of the cool features of OpenLayers 3, including: Rich interaction and animation Virtual globe integration Raster layer effects Wide-ranging data source support The talk will be light on technical details and heavy with cool demos to show you how OpenLayers 3 opens up new and exciting ways of presenting your geospatial data.
Getting Oriented with MapKit: Everything you need to get started with the new...John Wilker
New in 3.0 Map Kit works with the Google Mobile Maps Service and features panning and zooming, custom annotations, current location and geocoding. This new framework opens up many new possibilities programs not previously possible. Come learn everything you need to know to get started as well as some tips and tricks to speed your programming along.
Google Maps is a web mapping service developed by Google. Google Maps began as a C++ desktop program designed by Lars and Jens Eilstrup Rasmussen at Where 2 Technologies. More information the visit :- https://abhiandroid.com/programming/googlemaps
Speaking notes for a Google Earth tour and demonstration. I wanted to show my colleagues how GE can be helpful in civil, environmental, and related projects on a daily basis.
Big Data is on the radar of business users. The 4 V’s for data – Velocity, Volume, Variety and Veracity – are key attributes in virtually all big data initiatives. Each creates opportunities but impose technical challenges. The roll of ‘data scientist’ has also been added to the mix. Practitioners use statistics, algorithms and ‘data wrangling’ methodologies to find insight in seemingly random collections of information. Data scientists have discovered that geospatial and geo-temporal algorithms are a universal key to unlocking understanding in large data sets. Can business users be successful with similar tools? The answer is a qualified ‘yes’.
In this session we review the needs of business users with a focus on big data and data science. One conclusion presented: business users need geospatial capabilities in their big data analytic toolkits. Another conclusion: most current GIS offerings fall short. Alternative implementations are discussed with opportunity for attendees to offer their opinions, experiences and insights.
An introduction to the Leaflet.js library for building web maps and applications. This was the introduction to a technical workshop at the 2016 PA GIS Conference. The workshop provided a demonstration of how to build a basic map writing JavaScript, HTML, and CSS.
The project files are located at https://github.com/pmacMaps/leaflet-pa-gis-conference-2016.
Data capture with Leaflet and OpenStreetMapRoss McDonald
Louise Sing's lightning talk on how she used LeafletJs and OpenStreetMap to build a mobile application to capture data about forest usage. Presented at 6th Scottish QGIS UK user group meeting.
Advanced Web-Based Geospatial Visualization using Leaflet HumanGeo Group
In Intel Analytic DC's first meetup, Danny Holloway presented a tool that allows users to find and map the latest tweets in Australia using Leaflet, TileMill, MongoDB, and other technologies. Given the audience interest in geospatial technologies/analytics and web-based mapping, this presentation introduces and provides examples using the HumanGeo Data Visualization Framework, a soon to be released open source JavaScript framework based on CloudMade's Leaflet web-mapping framework. The goal of the Data Visualization Framework is to provide a core set of capabilities for visualizing data using Leaflet while simplifying common tasks and reducing the amount of code that developers need to write in order to create compelling geospatial visualizations.
This presentation provides essential information for writing a leaflet, making it very persuasive and informative. Including a task with the presentation will help the teachers to make it a complete lesson.
This slidedeck presents a brief scan of the web mapping and geographic information (GIS) tools that were explored during the Indigenous Mapping Workshop 2014 (IMW2014) held at the University of Victoria 25-28 August 2014.
The workshop was attended by 100+ participants, representing more than 40 First Nations, Metis and Inuit communities from across Canada.
The Workshop was jointly hosted/organized by the Union of British Columbia Indian Chiefs, the Firelight Group, Google Earth Outreach, and the University of Victoria, Anthropology Department.
The scan is not comprehensive, favouring the tools that were explored in the Day3/4 "deep dives".
More information on the tools and workshop are available here: http://imwcanada.earthoutreach.org
LocationTech is an Eclipse Foundation industry working group for location aware technologies. This presentation introduces LocationTech, looks at what it means for our industry and the participating projects.
Libraries: JTS Topology Suite is the rocket science of GIS providing an implementation of Geometry. Mobile Map Tools provides a C++ foundation that is translated into Java and Javascript for maps on iOS, Andriod and WebGL. GeoMesa is a distributed key/value store based on Accumulo. Spatial4j integrates with JTS to provide Geometry on curved surface.
Process: GeoTrellis real-time distributed processing used scala, akka and spark. GeoJinni mixes spatial data/indexing with Hadoop.
Applications: GEOFF offers OpenLayers 3 as a SWT component. GeoGit distributed revision control for feature data. GeoScipt brings spatial data to Groovy, JavaScript, Python and Scala. uDig offers an eclipse based desktop GIS solution.
Attend this presentation if want to know what LocationTech is about, are interested in these projects or curious about what projects will be next.
Learn how to use the location-related capabilities of Nokia Lumia hardware, Windows Phone Location APIs, and the HERE location platform, including HERE Maps, HERE Drive, and HERE Transit. Starting with the basics — retrieving location information from the phone and registering for background location notifications — this presentation then looks at map-related services APIs available for your Windows Phone apps for Nokia Lumia smartphones, including APIs for map rendering, geocoding, and routing controls.
For detailed documentation on the maps features in Lumia smartphones see http://www.developer.nokia.com/Resources/Library/Lumia/#!guide-to-the-wp8-maps-api.html and don't forget to check out the examples at http://projects.developer.nokia.com/WP8MapsExamples
For more details about developing for Nokia Lumia smartphones visit http://www.developer.nokia.com/windowsphone
Check out details of the other Lumia App Labs, including the future schedule, here: http://www.developer.nokia.com/Develop/Windows_Phone/Learn/
Maps and geolocation are becoming more and more important to the sites we build as the scope of our smallest projects become regional, national and global. Does your next project need to list store locations that sell a product world wide? Do you need to limit content for certain country descriptions? While these thoughts might be scary at first I promise it isn't voodoo and at the end of the talk you will know how to do all of these things.
In this session I will walk you through Drupal common ways to:
- Add maps to your site
- Create locations on your maps (with and without views)
- Locate your users in realtime
- Search for locations within a distance
- Use mobile devices for geolocation
Patrick Chanezon and Guillaume Laforge are presenting Google App Engine Java and Gaelyk, the lightweight groovy toolkit on top of the GAE SDK, at the Devoxx conference
Similar to Of Nodes and Maps (Web Mapping with Drupal - Part II) (20)
Presented during the DrupalCamp Cebu 2015. It demonstrates how we handled and integrated multiple, switchable, and extendable map APIs with our Drupal site (CNN Travel). It showcases the modern map APIs particularly the Google Maps, HERE Maps, and MapBox.
Likewise, it will feature the Strategy Design Pattern for easy switching of map objects' context and activating a particular map API. Discussion will include the various entity contexts (node and taxonomy pages), Drupal admin form for inputting API credentials, Drupal.settings' object integration, the template files and other loaded assets, the rendered widgets, as well as the challenges we encountered and their corresponding solutions/workaround.
The session is targeted for those interested in design patterns, web mapping, or implementing switchable JavaScript APIs (multiple chart APIs, map APIs, or any family of 3rd-party APIs).
The Synergy of Drupal Hooks/APIs (Custom Module Development with ChartJS)Ranel Padon
Showcases the most useful Drupal hooks and functions. Demonstrates their powerful and beautiful interactions. Uses a custom chart block to illustrate the synergy of functions.
Discusses how to configure and implement custom CKEditor widgets in Drupal. Includes numerous examples of custom widgets and actual widgets that we use in CNN Travel site.
Note that you could also download the PDF copy of this presentation by clicking the Save/Download button. The PDF copy has far better quality than the one rendered here online.
Views Unlimited: Unleashing the Power of Drupal's Views ModuleRanel Padon
Unleashing the power of Views Drupal module. Discusses Display Formats (Map, Chart, Slideshow, Data Export), Fields, Basic Filters, Exposed Filters, Contextual Filters, Relationships, Attachment, and so on. Includes numerous sample use cases and recommendations.
JMeter webinar - integration with InfluxDB and GrafanaRTTS
Watch this recorded webinar about real-time monitoring of application performance. See how to integrate Apache JMeter, the open-source leader in performance testing, with InfluxDB, the open-source time-series database, and Grafana, the open-source analytics and visualization application.
In this webinar, we will review the benefits of leveraging InfluxDB and Grafana when executing load tests and demonstrate how these tools are used to visualize performance metrics.
Length: 30 minutes
Session Overview
-------------------------------------------
During this webinar, we will cover the following topics while demonstrating the integrations of JMeter, InfluxDB and Grafana:
- What out-of-the-box solutions are available for real-time monitoring JMeter tests?
- What are the benefits of integrating InfluxDB and Grafana into the load testing stack?
- Which features are provided by Grafana?
- Demonstration of InfluxDB and Grafana using a practice web application
To view the webinar recording, go to:
https://www.rttsweb.com/jmeter-integration-webinar
"Impact of front-end architecture on development cost", Viktor TurskyiFwdays
I have heard many times that architecture is not important for the front-end. Also, many times I have seen how developers implement features on the front-end just following the standard rules for a framework and think that this is enough to successfully launch the project, and then the project fails. How to prevent this and what approach to choose? I have launched dozens of complex projects and during the talk we will analyze which approaches have worked for me and which have not.
Essentials of Automations: Optimizing FME Workflows with ParametersSafe Software
Are you looking to streamline your workflows and boost your projects’ efficiency? Do you find yourself searching for ways to add flexibility and control over your FME workflows? If so, you’re in the right place.
Join us for an insightful dive into the world of FME parameters, a critical element in optimizing workflow efficiency. This webinar marks the beginning of our three-part “Essentials of Automation” series. This first webinar is designed to equip you with the knowledge and skills to utilize parameters effectively: enhancing the flexibility, maintainability, and user control of your FME projects.
Here’s what you’ll gain:
- Essentials of FME Parameters: Understand the pivotal role of parameters, including Reader/Writer, Transformer, User, and FME Flow categories. Discover how they are the key to unlocking automation and optimization within your workflows.
- Practical Applications in FME Form: Delve into key user parameter types including choice, connections, and file URLs. Allow users to control how a workflow runs, making your workflows more reusable. Learn to import values and deliver the best user experience for your workflows while enhancing accuracy.
- Optimization Strategies in FME Flow: Explore the creation and strategic deployment of parameters in FME Flow, including the use of deployment and geometry parameters, to maximize workflow efficiency.
- Pro Tips for Success: Gain insights on parameterizing connections and leveraging new features like Conditional Visibility for clarity and simplicity.
We’ll wrap up with a glimpse into future webinars, followed by a Q&A session to address your specific questions surrounding this topic.
Don’t miss this opportunity to elevate your FME expertise and drive your projects to new heights of efficiency.
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf91mobiles
91mobiles recently conducted a Smart TV Buyer Insights Survey in which we asked over 3,000 respondents about the TV they own, aspects they look at on a new TV, and their TV buying preferences.
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...Jeffrey Haguewood
Sidekick Solutions uses Bonterra Impact Management (fka Social Solutions Apricot) and automation solutions to integrate data for business workflows.
We believe integration and automation are essential to user experience and the promise of efficient work through technology. Automation is the critical ingredient to realizing that full vision. We develop integration products and services for Bonterra Case Management software to support the deployment of automations for a variety of use cases.
This video focuses on the notifications, alerts, and approval requests using Slack for Bonterra Impact Management. The solutions covered in this webinar can also be deployed for Microsoft Teams.
Interested in deploying notification automations for Bonterra Impact Management? Contact us at sales@sidekicksolutionsllc.com to discuss next steps.
Accelerate your Kubernetes clusters with Varnish CachingThijs Feryn
A presentation about the usage and availability of Varnish on Kubernetes. This talk explores the capabilities of Varnish caching and shows how to use the Varnish Helm chart to deploy it to Kubernetes.
This presentation was delivered at K8SUG Singapore. See https://feryn.eu/presentations/accelerate-your-kubernetes-clusters-with-varnish-caching-k8sug-singapore-28-2024 for more details.
Key Trends Shaping the Future of Infrastructure.pdfCheryl Hung
Keynote at DIGIT West Expo, Glasgow on 29 May 2024.
Cheryl Hung, ochery.com
Sr Director, Infrastructure Ecosystem, Arm.
The key trends across hardware, cloud and open-source; exploring how these areas are likely to mature and develop over the short and long-term, and then considering how organisations can position themselves to adapt and thrive.
DevOps and Testing slides at DASA ConnectKari Kakkonen
My and Rik Marselis slides at 30.5.2024 DASA Connect conference. We discuss about what is testing, then what is agile testing and finally what is Testing in DevOps. Finally we had lovely workshop with the participants trying to find out different ways to think about quality and testing in different parts of the DevOps infinity loop.
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...Ramesh Iyer
In today's fast-changing business world, Companies that adapt and embrace new ideas often need help to keep up with the competition. However, fostering a culture of innovation takes much work. It takes vision, leadership and willingness to take risks in the right proportion. Sachin Dev Duggal, co-founder of Builder.ai, has perfected the art of this balance, creating a company culture where creativity and growth are nurtured at each stage.
Transcript: Selling digital books in 2024: Insights from industry leaders - T...BookNet Canada
The publishing industry has been selling digital audiobooks and ebooks for over a decade and has found its groove. What’s changed? What has stayed the same? Where do we go from here? Join a group of leading sales peers from across the industry for a conversation about the lessons learned since the popularization of digital books, best practices, digital book supply chain management, and more.
Link to video recording: https://bnctechforum.ca/sessions/selling-digital-books-in-2024-insights-from-industry-leaders/
Presented by BookNet Canada on May 28, 2024, with support from the Department of Canadian Heritage.
8. MOTIVATION
• Brain Rules
Rule #10
“Vision is by far our most dominant sense,
taking up half of our brain’s resources.”
“We learn and remember best through
pictures, not through written or spoken
words.
9. MOTIVATION
Milky Way Transit Authority
http://arbesman.net/blog/wp-content/uploads/2012/05/Screen-Shot-2012-06-13-at-10.17.58.png
12. MOTIVATION
Pattern and Temporal Analysis
• Dr. Abraham Verghese
used maps to help think about his HIV infected patients
Making Maps (Krygier, 2011)
13. MOTIVATION
• Dr. Verghese and his colleagues were stunned when
HIV-infected patients began to dominate their practices.
• What was this urban problem doing in rural Tennessee?
• Dr. Verghese next mapped where his HIV patients lived between 1979
and 1985. The places on the Acquisition map “seemed to circle
the periphery of the United States” and were mostly large cities.
Dr. Verghese learned of a circuitous voyage, a migration from
home and a return, ending in death.
Making Maps (Krygier, 2011)
15. MOTIVATION
Dr. Verghese’s findings will be hard to came up with if you
will use tables/spreadsheets and charts only, that is, without
using maps for spatial/temporal correlation.
There is something about maps that could not be provided
by text, tables, or charts, or other statistical analysis tools.
Spatial analysis is a deep science on its own.
27. MOTIVATION
Case Study 2
CNN Travel Map 1: Adding Geofield coordinates
1. WKT
2. Leaflet Input Widget
http://travel.cnn.com/node/130484/edit
28. MOTIVATION
Case Study 2
CNN Travel Map 2:
Displaying Geofield
using TripAdvisor API
(our sponsor’s API)
http://travel.cnn.com/explorations/escape/destinations/insider-guide-best-madrid-249484
32. GEOFIELD
• Provide widgets for data input and formatters for data
output
• Could be integrated to Entities (nodes/content types,
taxonomy terms, user and comments)
33. GEOFIELD
• common Drupal fields: text, number, dates, image
• special-purpose field: spatial/geo-related fields
• they are tricky to represent in database, since distance
and area computations are not simple arithmetic
operation and must consider map projection, scale,
styling, etc
34. GEOFIELD | GEOPHP
• geoPHP is the workhorse library of Geofield
• could read, write, and store location-related
information.
• could compute centroids, bounding-boxes, length,
area, etc.
37. GEOFIELD
• Create a new content type
(admin/structure/types/add) called Tourist Spot
• Add Name of the Tourist Spot as the Title field and a
new Coordinates field:
39. GEOFIELD
Coordinates field:
• Geolocation could provide the Default values
• Could auto-locate the current user via IP Address
• Very useful for real-time data like crime reporting, news
scoop, disaster response, etc.
40. GEOFIELD
Make a new Tourist Spot content
>> node/add/tourist-spot:
• Name of the Tourist Spot: Taal Volcano
• Description: The Taal Volcano.
• Coordinates:
• Latitude: 14
• Longitude: 121
54. GEOFIELD
Make sure to add a Static Map configuration before
selecting the Geofield’s Static Map formatter.
(admin/config/content/staticmap/list)
55. GEOFIELD
Note that you could use a Leaflet input widget for
Geofield (https://drupal.org/project/leaflet_widget), but
the stable version is good for Geofield 1.x only.
57. GEOFIELD
Installation surprises:
• Make sure that the downloaded Leaflet Widget plugin has
this structure (capitalized L):
>> sites/all/libraries/Leaflet.widget/lib/Leaflet.draw
http://www.9gag.com
58. GEOFIELD
Installation surprises:
• Install Leaflet (but don’t download the newest Leaflet plugin from
Leaflet’s main site.)
• Copy the bundled Leaflet from the downloaded Leaflet.widget:
>> sites/all/libraries/Leaflet.widget/lib/Leaflet
• rename it such that the libraries folder also contains leaflet:
>> sites/all/libraries/leaflet
59. GEOFIELD
• Leaflet Widget for Geofield is tested on Leaflet 0.4.x only
and Geofield 1.x.
• See the related documentation regarding setup and
configuration
• For using the newer & more powerful Leaflet.draw plugin
and some patches for the current module, try to checkout
this fork: https://github.com/acouch/leaflet_draw_widget
60. GEOFIELD | LEAFLET
• Leaflet’s philosophy:
simplicity, performance and usability.
• It’s the jQuery of Mapping.
• Take advantage of HTML5 and CSS3
• Modular design and readable source code.
61. GEOFIELD | LEAFLET
It was created by Vladimir Agafonkin
A beautiful product created by a
well-rounded person.
62. GEOFIELD | LEAFLET
My Leaflet Mashup (integrating Leaflet with jQuery).
You could download the source code here and open the
“leaflet-jquery5.html” file
63. GEOFIELD | LEAFLET
• Drupal’s Leaflet module has 2 versions:
• 7.x-1.x-dev
• sites/all/libraries/leaflet/leaflet.js
• 7.x-1.0-beta3
• Requires sites/all/libraries/leaflet/dist/leaflet.js
• Either case, you could use the latest Leaflet.js plugin.
64. GEOFIELD | LEAFLET
• Install Leaflet 7.x-1.0-beta3
• In admin/structure/types/manage/tourist_spot/display
• Set the Coordinates’ field output format to Leaflet
66. GEOFIELD | LEAFLET
View the page, by default the zoom level is too high.
You must click the “-” button repeatedly to see the map.
67. GEOFIELD | LEAFLET
Workaround 1:
• Apply the patch here
This will also include code patch for a more advanced zoom
settings/configurations in the Geofield’s Leaflet output
formatter.
68. GEOFIELD | LEAFLET
Workaround 2 (Quick and specific zoom):
• Add this line “$map['settings']['zoom'] = 8;”
to /sites/all/modules/leaflet/leaflet.formatters.inc
82. GEOFIELD | OPENLAYERS
Geofield with custom OpenLayers map:
admin/structure/openlayers/maps/list/geofield_widget_map/clone
PARAMETER
VALUE
Infos
Map Title:
Pilipinas Geofield Widget Map
Center and
Bounds
Centerpoint: 121, 14
Zoom Level: 6
83. GEOFIELD | OPENLAYERS
• Select the Geofield map with custom OpenLayers map:
admin/structure/types/manage/tourist-spot/fields/field_coordinates_ol_map_
84. GEOFIELD | OPENLAYERS
• The new, custom Geofield OL input widget for adding/editing
Tourist Spot pages
• You may also select the default map value (Latitude, Longitude)
85. GEOFIELD | OPENLAYERS
• Geofield with custom OpenLayers formatter map:
• Clone Geofield Formatter Map
s
86. GEOFIELD | OPENLAYERS
• Geofield with custom OpenLayers map:
admin/structure/openlayers/maps/list/geofield_formatter_map/clone
PARAMETER
VALUE
Infos
Map Title:
Pilipinas Geofield Formatter Map
Center and
Bounds
Centerpoint: 121, 14
Zoom Level: 7
Layers and
Styles
Base Layer: MapQuest Open Aerial
(Enable and Set to Default)
87. GEOFIELD | OPENLAYERS
• Modify the Geofield OL Map formatter
>> admin/structure/types/manage/tourist_spot/display
89. GEOFIELD | OPENLAYERS
Modifying the Icon marker:
>>
admin/structure/openlayers/maps/list/geofield_formatter_map/clone
• go to Layers and Styles section
92. VIEWS
Views is the make or break of Drupal. Many people find it
to be intimidating and hard. But essentially, it just
answers these 3 questions:
• What?
• Where?
• How?
93. VIEWS
Views is essentially a view of data.
For example, if you’re in a bar with your friend (which could
be drunk already), and suddenly a woman entered the room
your friend may find the woman gorgeous/sexy, but you
might find it just mediocre/ugly.
In that case, there are 2 different Views or perspective: your
View and your friend’s View; while the data (the Woman) is
the same for both of you, it could be portrayed differently.
94. VIEWS
In the same way, Views retrieve data from the database,
selects the content types you want (Blog, News, Product,
Tourist Spot), the fields you want (Title, Images, Author,
Location, Price), filter them (filter by category, filter by
price), apply some pre-processing (compute total, aggregate
data), sort them (sort by surname, sort by area, sort by
publication date), and finally display them in a format you
want (list, grid, charts, maps, gallery).
Hence, a same pool of data could be combined and viewed in
many ways.
96. VIEWS | MAP VIEW
• What
•
Content Type (Tourist Spot content type)
•
Fields (Title, Coordinates, other fields you want to include)
• Where
•
Page (a page via URL: /openlayers-tourist-spot or /leaflet-tourist-spot)
•
Block
• How
•
List
•
Table
•
Gallery
•
Chart
•
Map (OpenLayers or Leaflet)
97. VIEWS
To appreciate Views, we must create additional Tourist
Spot pages.
These Tourist Spot pages could be shown later in one map
or technically, in one View.
101. VIEWS | TABLE VIEW
Let’s create a custom Table View of Tourist Spot pages for
illustration purposes, before proceeding to Map Views.
102. VIEWS | TABLE VIEW
Add a Table View
of Tourist Spots
103. VIEWS | TABLE VIEW
Configure further the Table View
of Tourist Spots
104. VIEWS | TABLE VIEW
The displayed, custom Table View of Tourist Spots
105. VIEWS | GEOFIELD
The Geofield data type makes it possible for Views to
display collection of nodes in map format.
Leaflet
Map View
Geofield
Views
OpenLayers
Map View
106. VIEWS | LEAFLET
• Create a new Taxonomy Vocabulary called Island Group
>> admin/structure/taxonomy/add
• These will be used for categorizing the Tourist Spots
107. VIEWS | LEAFLET
>> admin/structure/taxonomy/island_group
• These will be used also later as exposed search filters
111. VIEWS | LEAFLET
Leaflet View filtered as Mindanao Island Group only:
Single point result in Leaflet Views
will be zoomed too high also.
http://www.9gag.com
112. VIEWS | LEAFLET
Leaflet View (Single Instance Zoom workaround)
1. Apply patch from here or
2. Add this line $map['settings']['maxZoom'] = "8";
>> /sites/all/modules/leaflet/leaflet_views/leaflet_views_plugin_style.inc
114. VIEWS | OPENLAYERS
For OpenLayers Map View (since OL is modular and highlycustomizable, it involves more steps)
1. Create an OpenLayers Map object (MO)
2. Create a new OpenLayers Map View (MV)
3. Create a new OpenLayers Data Overlay View (DOV)
4. Enable the DOV as Map Layer in MO via
122. VIEWS | OPENLAYERS
• Showing the Layers and Graticules window.
• Could be configured in the Behaviors section of every
Map object (see next slide)
123. VIEWS | OPENLAYERS
• Configuring the Graticules:
>> admin/structure/openlayers/maps/list/clone_of_default/edit
127. VIEWS | OPENLAYERS
You might want to add Photos field in the Tourist Spot
content type (see next slide), then configure the Tourist
Spot Data Overlay View to include this Photos field in
the data fetched and displayed by its View.
130. VIEWS | OPENLAYERS
For a more detailed documentation about OpenLayers-Views
setup, go here.
The docs in the link above is a highly-recommended reading.
132. RECOMMENDATIONS
• Use Geolocation, Lat/Lon, or OpenLayers Map as input
widget for Geofield. For stability and flexibility sake,
refrain from using the Leaflet Widget for Geofield.
• Use Leaflet (with integrated Leaflet More Maps) or
OpenLayers as output formatter for Geofield.
• Use Leaflet (integrated Map-Data View) or OpenLayers
(separate Map View and Data View) for showing the
listing of entities containing Geofield data.
133. REFERENCES
• Drupal Main Site
• Web Mapping with Drupal Slides
• DrupalOverEasy YouTube Channel