[Ebooks PDF] download (Ebook) Building web and mobile ArcGIS Server applications with JavaScript by Lewin, Mark; Pimpler, Eric ISBN 9781787280526, 1787280527 full chapters
[Ebooks PDF] download (Ebook) Building web and mobile ArcGIS Server applications with JavaScript by Lewin, Mark; Pimpler, Eric ISBN 9781787280526, 1787280527 full chapters
com
https://ebooknice.com/product/building-web-and-mobile-
arcgis-server-applications-with-javascript-6856758
DOWLOAD EBOOK
ebooknice.com
ebooknice.com
https://ebooknice.com/product/sat-ii-success-
math-1c-and-2c-2002-peterson-s-sat-ii-success-1722018
ebooknice.com
https://ebooknice.com/product/programming-arcgis-with-python-
cookbook-6809154
ebooknice.com
(Ebook) Master SAT II Math 1c and 2c 4th ed (Arco Master
the SAT Subject Test: Math Levels 1 & 2) by Arco ISBN
9780768923049, 0768923042
https://ebooknice.com/product/master-sat-ii-math-1c-and-2c-4th-ed-
arco-master-the-sat-subject-test-math-levels-1-2-2326094
ebooknice.com
ebooknice.com
ebooknice.com
ebooknice.com
Building Web and Mobile ArcGIS Server Applications with JavaScript
Second Edition
Build exciting custom web and mobile GIS applications with the ArcGIS Server API
for JavaScript
Eric Pimpler
Mark Lewin
BIRMINGHAM - MUMBAI
Building Web and Mobile ArcGIS
Server Applications with JavaScript
Second Edition
All rights reserved. No part of this book may be reproduced, stored in a retrieval
system, or transmitted in any form or by any means, without the prior written
permission of the publisher, except in the case of brief quotations embedded in
critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of
the information presented. However, the information contained in this book is sold
without warranty, either express or implied. Neither the authors, nor Packt
Publishing, and its dealers and distributors will be held liable for any damages
caused or alleged to be caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all of the
companies and products mentioned in this book by the appropriate use of capitals.
However, Packt Publishing cannot guarantee the accuracy of this information.
www.packtpub.com
Credits
Authors
Copy Editor
Eric Pimpler
Safis Editing
Mark Lewin
Reviewers
Project Coordinator
Ken Doman
Vaidehi Sawant
Adeyemo Ayodele
Mark Lewin has been developing, teaching, and writing about software for over 16
years. His main interest is GIS and web mapping. Working for ESRI, the world's
largest GIS company, he has been a consultant, trainer and course author, and a
frequent speaker at industry events. He has subsequently expanded his knowledge to
include a wide variety of open source mapping technologies and a handful of
relevant JavaScript frameworks, including Node.js, Dojo, and JQuery. Mark now
works within Oracle's MySQL curriculum team, focusing on creating great learning
experiences for DBAs and database developers, but remains crazy about web
mapping.
About the Reviewers
Ken Doman is a senior frontend engineer at GEO Jobe, a geographic information
systems consultant company and ESRI business partner that helps public sector
organizations and private sector businesses get the most out of geospatial solutions.
Ken has worked for the municipal government and in the private sector. He has
experienced many facets of GIS technology, from field data collection to mapping
and data analysis to creating and deploying web mapping applications and solutions.
Ken is the author of Mastering ArcGIS Server Development with JavaScript. He has
also reviewed several books for Packt Publishing, including Building Web and
Mobile ArcGIS Server Applications with JavaScript and Spatial Analysis with
ArcGIS by Eric Pimpler, ArcGIS for Desktop Cookbook by Daniela Christiana
Docan, and ArcPy and ArcGIS by Silas Toms.
"I’d first like to thank my wife, Luann, who puts up with my late nights reviewing
books like this. I’d like to thank my current employer," GEO Jobe "GIS Consulting,
as well as past employers like Bruce Harris and Associates, City of Plantation," FL
"and City of Jacksonville, TX for believing in me and letting me learn so much on the
job. Finally, I’d like to thank my creator for putting me where I need to be.
"
Ayodele Adeyemo is a geogeek with over four years experience, and is passionate
about leveraging data and technology to provide solutions to human, social, and
technological problems. He currently works with eHealth Africa in Nigeria with the
Global Health and Informatics department to provide user data and technology to
solve health issues across communities in Africa. He has experience in building and
mentoring geospatial solutions as well as consulting for organizations on how to
deploy sustainable geospatial solutions to support their agencies and projects.
Ayodele has worked as GIS Specialist at eHealth Africa and Founder and Latitudes
Tech Limited. He has worked on the book ArcPy and ArcGIS: Automating ArcGIS
for Desktop and ArcGIS Online with Python.
"I'd like to thank my manager, Dami Sonoiki; my supervisor, Samuel Aiyeoribe; and
my colleagues Samuel Okoroafor and Seun Egbinola."
www.PacktPub.com
For support files and downloads related to your book, please visit www.PacktPub.com.
Did you know that Packt offers eBook versions of every book published, with PDF
and ePub files available? You can upgrade to the eBook version at www.PacktPub.com
and as a print book customer, you are entitled to a discount on the eBook copy. Get
in touch with us at service@packtpub.com for more details.
At www.PacktPub.com, you can also read a collection of free technical articles, sign up
for a range of free newsletters and receive exclusive discounts and offers on Packt
books and eBooks.
https://www.packtpub.com/mapt
Get the most in-demand software skills with Mapt. Mapt gives you full access to all
Packt books and video courses, as well as industry-leading tools to help you plan
your personal development and advance your career.
Why subscribe?
Fully searchable across every book published by Packt
Copy and paste, print, and bookmark content
On demand and accessible via a web browser
Customer Feedback
Thanks for purchasing this Packt book. At Packt, quality is at the heart of our
editorial process. To help us improve, please leave us an honest review on this
book's Amazon page at https://www.amazon.com/dp/1787280527.
If you'd like to join our team of regular reviewers, you can e-mail us at
customerreviews@packtpub.com. We award our regular reviewers with free eBooks and
videos in exchange for their valuable feedback. Help us be relentless in improving
our products!
Table of Contents
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Downloading the example code
Downloading the color images of this book
Errata
Piracy
Questions
1. Introduction to HTML, CSS, and JavaScript
Basic HTML page concepts
DOCTYPE
Primary tags
Validating HTML code
JavaScript fundamentals
Commenting code
Variables
JavaScript is case sensitive
Variable data types
Decision support statements
Looping statements
Functions
Objects
Basic CSS principles
CSS syntax
Inline styling
Internal style sheet
External style sheet
Separating HTML, CSS, and JavaScript
Summary
2. Creating Maps and Adding Layers
The ArcGIS API for JavaScript Sandbox
Basic steps for creating an application with the ArcGIS API for JavaScript
Creating HTML code for the page
Referencing the ArcGIS API for JavaScript
Loading API modules
Making sure the DOM is available
Creating the map
Creating the page content
Styling the page
The entire code
More about the map
Working with map service layers
Using the layer classes
Tiled map service layers
Dynamic map service layers
Adding layers to the map
Setting the visible layers from a map service
Setting a definition expression
Map navigation
Map navigation widgets and toolbars
Map Navigation with the mouse and keyboard
Getting and setting the map extent
Map events
Summary
3. Adding Graphics to the Map
The four parts of a Graphic
Specifying graphic geometry
Symbolizing graphics
Assigning attributes to graphics
Changing graphic attributes in an InfoTemplate
Creating the graphic
Adding graphics to the GraphicsLayer
Multiple GraphicsLayers
Practice time
Summary
4. The Feature Layer
Creating the FeatureLayer
Optional constructor parameters
Defining the display mode
The snapshot mode
The on-demand mode
The selection only mode
The auto mode
Setting a definition expression
Feature selection
Rendering FeatureLayer
Practice time
Summary
5. Using Widgets and Toolbars
Adding toolbars to an application
Steps for creating a toolbar
Defining CSS styles
Creating the buttons
Creating an instance of the Navigation toolbar
User interface widgets
The BasemapGallery widget
Basemap toggle widget
Bookmarks widget
The Print widget
Layer List widget
Time to practice
Search widget
Gauge widget
Measurement widget
The Popup widget
Legend widget
OverviewMap widget
Scalebar widget
Directions
HistogramTimeSlider
HomeButton
LocateButton
TimeSlider
LayerSwipe
The Analysis widgets
Feature editing
FeatureService
The Editing widgets
The Editor widget
TemplatePicker widget
AttributeInspector widget
The AttachmentEditor widget
The Edit toolbar
Summary
6. Performing Spatial and Attribute Queries
Introducing tasks in ArcGIS Server
Overview of attribute and spatial queries
The Query object
Setting query properties
Attribute queries
Spatial queries
Limiting the fields returned
Executing the query with QueryTask
Getting the results of the query
Practice time with spatial queries
Summary
7. Identifying and Finding Features
Using IdentifyTask to access feature attributes
Introducing IdentifyTask
IdentifyParameters
IdentifyTask
IdentifyResult
Practice time - implementing identify functionality
Using FindTask to access feature attributes
FindParameters
FindTask
FindResults
Summary
8. Turning Addresses into Points and Points into Addresses
Introduction to geocoding
Geocoding with a locator service in the ArcGIS API for JavaScript
Input parameter object
Input JSON address object
Input point object
Locator object
The AddressCandidate object
The geocoding process
The reverse geocoding process
Practice time with the locator service
The Search widget
Summary
9. Directions and Routing
Routing task
Practice time with routing
The Directions widget
ClosestFacility Task
ServiceArea task
Summary
10. Geoprocessing Tasks
Models in ArcGIS Server
Using the Geoprocessor task - what you need to know
Understanding the services page for a geoprocessing task
Input parameters
The Geoprocessor task
Executing the task
Synchronous tasks
Asynchronous tasks
Practice time with geoprocessing tasks
Summary
11. Geometry Operations
The Geometry Service
Geometry Service operations
Using the Geometry Service
The Geometry Engine
Practice time with the Geometry Engine
Summary
12. Integration with ArcGIS Online
Adding ArcGIS Online maps to your applications by using a webmap ID
Adding ArcGIS Online maps to your applications with JSON
Practice time with ArcGIS Online
Summary
13. Creating Mobile Applications
Compact build of the API
Setting the viewport scale
Practice time with the compact build
Integrating the geolocation API
Practice time with the geolocation API
Summary
14. Looking Ahead - Version 4 of the ArcGIS API for JavaScript
Steps for creating 2D maps
Accessing layers
New and changed layers
GraphicsLayer
FeatureLayer
MapImageLayer
VectorTileLayer
GroupLayers
SceneLayers
3D mapping and symbology
Scenes
Creating the map
Setting elevation data
Setting the camera
Specifying the environment
Local scenes
3D symbology and rendering
Summary
Preface
ArcGIS Server is the predominant platform for developing GIS applications for the
web. In the past, you could choose from a number of programming languages to
develop web mapping applications with ArcGIS Server, including JavaScript, Flex,
and Silverlight. However, the Flex and Silverlight APIs have now retired, leaving
JavaScript as the preferred language for developing applications on this platform. Its
advantages over other languages include the fact that you can use it to build both
web and mobile applications and that it does not require the installation of a plugin:
everything runs natively in the browser.
This book will teach you how to build web-based GIS applications using the ArcGIS
API for JavaScript. Using a practical hands-on style of learning, you will learn how
to build fully functional applications with ArcGIS Server and, in doing so, develop a
skillset that is in high demand.
You will learn how to create maps and add geographic layers from a variety of
sources, including tiled and dynamic map services. In addition, you'll learn how to
add vector graphics to the map and stream geographic features to the browser using a
feature layer. Most applications also include specific functionality implemented by
ArcGIS Server as tasks. You'll learn how to use the various tasks provided by
ArcGIS Server to perform common GIS operations, including queries, identification
of features, finding features by attribute, geoprocessing tasks, and more. Finally,
you'll learn just how easy it is to develop mobile applications with the ArcGIS API
for JavaScript.
What this book covers
Chapter 1, Introduction to HTML, CSS, and JavaScript, covers the fundamental
HTML, CSS, and JavaScript concepts before getting started with developing GIS
applications with the ArcGIS API for JavaScript.
Chapter 2, Creating Maps and Adding Layers, shows how to create a map and add
layers to the map. You will learn how to create an instance of the Map class, add
layers of data to the map, and display this information on a web page. Map is the
most fundamental class in the API as it provides the canvas for your data layers and
any subsequent activities that occur in your application. However, your map is
useless until you add layers of data. There are several types of data layers that can be
added to a map, including tiled, dynamic, feature, and others. You will learn more
about each of these layer types in this chapter as well.
Chapter 4, The Feature Layer, describes FeatureLayer. This inherits from the
GraphicsLayer, but offers additional capabilities such as the ability to perform queries
and selections. Feature layers are also used for online editing of features. Feature
layers differ from tiled and dynamic map service layers because feature layers bring
geometry information to the client computer to be drawn and stored by the web
browser. Feature layers potentially cut down on round trips to the server. A client
can request the features it needs and perform selections and queries on those features
without having to request more information from the server.
Chapter 5, Using Widgets and Toolbars, covers out-of-the-box widgets that you can
drop into your application for enhanced productivity. These include the basemap
gallery. Bookmark, print, and overview map user interface components. In addition,
the ArcGIS API for JavaScript also includes helper classes for creating toolbars
within your applications, such as navigation and drawing toolbars.
Chapter 6, Performing Spatial and Attribute Queries, covers the ArcGIS Server Query
Task that allows you to perform attribute and spatial queries against data layers in a
map service that have been exposed. You can also combine these query types to
perform a combination attribute and spatial query.
Chapter 7, Identifying and Finding Features, covers two common operations found in
any GIS application: clicking a feature on the map to identify it, or performing a
query to locate features with specific attribute values. In either case, information
about particular features is returned. In this chapter the reader will learn how to use
the IdentifyTask and FindTask objects to obtain information about features.
Chapter 8, Turning Addresses into Points and Points into Addresses, covers the use of
the Locator task to perform geocoding and reverse geocoding. Geocoding is the
process of assigning a coordinate to an address while reverse geocoding assigns an
address to a coordinate.
Chapter 9, Directions and Routing, describes how to access ArcGIS Server network
analysis services to perform analyses on street networks, such as finding the best
route from one address to another, finding the closest school, identifying a service
area around a location, or responding to a set of orders with a fleet of service
vehicles.
Chapter 11, Geometry Operations, describes how to use the ArcGIS Server Geometry
Service, and its client-side counterpart, the Geometry Engine, to execute common
geometric operations such as buffering a feature and reprojecting from one
coordinate system to another.
Chapter 12, Integration with ArcGIS Online, details how you can use the ArcGIS API
for JavaScript to access data and maps created with ArcGIS.com, which is a web site
for working with maps and other types of geographic information. On this site, you
will find applications for building and sharing maps. You will also find useful
basemaps, data, applications, and tools that you can view and use along with
communities you can join. For application developers the really exciting news is that
you can integrate ArcGIS.com content into your custom developed applications using
the ArcGIS API for JavaScript. This chapter shows you how.
Chapter 13, Creating Mobile Applications, describes how to build mobile GIS
applications using the ArcGIS API for JavaScript. ArcGIS Server support is
currently provided for iOS and Android devices. In this chapter, you'll learn about
the compact build of the API that makes web mapping applications possible through
the use of Dojo Mobile.
Appendix, Looking Ahead at Version 4 of the ArcGIS API for JavaScript, gives you a
broad overview of what to expect in version 4 of the API. This is a complete
reworking of the API that is being developed in parallel with version 3.x.
What you need for this book
To complete the activities in this book, you will need access to a web browser--
preferably Google Chrome or Firefox. Each chapter contains practices designed to
supplement the material presented. You will complete these practices using the
ArcGIS API for JavaScript Sandbox to write and test your code. The sandbox can be
found at https://developers.arcgis.com/javascript/3/sandbox/sandbox.html. All the practices
will access publicly available instances of ArcGIS Server, so you will not need to
install ArcGIS Server yourself.
Who this book is for
This book is written for application developers who want to develop web and mobile
GIS applications using ArcGIS Server and the API for JavaScript. It is primarily
oriented toward beginning and intermediate-level GIS developers or to more
traditional application developers who may not have developed GIS applications in
the past but who are now tasked with implementing solutions on this platform. No
prior experience with ArcGIS Server, JavaScript, HTML, or CSS is expected, but it
is certainly helpful.
Conventions
In this book, you will find a number of styles of text that distinguish between
different kinds of information. Here are some examples of these styles, and an
explanation of their meaning.
Code words in text, database table names, folder names, filenames, file extensions,
pathnames, dummy URLs, user input, and Twitter handles are shown as follows:
"We can include other contexts through the use of the include directive."
When we wish to draw your attention to a particular part of a code block, the
relevant lines or items are set in bold:
function computeServiceArea(evt) {
map.graphics.clear();
var pointSymbol = new SimpleMarkerSymbol();
pointSymbol.setOutline = new
SimpleLineSymbol(SimpleLineSymbol.STYLE_SOLID, new Color([255, 0,
0]), 1);
pointSymbol.setSize(14);
pointSymbol.setColor(new Color([0, 255, 0, 0.25]));
}
New terms and important words are shown in bold. Words that you see on the
screen, for example, in menus or dialog boxes, appear in the text like this: "clicking
the Next button moves you to the next screen".
ON THE STAND.
Boss Coggswell was not present in the courtroom when Owen Sheridan’s
came up for trial. Not that he was not interested, nor was it a feeling of
delicacy which kept him away; but he realized that his presence might excite
comment and lend color to the accused man’s assertion that he was the
victim of a conspiracy.
“You’ll be there, of course, Jake,” he said to his subordinate, “and I’ll rely
on you to bring me the news just as soon as a verdict is reached.”
Hines grinned. “Yes, you can bet your boots, boss, that I won’t lose any
time gettin’ here with the glad tidings. I guess you’re right in decidin’ not to
be present. It’d look pretty raw for you to go to court. No use takin’ any
unnecessary chances.”
“It isn’t that, Jake,” replied Coggswell deprecatingly. “It isn’t that, my
boy. I have no reason to be afraid. When one’s conscience is clear, one
doesn’t have to worry about what people might think. But the fact is, Jake, I
have a tender heart—you ought to know that by this time—and I could not
bear to be present to witness that poor man’s sufferings.”
Hines grinned again, and looked at his chief admiringly. “All right, boss,”
he said. “You wait here, and I’ll bring you the news as soon as the jury
brings in a verdict.”
Hines had not the slightest doubt as to what that verdict was going to be.
He felt confident that the evidence against Sheridan was so crushingly
conclusive that the jury wouldn’t hesitate more than three minutes before
deciding that he was guilty.
If he had any apprehensions on the subject they would have been
dispelled by what he had seen that morning. He had encountered Owen on
the street, walking arm in arm with Judge Lawrence, and if ever two men
looked worried, the accused carrier and his counsel did.
“Poor gink!” said Mr. Hines to himself. “I guess he’s sorry by this time
that he didn’t take that money and beat it while he had the chance. Wonder
how he’ll look in a suit of stripes and with his hair close cropped.”
There was a broad grin upon his face as he entered the courtroom and
seated himself on one of the rear benches. Catching the presiding judge’s eye
leveled sternly upon him, and suddenly realizing that his levity was hardly
decorous, he hurriedly assumed a serious mien.
He found it difficult to refrain from chuckling as the case progressed,
however, for as witness after witness took the stand to testify against
Sheridan, and the strong chain of circumstantial evidence was presented link
by link to the jury, the prisoner’s counsel, eminent lawyer though he was,
seemed to become more and more baffled and depressed.
Ex-Judge Lawrence was famed for his skill as a cross-examiner. This was
the only point on which Coggswell and Hines had been apprehensive. They
feared that there was a possibility of some of the witnesses going to pieces
under the vigorous, searching questioning of counsel for the defense.
But, to Hines’ great relief, the ex-judge, in this case, gave no evidence of
being an expert at the art of cross-examination. He did not succeed in
“rattling” a single witness; in fact, he handled them all so mildly and
apparently with so little spirit that Hines muttered to himself
contemptuously:
“Huh! Him a great lawyer! Guess he’s been very much overrated. Why, I
know a whole lot of ordinary police-court counselors that could give him
cards and spades.”
William Warren, wholesale liquor dealer, was the first witness to take the
stand. He testified that he had sent his good friend Michael Harrington, a
saloon keeper, a gold watch by registered mail. He had placed the watch in
the package in the presence of two witnesses, who had also been with him
when he handed in the package at the registry window of a downtown post
office.
Judge Lawrence asked this witness but four questions in cross-
examination:
“Are you acquainted with Samuel J. Coggswell, Mr. Warren?”
“I never had the pleasure of meeting the gentleman.”
“Are you acquainted with a young man named Jake Hines—a prominent
member of the Samuel J. Coggswell Association? Before answering this
question, Mr. Warren, let me remind you that you are under oath.”
“It ain’t necessary to remind me of no such thing,” retorted the witness
indignantly. “Yes, I know Mr. Hines. I am proud to say that he is a good
friend of mine.” He glanced across at the spectators’ benches, and Jake
smiled at him an acknowledgment of this compliment.
They had expected this question, knowing that it was the accused
carrier’s hope to be able to make the jury believe that he was the victim of a
conspiracy. They had decided that Warren should tell the truth, and admit
that he knew Hines. To have denied the fact would have been dangerous.
There was no telling that the defense did not have witnesses at hand ready to
take the stand and swear that they knew of the friendship.
“Yes, I know Jake Hines,” the witness repeated, almost belligerently; “but
that don’t——”
“Did you meet him, or in any way have communication with him, on the
day you sent the registered package?” interrupted counsel for the defense.
“Yes,” replied the witness unhesitatingly. “Mr. Hines came to my office
that day. He was in the neighborhood, and he dropped in to make a social
call.”
This question, too, had been expected. Warren had made up his mind to
answer it truthfully, for it was quite possible that Hines had been seen
entering his office.
“And at that meeting between Hines and yourself, Mr. Warren,” counsel
for the defense went on, “did either of you say anything about this watch
which you were going to send to Harrington?”
“Not a word,” emphatically replied the witness, who was prepared for
this question also. “Not a single word, sir. We never spoke about the watch at
all. Hines didn’t know that I was going to send it.”
As the conversation which had taken place that day between Hines and
himself had been behind a closed door, with no chance of anybody having
overheard them, Warren felt that he was quite safe in making this denial.
“That’s all,” said the cross-examiner, with an audible sigh, and the
witness, as he stepped down, exchanged a triumphant glance with Jake
Hines.
The next witnesses were the men who had been in Warren’s office when
he placed the watch in the package, and who had accompanied him to the
post office and seen the package handed in at the registry window. Both of
them were reputable business men, and Owen’s lawyer made no attempt to
impeach their testimony. In cross-examination he let each of them off with
but a single question, which was the same in each case:
“On the way to the post office, where did Mr. Warren carry the package
in which you had seen him place the watch?”
“In the left-hand pocket of his coat,” the two witnesses both answered.
Michael Harrington, the saloon keeper, testified that the package
contained no watch when he opened it; which statement was corroborated by
several witnesses who had been present in the saloon when the accused
postman brought in the registered package.
Harrington made a good impression on the stand. He denied that he knew
Jake Hines, except by reputation, and volunteered the information that he
had “no use for Sam Coggswell, or any of his bunch,” being himself of the
opposite political party. Hines could not help grinning at Judge Lawrence’s
evident discomfiture.
The pawnbroker’s clerk, an exceedingly nervous young man, who took
the stand and swore that Owen had pledged the watch for forty dollars, was
cross-examined at greater length than any of the previous witnesses.
Counsel for the defense, however, could not shake his testimony. He
admitted that he was acquainted with Jake Hines, but denied that the latter
had been in the pawnshop that day, or had held any conversation with him
regarding the watch. Another audible sigh came from Judge Lawrence as
this witness left the stand.
The two post-office inspectors testified to having found the pawn ticket in
Owen’s trunk, and a half dozen of the employees of the Branch X Y took the
stand and reluctantly stated that Carrier Sheridan had tried to borrow thirty
dollars from them that day.
Owen’s counsel did not attempt to cross-examine any of these witnesses.
As the last of them left the stand and the prosecutor announced that this
closed the government’s case, Jake Hines leaned back in his seat and smiled
expansively.
“Let ’em beat that if they can,” he muttered confidently. “I can see from
the looks of the jury that they’ve made up their minds already.”
TO BE CONTINUED.
HE WANTED TO KNOW.
It was customary with the French marshal, Bassompierre, when any one
of his soldiers were brought before him for heinous offenses, to say to him:
“By heavens, brother, you or I will certainly be hanged!” which was a
sufficient indication of their fate.
A spy, being discovered in his camp, was addressed in these terms; and
next day, as the provost was carrying the culprit to the gallows, he pressed
earnestly for leave to speak with the marshal, alleging that he had something
of importance to communicate.
The marshal, being made acquainted with his request, exclaimed, in his
customary rough and hasty manner:
“It is the way of these rascals; when ordered for execution, they pretend
some frivolous story, merely to reprieve themselves for a few moments.
However, bring the dog hither.”
When the culprit made his appearance, the marshal asked him what he
had to say.
“Why, my lord,” replied he, “when I first had the honor of your
conversation, you were obliging enough to say that either you or I should be
hanged; now I come to know whether it is your pleasure to be so; because, if
you won’t I must, that’s all!”
Needless to say that the rascal was pardoned.
A Kangaroo Cat.
Mrs. Pussy Cat, who lives at the home of Thomas Evans, in Newport,
Ky., is greatly worried over one of her offspring. No other member of Mrs.
Cat’s numerous family is like the newcomer. This kitten has only two feet
and walks or hops about like a kangaroo. There are only tufts of fur where
the front legs ought to be. In hopping about, the kitten balances itself with its
tail, which it uses as a sort of rudder.
Transcontinental Pedestrians.
In competition with Edward Payson Weston, the veteran walker, and to
win a fifteen-hundred-dollar prize offered by the Panama-Pacific Exposition,
Mr. and Mrs. Tom Jackley are walking across the country, with the
requirement that they “make” the capital of each of the forty-eight States
within three years. They left San Francisco September 12, 1912, and seem
sure of winning, as they are now in the East, and have four months to reach
Augusta, Maine. They are forbidden to ride in any way, and may obtain
money only by selling pictures of themselves.
Our website is not just a platform for buying books, but a bridge
connecting readers to the timeless values of culture and wisdom. With
an elegant, user-friendly interface and an intelligent search system,
we are committed to providing a quick and convenient shopping
experience. Additionally, our special promotions and home delivery
services ensure that you save time and fully enjoy the joy of reading.
ebooknice.com