Customizing Maps Custom controls to change the content of the map

Slides:



Advertisements
Similar presentations
Pages and boxes Building quick user interfaces. learning objectives o Build a quick UI with pages and boxes o understand how pages and boxes work o click.
Advertisements

Windows Basics: The Mouse. The Mouse Before you can explore the Desktop and Taskbar, you must know how to use your mouse. Your mouse is a pointing device.
CS7026 jQuery Events. What are Events?  jQuery is tailor-made to respond to events in an HTML page.  Events are actions that can be detected by your.
Lesson 12- Unit L Programming Web Pages with JavaScript.
Online Calculator Basic Word Processing Skills Computer Keyboard Skills Computer Mouse Skills Basic Computer Terminology Computer Mouse Skills “I really.
CS428 Web Engineering Lecture 15 Introduction to Jquery.
Google Earth How to create a Google Earth Tour and place it in your Wiki.
Introduction to Computers I A presentation of the Elmhurst Public Library.
Execution Environment for JavaScript " Java Script Window object represents the window in which the browser displays documents. " The Window object provides.
© 2000 – All Rights Reserved - Page 1 Introduction to JavaScript Programming Part Two.
SERVER web page repository WEB PAGE instructions stores information and instructions BROWSER retrieves web page and follows instructions Server Web Server.
Arrays – What is it? – Creation – Changing the contents Functions – What is it? – Syntax – How they work – Anonymous functions A quick lesson in Objects.
1 rfXcel Confidential Copyright 2007 Web Technology JavaScript 12/10/07.
Intro to JavaScript. Use the tag to tell the browser you are writing JavaScript.
Section 17.1 Add an audio file using HTML Create a form using HTML Add text boxes using HTML Add radio buttons and check boxes using HTML Add a pull-down.
© Copyright by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 1 Tutorial 27 - Phone Book Application Introducing Multimedia.
Jquery Nasrullah. Jquery jQuery is a JavaScript Library. jQuery greatly simplifies JavaScript programming. jQuery is easy to learn.
Client-Side Scripting JavaScript.  produced by Netscape for use within HTML Web pages.  built into all the major modern browsers. properties  lightweight,
Microsoft Office Basics
Visual Basic.NET BASICS Lesson 3 Events and Code.
CS350 – Windows Programming Formerly and more properly named: Event Driven Programming Dr. Randy Ribler.
Motion Tweening – Lesson 81 Motion Tweening Lesson 8.
SERVER web page repository WEB PAGE instructions stores information and instructions BROWSER retrieves web page and follows instructions Server Web Server.
1 Creating Windows GUIs with Visual Studio. 2 Creating the Project New Project Visual C++ Projects Windows Forms Application Give the Project a Name and.
Cs332a_chapt10.ppt CS332A Advanced HTML Programming DHTML Dynamic Hypertext Markup Language A term describing a series of technologies Not a stand-a-lone.
Computer Science and Software Engineering© 2014 Project Lead The Way, Inc. HTML5 Evolving Standards JavaScript.
Event JavaScript's interaction with HTML is handled through events that occur when the user or browser manipulates a page. When the page loads, that is.
Internet & World Wide Web How to Program, 5/e. © by Pearson Education, Inc. All Rights Reserved.
Dialog boxes in JavaScript Events in JavaScript – What are they – “Which events are there?” – “How do I register event handlers to an HTML element?” –
1 Chapter 3 – JavaScript Outline Introduction Flowcharts Control Structures if Selection Structure if/else Selection Structure while Repetition Structure.
Event Handling (the right way). A Simple Web Page Events - Summary The web page looks like this:
Events CS The keyword this  all JavaScript code actually runs inside of an object  by default, code runs inside the global window object  all.
LESSON : EVENTS AND FORM VALIDATION -JAVASCRIPT. EVENTS CLICK.
 objects in Client  What is Event?  Event Handlers  programming.
Introduction 1.HTML DOM events allow JavaScript to register different event handlers on elements in an HTML document. 2.Events are normally used in combination.
Dr. Ahmet Cengizhan Dirican BIL 374 Internet Technologies 6. Dynamic Documents With JavaScript.
Introduction to JavaScript Events Instructor: Sergey Goldman 1.
Internet & World Wide Web How to Program, 5/e.  JavaScript events  allow scripts to respond to user interactions and modify the page accordingly  Events.
JQuery Tutorial. What is jQuery jQuery is a JavaScript Library The purpose of jQuery is to make it much easier to use JavaScript on your website JavaScript.
4.5. Respond to the touch interface 4.6. Code additional HTML5 APIs 4.7. Access device and operating system resources JavaScript Coding for the Touch Interface,
SE-2840 Dr. Mark L. Hornick 1 Dynamic HTML Handling events from DOM objects.
Using DHTML to Enhance Web Pages
Event Loops and GUI Intro2CS – weeks
Responding to Events Event Handling in Java
How to work with your sprite
Human Computer Interaction
Event-driven programming
Introduction to JavaScript Events
JavaScript Event Handling.
Microsoft Office 2007 MS-Word.
Section 17.1 Section 17.2 Add an audio file using HTML
An Introduction to Computers and Visual Basic
Introduction to Events
JavaScript and Events.
CSE 154 Lecture 11: More Events.
Working with the Event Model
Tutorial 6 Creating Dynamic Pages
Functions, Regular expressions and Events
Visual programming Chapter 2: Events and Event Handling
1/10/2019 JavaFX Events COSC 330.
Types of Spatial Data Sites
Review: Applying Computer Basics
An Introduction to Computers and Visual Basic
Web Design and Development
Types of Spatial Data Sites
Events: Changed and Input
Types of Spatial Data Sites
HTML and CSS Basics.
CS7026 jQuery Events.
JavaScript Event Handling For Interaction and Casual Games
Presentation transcript:

Customizing Maps Custom controls to change the content of the map Changing what the map does when the mouse is moved “over” the map or when the user pressed the mouse “down” on the map. Dr. Jim Graham 15 years as computer engineer and manager with HP If you use an HP ScanJet scanner you are using software I worked on 4 years running a Web-GIS company 5 years at CSU Research Scientist: www.niiss.org

Adding External Controls Make the MainContainer, Scene, Geo, and/or Layers you want to change global Add a new HTML/DOM element as the control Add your event handler functions Call the CanvasMap objects as you desire

Event Processing In Windows-Based computer programs, we: Setup our program Add “event handlers” Wait for the user to do something

Common Mouse DOM Events onclick=“OnClick(MouseEvent)” onmousedown=“OnMouseDown(MouseEvent)” onmousemove=“OnMouseMove(MouseEvent)” ondblclick=“OnDoubleClick(MouseEvent)” Mouse Event: clientX – horizontal position of the mouse cursor clientY – vertical position of the mouse cursor button – which button was pressed

Common Key DOM Events onkeydown=“OnKeyDown(KeyEvent)” onkeypress=“OnKeyPress(KeyEvent)” onkeyup=“OnKeyUp(KeyEvent)” KeyEvent: code – key pressed shiftKey – true if shift pressed …

Other Common DOM Events wheel=“OnWheel(WheelEvent)” WheelEvent: var Delta=TheEvent.detail? TheEvent.detail*(-120) : TheEvent.wheelDelta Delta contains +120 when wheel is scrolled up, -120 when scrolled down Note: this does not match W3Schools

Events and JavaScript TheElement.addEventListener("mousemove",function(TheEvent) { // your code here // “this” pointer will point to the element });