Giter VIP home page Giter VIP logo

storymap-tour's Introduction

Story Map Tour

The Story Map Tour app is ideal when you want to present a linear, place-based narrative featuring images or videos. Each "story point" in the narrative is geo-located. Users have the option of clicking sequentially through the narrative, or they can browse by interacting with the map or using the thumbnail carousel.

App

View it live | Map Tour page on Esri Story Maps website | Download

Latest release is version 2.17.0, if you want to be informed of new releases, we recommend you to watch these repository (see GitHub help). See the release page for release notes.

For more infomation about using and customizing Esri's Storytelling Apps follow the Story Maps Developers' Corner.

The template produces an attractive, easy-to-use web application that lets you present a small set of places on a map in a numbered sequence through which users can browse. The template is designed to be used in any web browser on any device, including smartphones and tablets. If you are not familiar with ArcGIS Online or StoryMaps concepts, that document describe general workflows and best practices.

This help will guide you through the steps for publishing Map Tours like:

Help content:

Introduction

The template is available in two versions:

  • An hosted version in ArcGIS Online that provide hosting and an interactive builder tool to all ArcGIS Online account levels including the free Public account
  • A downloadable version that you can deploy on your web server and enhance to fit your needs

You don't have to download the template to use it! You can create and deploy a Map Tour using the hosted version of this template that is built into ArcGIS.com. This is available to all ArcGIS Online account levels including the free Public account. We host the template for you so you don't have to download the template and put it on your server or website. There's an interactive builder too that makes it easy to author your Map Tour. Using the hosted template is the easiest and fastest way to create a Map Tour.

The main element to consider when building a Map Tour is to choose where your pictures will be stored. A Map Tour can use pictures stored on major photo sharing services, on any web server or in Feature Services. Applications produced by both versions provides the same capabilities, only the authoring is different.

The hosted version

To use the hosted Map Tour template, you start by making a web map and publishing it with the Map Tour template. Your webmap doesn't need to contains any layer. In the Share dialog available from ArcGIS Online web map viewer, choose the 'Make a Web Application' option and then choose the Map Tour template from the gallery of templates that appears, and continue with the steps that you see. When you configure the application, the interactive builder will open automatically. This article provides step-by-step instructions on how to create a story.

The interactive builder gives you two options for handling the images in your Map Tour:

  • You can use photos that are already online, such as images stored in a photo sharing site like Flickr or images stored on your own website. These images will be referenced in your Map Tour via their URLs
  • You can also upload photos from your computer directly into your Map Tour. This upload option requires that you have an ArcGIS for Organizations subscription account and you have Publisher or Administrator privileges (because it automatically creates a hosted feature service for you in which your photos are stored as attachments)

Using the hosed version will allow you to benefits from ArcGIS Online periodic updates that improve performance and fix issues without introducting breaking changes.

How to upgrade from a self hosted version to the hosted template

If you've previously used the map tour template and hosted it from your own servers, you can update to the ArcGIS Online hosted tour by opening your existing web map, choosing Share, then Make a Web Application, and choosing Publish with the new Map Tour template.

Note that if your actual tour point layer doesn’t contains the optional attribute that define the point marker color, the interactive builder will require you to choose the attribute that define the color. So we recommend that you drop the layer from the webmap and import your original CSV using the assistant that will create the color field for you. Otherwise you can also select any attribute like the description field even if it doesn’t contains any valid color value but be aware that if you change the color using the interactive builder that value will be persisted and you will lose the point description.

The downloadable version

Although the hosted Map Tour template provides several customization options that are accessible through the Settings button in map tour builder app, you may want to perform additional customizations or add your own code to the application. In this case, you should use the downloadable version.

By downloading the template and putting it on your own web server or website, you can make unlimited customizations and changes to the template. With the download, the URL of your map tour will be start with your own web domain instead of being on the ArcGIS cloud system.

The downloadable version can be configured through a web map or a web mapping application identifier. The main use cases are:

  • You build your map tour using the interactive builder in the hosted environment and configure the template with the web mapping application identifier. All your configuration will be there
  • You build your web map outside of the interactive builder and configure the template with the web map identifier. You will have to read the documentation to learn how to configure the template

Note that the interactive builder is available in the downloadable version but with some technical restrictions on browsers like Internet Explorer before version 10.

How to deploy a Map Tour

To use the downloadable version, download the User Download archive, it contains the following files:

File Contains
app/ Optimized source code and configuration files (maptour-config.js)
resources/ Resources (markers, icons, translation)
samples/ Sample data layer to create your webmap
index.html Application html file (to be edited with web map id)
license.txt Application license

Map Tour rely on a web map (or a web mapping application) identifier to get the data.

There is multiple ways to build a web map for Map Tour:

  • Create a blank webmap using ArcGIS Online, publish a Map Tour and use the interactive builder to create your data source. This will allow you to import photos from Flickr, Facebook, Picasa, create a Feature Service hosted in ArcGIS Online or load data from a CSV
  • Use an existing Feature Service, see the chapter below
  • Build a CSV and add it as a web map layer using ArcGIS Online web map viewer. That is not the recommended way to proceed anymore. This ArcWatch article provides step-by-step instructions

For quick start, there is two typical ways of configuring a Map Tour:

  • You build your map tour using the interactive builder in the hosted environment and configure the template with the web mapping application identifier. All the settings you have defined with the interactive builder will be applied and you will have minimal configuration to perform.
  • You build your web map outside of the interactive builder and configure the template with the web map identifier. You will have to read the documentation to learn how to configure the template.

To build a Map Tour using the interactive viewer:

  • Open ArcGIS Online web map viewer
  • Create a web map that fits your need (basemap, eventual additional context layers like the path of your tour, etc.)
  • Save the web map
  • In the Share dialog, choose the 'Make a Web Application' option and then choose the Map Tour template from the gallery of templates that appears, and continue with the steps that you see.
  • Open the application item and the interactive builder will open automatically.
  • Follow the steps to build your Map Tour
  • Visit the settings to customize the look and feel
  • Save and share the web application publicly
  • Open index.html with a text file editor
  • Locate the configuration section at the beginning of the file
  • Edit the line appid:"" to include your application id between the quotes (the application id is the string emphasized in this hosted Map Tour URL apps/MapTour/index.html?appid=12348616c3984f91bc3fdc517e119999&webmap=1234fdc2c21847c7b5b13f68c5d9999)
  • Optionally remove samples folder
  • Copy files to your web server root or in a specific folder

If you prefer to build your webmap without the interactive builder:

  • Open ArcGIS Online web map viewer
  • Create a web map that fits your need (basemap, eventual additional context layers like the path of your tour, etc.)
  • Import your data in the webmap
  • Center the web map to the initial extent you want for the tour
  • Save and share the web map publicly
  • Open index.html with a text file editor
  • Locate the configuration section at the beginning of the file
  • Edit the line webmap:"" to include your web map id between the quotes (the webmap id is the string emphasized in this hosted Map Tour URL apps/MapTour/index.html?appid=12348616c3984f91bc3fdc517e119999&webmap=1234fdc2c21847c7b5b13f68c5d9999)
  • Optionally remove samples folder
  • Copy files to your web server root or in a specific folder

If you are using Portal for ArcGIS, please follow the instructions at the end of app/maptour-config.js to configure the application. Optionally you can also configure the application to use the ArcGIS API for JavaScript included on your Portal by replacing in index.html the 4 urls containing //js.arcgis.com/3.14/ with the following //webadaptor.domain.com/arcgis/jsapi/jsapi/ where arcgis is the name of your Web Adaptor.

It is crucial for the application performance that your tour points have well-defined thumbnail images. Thumbnail images are used on the bottom carousel and on mobile device. If you choose to host the pictures yourself, you will have to manually create thumbnails of your pictures. Using the full resolution pictures for the thumbnail will result in poor performance. For that reason we strongly recommend that you use an online photo sharing services or a Feature Service in conjunction with the interactive builder that will do that for you. The recommended thumbnail size is 140x93px.

Data storage options

In addition to the workflow supported by the interactive builder, you can use any point Feature Service, Map Service, Shapefile or CSV as a Map Tour data source as long as your layer follow the expected requirements detailed below.

To use your layer, simply add it into your webmap through ArcGIS Online web map viewer. See below for requirements depending on your layer type and consult FAQ to learn more about which web map layer will be used as a Map Tour data source.

Using a CSV

The interactive builder support loading a CSV and will give you detailed information if your CSV doesn't match the requirements. To create a Map Tour from a CSV we recommend that you create a blank webmap using ArcGIS Online, publish a Map Tour and use the interactive builder to import the CSV. You can still drag and drop a CSV into the webmap but this is not the recommanded way anymore.

A sample CSV can be downloaded from the interactive builder Advanced options page or here (use right click + "Save as" if the file doesn't download).

Using an existing Feature Service, Map Service or Shapefile

The application will try to find the expected attributes using a configurable list of possible field name. By default, the valid fields names are:

Fields Valid fields names (case insensitive)
Name (mandatory) name, title, name-short, name-long
Description (mandatory) caption, description, snippet, comment
Picture (optional for Feature service with attachments) pic_url, pic, picture, url
Thumbnail (optional for Feature service with attachments) thumb_url, thumb, thumbnail
Color (optional for viewer, mandatory for builder) icon_color, color, style
Is video (optional) is_video, video, isVideo

If that doesn't match your data, you can change the possible fields name through the configuration file app/maptour-config.js.

The picture and Thumbnail fields are mandatory for Feature Service without attachments and optional but strongly recommended for Feature service with attachments (this save one request per feature to get the URL of the picture and thumbnail).

When using a Feature Service that store the pictures as attachments, only the features with two attachments will be used (first attachments defines the main picture, second defines the thumbnail).

The color field is mandatory for the interactive builder. This means that if you are looking to reuse a web map containing a Map Tour layer that doesn't include a color field, the interactive builder will ask you to choose which field has to be used for defining the color. You can select any field and it will default to the default color (red) if the record doesn't contains valid values. But if you choose to use a field used for another Map Tour information, you should not use the color selection as it would overwrite that information by the new color you define. If possible, it is more safe to add that extra field to your data.

Importing pictures from online photo sharing services

Using the interactive builder, you can create a webmap to be reused in the downloadable. That webmap will use photos that are already online, such as images stored in a photo sharing site like Flickr or images stored on your own website. Images will be referenced in your web map via their URLs and a feature collection. This mean that pictures are not stored in ArcGIS Online. If hosted pictures can't be accessed, they won't be available in the Map Tour and you'll see a 'Picture not available' image. Depending on your photo service provider, the Map Tour may not import the name, description and location of the pictures. Those attributes are stored in the web map and any edits to the online services won't be reflected in the Map Tour.

FAQ

Is the template compatible with previous version?

Yes, web map designed for the previous version should continue to work without any modification. Customization and enhancement of the application will require code changes, most of them should be easy to translate into the new application.

Can I deploy Map Tour on Portal for ArcGIS?

Yes, Map Tour is included in Portal for ArcGIS 10.2.1. Note that for technical reason, the Feature Service creation isn't yet available from the interactive builder. If you want to use a Feature Service, please consult this section.

If you use an older version of Portal, you can download and deploy the template in the following folder ArcGIS\Portal\webapps\arcgis#home\webmap\templates\MapTour. This folder may already contain a non-functional version of the template. If this is the case, remove the folder's content before copying the new files. Then refer your Portal documentation for instructions on publishing a new web application item and adding it to the web application gallery. If you choose to deploy the template in any other folder, some configuration will be required (see index.html configuration). Also note that the web application gallery preview feature won't be functional and give a 404 error.

Please note that the most recent version of Map Tour may not be compatible with older version of Portal for ArcGIS. If you experience issues, please try to deploy older version of Map Tour like 2.2.3.

Can the template be used offline?

Yes, by using Portal for ArcGIS. When deployed on a Portal for ArcGIS instance, the Map Tour doesn't require any external service to function. But by default the template will still include the header social buttons and template publishers are able to import pictures from the some online pictures hosting services. These options can be disabled individually through the configuration file app/maptour-config.js.

How to use videos?

The videos workflow has been simplified with version 2.2. If your Tour has been created with version 2.1 (before December 11, 2013), please see the dedicated section below.

When you are using the interactive builder to initialize your Tour from medias already hosted (all initialization options except ArcGIS Online), the data layer include an attribute that specify if the main media is an image or a video. The builder automatically populates that field. If you are editing yourdata outside of the builder you have to take care of editing that attribute (use the string true or false). If you choose to host your data in ArcGIS Online, the builder doesn't support adding video but this is possible. If you are initializing the Tour from a CSV, make sure to edit the is_video field that is present in the CSV.

Another option instead of using a dedicated attribute to specify if the media is a picture or a video is to add a specific qualifier in the URL. When the is_video attribute isn't present or is set to false, all media are considered images except if the url contains isVideo (this can be achived using &isVideo, #isVideo or a folder).

The Map Tour template doesn't include a video player, so you have to use the external video player provided by your favorite video hosting service (find the option to embed the video and copy the URL present in the given code). If you want to host the video yourself, you can create an HTML page that contains a video player like Video.js.

####Using videos in Tour created with version 2.1

Map Tour created with version 2.1 continue to have the 2.1 behavior even when using the latest version of the interactive builder. In that case, the supported picture format are: .jpg, .jpeg, .png, .gif and .bmp. If your media doesn’t end with one of these extension, the Map Tour will consider the media to be a video, except when using a feature service (see below). You can force a media that doesn't end with one of the supported extension to be treated as image using the URL qualifier #isImage that you have to add at the end of the URL.

Can I integrate video when using Feature Service with attachments

The interactive builder doesn't provide a dialog to include video when using feature services with attachments, but it is possible to do so by editing your data outside of the interactive builder. In the arcgis.com map viewer, if you modify the picture fields to point to an external video and add a special parameter at the end of your URL (#isVideo), your media will be considered to be a video.

Note that you still need to have two valid pictures attachments or the point won’t be used. It isn't possible to use videos when using feature service attachments without the picture and thumbnail fields.

Can I use the builder with the downloadable?

Yes, when the template is configured with an application ID, adding the URL parameter 'edit' will open the interactive builder. You will be prompted for user authentication. Note that some technical restrictions on browsers like Internet Explorer older than version 10 may apply.

Can I use more than 99 points?

Yes, that option is available with the download version. You would have to edit app/maptour-config.js, change the MAX_ALLOWED_POINTS property to the desired value and add the new icons that will be used to number your points on the map. Icons are located in the resources/markers/ folder. You only need to add new icons for the color you will use.

An extended marker set is available for download.

There is no technical limitation to the maximum number of points per tour but we recommend to keep your tour short and sweet. The number of points of the tour can impact significantly performance of the application on mobile device and older browser.

Can I customize the map icons?

Yes, that option is available with the download version. Icons are located in the resources/markers/ folder. You only need to add new icons for the color you will use.

An extended marker set is available for download.

What are the configuration settings?

Configuration happens in three files:

  • index.html
  • Web map id or web mapping application id
  • Application layout
  • Use the first data record as an introduction slide
  • Header title/subtitle (webmap title/subtitle are used by default)
  • Force a webmap layer to be used as the tour data source
  • Optional zoom level to be applied for the story points following introduction
  • app/maptour-config.js
  • Embed mode (remove the header)
  • Header, picture panel and carousel colors
  • Header logo image, link and social button configuration
  • Map popup colors
  • Locate button
  • Map markers icons sets
  • Data fields election rules
  • Data import from online service
  • Portal and proxy URLs
  • Bing map key
  • Geometry and geocode services URLs
  • Proxy rules

Which web map layer will be used?

The application will use the web map upper visible point feature layer.

Eligible feature layer are:

  • Feature service with two attachments per feature (main picture as the first attachment, thumbnail as the second)
  • Feature layer without attachments
  • Web map embedded data: CSV, Shapefile
  • Map service: specific layer only (e.g. MyService/MapServer/0)

If that doesn't match your web map structure, look for the configuration property named sourceLayerTitle in index.html and set it to the title of your web map layer.

Tips

Supported browsers

The Map Tour viewer is supported on IE8+. The interactive builder is supported on IE9+. We actively test it in all major browsers but if you experience some difficulties, we recommend that you use Chrome.

If you experience some difficulties, please let us know. In the meantime, by building your Map Tour using the CSV template you will minimize your interaction with the builder interface.

Pictures

We recommend landscape orientation photos instead of portrait. Portrait orientation images can be used but on smaller screens like the iPad, a lot of the photo may be obscured by the caption, because text takes up more space when it is displayed in a tall area compared to a wide area. Although images of different sizes, shapes and orientation can be used in one Map Tour, we recommend using the exact same size and shape for all the images. In this way, the user won't be distracted by different sized images as they follow the tour.

The recommended picture size is 1000x750px. The recommended thumbnail size is 250x166px. [More info] (http://storymaps.arcgis.com/en/faq/#question30)

Formatting your caption text using HTML tags

The header and picture title/caption can include HTML tags to define formatting and links.

For example, this code adds a yellow link:

   <a href="http://storymaps.esri.com/" style="color:yellow" target="_blank">StoryMaps Website</a>

When your data are stored in a Feature Service, the authorized HTML tags may be restricted to those listed in the following document.

Supporting Layers

You can add additional supporting layers into the map. These layers will appear in your Map Tour to provide orientation, background, and any other geographic features you want the map to show in addition to the Map Tour points, such as a study area, a walking or driving route linking your tour points, etc. The template displays these additional supporting layers using the symbology you specify in the web map, the popup aren't available.

Keep your tour short and sweet

There's a limit of 99 points per tour. Most Map Tours will of course be significantly shorter than that. Don't expect your audience to want to step through too many tour points. You might find your subject fascinating, but don't assume they will too!

Embed Map Tour in a website

If you want to embed the template in another website through an iframe, adding the optional parameter "&embed" at the end of the URL will remove the header. That mode can also be set in the downloadable version through the configuration file.

Exemple of iframe code that remove the header:

   <iframe width="100%" height="500" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://esrimedia.maps.arcgis.com/apps/MapTour/index.html?appid=24e56b98a2644beb862db5d55c8ea355&embed"></iframe>
   <br />
   <a href="http://esrimedia.maps.arcgis.com/apps/MapTour/index.html?appid=24e56b98a2644beb862db5d55c8ea355" target="_blank">View Larger Map</a>

Starting the Map Tour on a specific point

It is possible to open the Map Tour on a specific point and not on the first one by using the URL parameter index (from index=1 to index={number of point}).

Customize the look and feel

Most of the look and feel customization can be done using the user download and including the css/html override directly into index.html. If you want to change the behavior of one functionality or want to add new one, you will need to read the developer guide below.

The easiest way to find the id or path to the DOM element that you want to customize is to use your browser developer tool, read documentation for Chrome, Safari, Firefox.

Here are some customization that can achieved through a style tag (look for /* CUSTOM CSS RULES */ in index.html):

  ...
  <body class="claro">
     <style>
        /* CUSTOM CSS RULES */
		#element {
           /* changes */
        }
     </style>
  <div id="header">
  ...

Use an image as the background of the desktop header

  #headerDesktop {
     background: url('resources/my_background.jpg');
  }

To remove the bottom border:

  #header {
     background: none !important;
  }

Customizing the links in the top right of the header

The button can now be disabled through app/maptour-config.js file and many other property are available.

To hide the text, empty the HEADER_LINK_TEXT property.

To display multiple line text, empty the HEADER_LINK_URL and configure HEADER_LINK_TEXT with html markup like

  <a href='http://myorganization.com' target='_blank'>My organization</a><br /><a href='http://myorganization.com/myproject' target='_blank'>My project</a>

Customizing the header logo

The logo image can be configured through maptour-config.js file. To hide the logo, empty the HEADER_LOGO_URL property.

The logo dimension is constrained to 250x50px. To use more horizontal or vertical space you need to remove this restriction using:

  #headerDesktop .logo img {
     max-width: none;
     max-height: 90px;
  }

You can save 10 more px by changing the top margin of the logo:

  #headerDesktop .rightArea {
     padding-top: 15px;
  }

  #headerDesktop .logo img {
     max-width: none;
     max-height: 100px;
  }

Customize the Map background color

This is useful if you use a custom basemap that don't cover the whole world.

  #mapPanel {
	background-color: #1F1F1F !important;
  }

Developer guide

This developer guide is intended to developer that wants to modify behavior or add new functionalities to the Map Tour application. If you only need to customize look and feel of the Map Tour, you should be able to do so using the User download. It requires basic knowledge of HTML, Javascript and CSS languages.

Developer extension events

The template fire some events to allow customization with lose integration. This mean that you may not need to understand the internal of the application to extend it.

Three events are available (application ready, before/after picture change):

	require(["dojo/topic"], function(topic) {
		// The application is ready
		topic.subscribe("maptour-ready", function(){
			console.log("maptour-ready");
		});

		// Before loading the new point picture/video
		topic.subscribe("maptour-point-change-before", function(oldIndex, newIndex){
			console.log("maptour-point-change-before", oldIndex, newIndex);
		});

		// After the new point is displayed
		topic.subscribe("maptour-point-change-after", function(newIndex){
			console.log("maptour-point-change-after", newIndex, app.data.getCurrentGraphic());
		});
	});

Developer archive

Download and unzip the Developer download or clone the repo.

File Contains
MapTour/ Map Tour source folder
MapTour/src/ The application source code
MapTour/deploy/ The ready to be deployed Map Tour application
samples/ Sample data layer to create your webmap
Readme.md This document
map-tour-storytelling-template-js.png The application screenshot
license.txt The application license

Environment setup

To build a production version of the application from the source code, you first need to install Node.js.

Then initialize the environment by running the following commands in the MapTour folder:

  • npm install
  • npm install –g grunt-cli

This will create a new node-modules folder in your project root with all tools to build the project. If you have trouble running the second command, see this documentation on how to install grunt-cli locally.

How to use the application from the source code

  • Make accessible the src folder to your web server
  • If using a Portal for ArcGIS instance configure the sharing url app/maptour-config.js (last properties)
  • If you are not using a modern browser you have to set-up a proxy on your development computer and configure the url in app/maptour-config.js (you can use a relative path)
  • Use or use the URL parameters webmap and appid to specify the item to be loaded (all parameters from index.html are ignored in development mode)

How to build application from the source code

  • Open a terminal and navigate to the MapTour folder
  • Run the following command: grunt

The deploy folder now contains the built application that you can deploy to your web server.

Issues building the application

The build script perform code validation through JSHint, you can disable that by editing Gruntfile.js and look for the following comments /* Comment out to disable code linting */.

Design

Map Tour relies on AMD and Dojo loader AMD for application structure.

The application is structured as this:

Path Contains
app/ Package structured Javascript and CSS source code
app/maptour-config.js Configuration file (loaded at execution time)
app/storymaps/builder/ Builder modules common with other storymaps templates (main module is Builder.js)
app/storymaps/core/ Core modules common with other storymaps templates (main module is Core.js)
app/storymaps/maptour/builder/ UI components of the interactive builder (main module is BuilderView.js)
app/storymaps/maptour/core/ Core modules (main module is MainView.js)
app/storymaps/maptour/ui/ UI components of the viewer grouped by target device
app/storymaps/maptour/ui/Responsive.css CSS Media queries rules
app/storymaps/maptour/BuildConfigBuilder.js Require.js build configuration file for the interactive builder
app/storymaps/maptour/BuildConfigViewer.js Require.js build configuration file for the viewer
app/storymaps/ui/ UI components common with other storymaps templates
app/storymaps/utils/ Utility modules common with other storymaps templates
lib/ External dependencies
resources/nls/ Externalized text strings of the application
resources/markers/ The 4 colors set of map marker
resources/icons/ Icons

The main dependencies are:

Feedback

We would love to hear from you!

Issues

Find a bug or want to request a new feature? Please let us know by submitting an issue.

Contributing

Esri welcomes contributions from anyone and everyone. Please see our guidelines for contributing

Licensing

Copyright 2013-2017 Esri

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

A copy of the license is available in the repository's license.txt file.

storymap-tour's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

storymap-tour's Issues

Ability to export data to csv

One of our customers asked about the ability to export the data they created in the Map tour, to save it for future use, or in case the data is lost.
So the ability to export to CSV would be nice.
They have used the option to add images by supplying a URL to the image and thumbnail, and therefore, no feature layer is created in "My content" on ArcGIS Online (at least not what we can see).

Template/Hosted version not displaying properly in chrome and IE

I edited the custom template and tested in mozilla. Everything looks great! However when I tested in chrome and IE8 the layout is shifted and appears to be referring to the "mobile css". Any ideas?
Here is a link to the live site, note the images may not be available as of yet:
http://mapamherstburg.ca/walkingtour/index.html

I opened up a topic on the ESRI forum as well:

http://forums.arcgis.com/threads/113942-Story-map-displays-fine-in-FireFox-but-not-in-Chrome-or-IE?p=398838&posted=1#post398838

chrome
ie
mozilla

Question - pan map to point?

Is there a configuration in the map tour to have the map center on each point as you cycle through them? Our users are finding it strange that if a point is just barely in the map frame then the map doesn't pan to it. If not, please make this an enhancement request.

HTML tags in 'name' field cause thumbnails to disappear.

Hey Map Tour folks,

When using a CSV file that contains several image references in HTML, the thumbnails stop showing up in MapTour. Here is an example: http://ess.maps.arcgis.com/home/item.html?id=92319df9835541e29b290ced1da51112

However, if I change the name field to remove all HTML tags, all the thumbnails come through (except for a couple unavailable on Flickr): http://ess.maps.arcgis.com/home/item.html?id=8233d94943334d7db60422bc94ee365a

I found in the help that, "Formatting your caption text using HTML tags
The header and picture title/caption can include HTML tags to define formatting and links."

So my guess is that all HTML tags are supported as long as the browser supports them? Would you call this specific behavior a bug or is there a better workaround?

Let me know what you think, I am working on this incident in Support Services, you can contact me at [email protected]. Thanks!

Can't use mailto in Header configurable links

Reported on GeoNet https://geonet.esri.com/thread/104716?sr=stream&ru=12343

Until the issue is resolved, the workaround is to use the downloadable version and add this custom code in index.html (a good spot is at the end of the file, right after Core.init(new MainView());).

require(["dojo/topic"], function(topic) {
  // The application is ready
  topic.subscribe("maptour-ready", function(){
    $("#header .msLink a").attr("href", "mailto:[email protected]").attr("target", "");
  });
});

Download extra numbers marker symbol sets is not correct

I have downloaded the extra markers (https://raw.github.com/Esri/map-tour-storytelling-template-js/master/misc/Numbered_marker_symbol_sets.zip), and found two errors.

The red set of markers has an extra 'r' in the name, my downloaded map tour template didn't have that (I have 'NumberIcon1.png', the new set has 'NumberIconr1.png'. I had to adjust that in app/maptour-config.js: iconPath: 'resources/markers/red/NumberIconr',

Furthermore, the file 'NumberIconr2.png' has number 3 instead of 2.

Kind regards,

Irene van Winkel

Use Point layer data in more than one Tab

This is more of a question than an issue.
I have added two layers to my Web Map to use as Tabs in my Storytelling app. One layer has Public Art locations. The other tab is called Cultural Corridor which contains venues. The venues are inside a polygon layer called Cultural Corridor. I basically want to know if the following is possible. How do I get Public Art locations into the Cultural Corridor tab that are inside the Cultural Corridor. Thus the Cultural Corridor tab will have Venues and Public Art locations (preferably with different colours to differentiate).
Cheers,
Cameron

Adding video from vimeo only works if the id for the video is exactly 8 digits long.

In AddPopup.js on line 868, I find the following line in the function getVimeoThumbnail(url):
var test = /vimeo.com/([0-9]{8})/.exec(url);

A call is then made to the vimeo api using test (line 875):
url: '//vimeo.com/api/v2/video/' + test[1] + '.json',

The problem is, vimeo video ids can be less than 8 digits or greater. If the id is less than 8, the method fails to find a video thumbnail to use. If the id is greater than 8 digits, it grabs just the first 8 digits and displays the wrong thumbnail (and wrong video!).

I think a simple fix for line 868 is:
var test = /vimeo.com/([0-9]+$)/.exec(url);

but you can find alternate solutions discussed here:
http://stackoverflow.com/questions/2916544/parsing-a-vimeo-id-using-javascript

Even more important than the thumbnail is line 896 in function getVimeoEmbed(url):
var test = /vimeo.com/([0-9]{8})/.exec(url);

This should also be changed to using +$ or some other approach.

Hopefully this helps!

Carousel thumbnail change number-red

Hello, I am trying to create a "Top 10" story map using the map tour template. I would like to start the numbering of photos from '10', '9', '8', etc..towards '1'. I was able to change the map icon to start from 10, but I'm having trouble changing the thumbnail image red icon number on the top left of the thumbnail. It starts with one. Any help on how to change this would be greatly appreciated. Thanks!

Orange Markers

The orange markers numbering is messy. I had to rename them myself.

Descriptions are missing when altering the parameters of Youtube URLs & the display is Integrated Layout in IE.

Open this application in IE 11:

http://ess.maps.arcgis.com/apps/MapTour/index.html?appid=186f2b3d588141a0b2a081e3de13478a&webmap=74a8a55e08794a169de210699f325f56

Click on point #2. Notice that the video plays but does not show the title or description.

The CSV is referencing this:

https://www.youtube.com/embed/rw8AqZaGakA?rel=0&autoplay=1#isVideo

If you remove the rel & autoplay parameters it resolves the issue. Also, changing the layout to Three Panels resolves the issue.

Also, if you format the URL like this:

http://www.youtube.com/v/ICcA823a1K4&autoplay=1&loop=1&replay=1&controls=0&playlist=ICcA823a1K4#isVideo?

The Map Tour fails to show the video description in both IE and Firefox.

Is this a known limitation of the application? A limitation of the browsers, or an application bug?

Thanks very much,

Julia

Question: How can I fix the layout mode (Desktop or Mobile)?

In the Readme of this template, there is some descriptions:
"Note: if you embed a map tour in a web page make sure that the iframe is wide enough so that the map tour is displayed in Desktop mode. If the iframe is too small, the map tour will automatically switch its layout to the mobile layout, which is harder to use on a Desktop system because it is touch-orientated."

If I would like to fix the layout mode (Desktop or Mobile) of my own published MapTour application, how can I do it? Are there any "switches" in the source code? Or, must I customize the many source codes massively?

Adding a 99th point via Add button doesn't work

  • Build a web map with 99 points in it
  • Share into Map Tour template
  • Click Organize
  • Check the option to make the first photo the introduction. Now there are 98 points on the map.
  • Click the Add button. You get a message saying that you've reached the limit of the number of points, but there are still only 98 points.
  • Importing from Flickr, Facebook, etc. to add the 99th point works, but not through the Add dialog.

Getting started with the web application

I just cloned your story map application onto a webserver and launched it, but I got an error message. Are there config files that I need to edit before I'm able to explore the applications on my webserver?

storymaperror

Android (native) Browser still not supported?

I have created a hosted Story Map tour. It works on most mobile devices but not all Androids. Version 2.2.8 of the Map Tour fixed the issue on some Androids but not on the Nexus 5 or Note 4. Could it have something to do with the native (linux) Chrome based browser that some Android use in place of a installed Chrome app.

Unable to load feature collection in web map created in Map Tour template builder mode

I walked through creating a story map using the Map Tour template on ArcGIS Online. In the process I added data interactively to the map, which creates a feature collection in the web map. Unfortunately we’re unable to load this web map in the ArcGIS Runtime SDK for WPF so we’re unable to display in the apps built on it (eg Ops Dashboard, Esri Maps for Office). It appears the problem is the layer (actually sublayer) in the feature collection has an id property set to a string when the we’re expecting it to be a number (integer). Example webmap data: http://www.arcgis.com/sharing/rest/content/items/55ffa0b2844d4011aca87d8b060f3375/data?f=pjson

image

The public web map spec define the id property to a number: http://resources.arcgis.com/en/help/arcgis-web-map-json/index.html#/layer/02qt0000000n000000/. The id property is actually optional for feature collections, in most cases it’s not created (eg adding map notes in the ArcGIS.com Viewer).

Map Tour builder fails to launch when it loads at smaller screen sizes

I've noticed the Map Tour builder fails to launch when it loads at smaller screen sizes. I believe the intent is correct, which is that the builder is not supposed to be available in mobile form, however I think you may need to take a closer look at it. The biggest reason this is an issue is that the default browser size upon launch at certain agencies is small enough to cause the issue, and unfortunately changing that default launch size is not something the user has control over…always launches at same size, and then you need to expand. The issue has been noted as happening across all browsers, and with both Portal for ArcGIS and ArcGIS Online. The good news is that as soon as the browser is expanded the issue goes away.

Possible solutions – 1) change the verbiage of the message to add something that speaks to expanding browser 2) force the browser to expand 3) change the resolution of the limitation.

proxy settings for 'user download'? difference w/ developer version?

Is there a difference in adding proxy rules in the 2 different app downloads for the map tour- user vs developer? I am using the user version as I have with other story map templates (series). I cannot get the proxy rules to work so did not know if the examples I am following are valid for this template. I am trying to avoid yet another to support for 3 proxy support request for 3 different apps.

I am using a combo of the Geonet thread here

https://geonet.esri.com/thread/161655

as well as the proxy setting assistance I got regarding using with the storytelling series template that lets you use an app created in the online story map builder. I am not really interested in the developer version since i think I can do all the small tweaks I want to make (my logo since it will not add in builder mode, proxy rules) in the user version of the app. It seems very similar to the series app yet my proxy is not being referenced.

any leads? thanks

Add the GeoLocator

This is a great app and I have configured it nicely using the builder as we want to have a quick project launch and I don't want to have to get into editing the code to host it ourselves - It took 2 hours to make a public ready application - however, it seems that i might have to host and edit the code anyway as there is no option to add a Geolocate button - unless I am missing it? Surely this is a simple enhancement?

Feature points with a single attachment are excluded from the Tour

The application requires two attachments for each point: one for the main photo, and one scaled down for the thumbnail. If you want to build a map tour from a hosted feature layer that was field collected using ArcGIS for Collector, the user will likely only have one attachment for the asset and it becomes difficult to process the service to now include a second attachment to serve as the thumbnail.

It would be a great enhancement for the Tour to include feature points even if only a single photo attachment exists. It would just use the same attachment URL for both the main image and thumbnail.

Enhancement - allow zoom levels and layer control by index point

A couple of enhancement requests for the template:

  1. Allow zoom level to be set at the per-feature level rather than for all features. Some map points refer to differing geographic areas - being able to define a zoom level on a per-feature basis (different than the global zoomLevel config option) would be ideal.
  2. Allow visibility control for supporting layers by index point. If a supporting layer is only important to visualize for one of the index points in the story map, it would be nice to have it turn on when selecting that index, and off when you navigate away.

If these are already available as easy customizations of the template, please advise.

Thanks!

App not showing the correct first slide

I downloaded the code last week for an internal app and it seems to run fine except the first slide in the carousel does not match the first item in the list. Here is a screen show with a description of the problem - http://www.kgis.org/taxsale19b/MapTour-SlideIndexProblem.jpg. I have tried two different data sets and I got the same results with both. The points are from feature layers exposed through ArcGIS Online not layers that have been loaded through the app. Here is a link to the app if you want to see the issue:http://www.kgis.org/taxsale19b/index.html

Webmap ID is not recognized using files from Download.zip (master)

The index.html file used from map-tour-storytelling-template-js-master.zip is not honored when adding the webmap ID, a5019e8c55d547eab69c0777dcd7509a, which is the sample. Browsing to the index.html location under wwwroot throws error, "An error has occurred
Fatal error: Invalid configuration (web map or application identifier not specified in index.html)". The only way to use the webmap ID is to enter it in the URL such as:
"http://mywebserver/MapTour/index.html?webmap=a5019e8c55d547eab69c0777dcd7509a". But the README.PDF states to enter the webmap ID in the index.html file.

On the contrary, downloading Storytelling-MapTour-2.2.4.zip (User Download (source code not included)) works. Adding the webmap ID, a5019e8c55d547eab69c0777dcd7509a, is honored and shows the storymap.

Map Tour application will not recognize the webmap id if the webmap is created by loading a CSV.

In previous versions of the map tour template, I could create a map tour by first creating a blank webmap, then loading a CSV, and saving and sharing it publically. I would then copy the webmap id from the URL of the new web map and paste it into the index.html of the locally hosted application.

In this version of the application, I'm getting a fatal error "An error has occurred Fatal error: Invalid configuration (web map or application identifier not specified in index.html)", even though the identifier is specified in the application.

The web map is properly configured because I can paste the same webmap id into an older version of the application and it will load properly.

Any help with this would be appreciated.

Question. Toggle Tiled Map service with check box?

I have some imagery in my Map Tour. I have added a checkbox to my Map Tour application. Which file in the template do I need to modify to toggle this imagery on and off with the checkbox? Is their a way to target the web map and the services in that map within the template to change their visibility when the box is checked on and off?

compatibility with internet explorer?

I know there are some compatibility issues with older versions of explorer but I cannot get my customized storymap template to load in internet explorer 10 or 11. The custom map loads just fine in safari, chrome, and firefox. Is there something extra I need to do in the code to make it work in explorer?

Not very usable on tablet with low-ish vertical resolution (landscape mode)

Hi there,

It would be great if you could allow the main image+blurb content section (in landscape mode) to fill more of the available height, with less padding around it; and perhaps without constraining the text within the dimensions of the image. On a Nexus 7 2012 for example, the limited pixel height seems to cause it to shrink down to an unusably small size.
Regards,

Andrew.

ArcGIS map not linking

Hi, I've built a storymap, added pics, captions, latitude and longtitude co-ordinates through the interactive builder on the hosted version. However the maps itself has disappeared. Also, the number icons don't appear on the map - instead there is just a grey box where the map should be. Appears like the link is broken, but I can't find where to change this - or to alter the base map or add a layer to it. Please help!

Here is my map
http://www.arcgis.com/apps/MapTour/index.html?appid=f1e8a6e0ddd84ce6815df930cfb383dd&webmap=e35949019c5a4aceb224acc454c6df72&edit

Add ability to share map extent in URL

Feature request ❔ : I've been attending Esri MUC and have a few story map ideas! During the conference I was checking out some of the published story maps and wished I could share out a url where the map extent was somehow encoded into the URL.

Is this something that we could see in the future?

For reference, OpenStreetMap does this now so that as you pan around, the URL is updated dynamically. This would be great to see on Esri Story Maps!
openstreetmap

New points not showing when using "Feature Collection"

Long story short:

  1. Create a story map tour from a blank map and add points manually from the advanced option -> Start new tour
  2. open the web map and save the layer from the web map belonging to the tour
  3. This will create a Feature layer of type "Feature Collection"
  4. Add this to a new web map and start a new story map tour
  5. Add new points
    The points added in step 5 only show up in the builder, not when viewing the tour, where only the original points from the saved layer shows up.
    There is an http request that gets all the features, both old an new, as json, but after that the original features is fetched from the original feature service, and that's what end up being used.

This is logged as a bug, so I don't know if it is unnecessary to log it here as well?

Defect ID: BUG-000090277
Synopsis: Could not save new tour points at Story Map Tour application which is created from existing feature collection from another web map.

The reason for saving the layer from web map was that it was used as a form of backup by one of our customers, since there is no other way to export data created with Story Map Tour. (At least no easy way, although we built a python script to take the json data and make it to a properly formatted csv file).

Map Tour template doesn't work with IE8

I hope this post is at the correct location as I have problems with this template.

We downloaded the latest release of the Map tour template and configured it on our own web server. It all works fine in Chrome, but in IE8 it is showing me an error: Object doesn't support this property or method (line 957)

At line 957 the following code is visible:
dojo.addOnLoad(function() {
require(["dojo/i18n", "storymaps/ui/loadingIndicator/LoadingIndicator", "esri/map", "dojo/domReady!", "esri/arcgis/Portal", "esri/arcgis/utils", "dojo/ready"], function(jsapiBundle, LoadingIndicator) {
i18n = jsapiBundle.getLocalization("esriTemplate", "template");
loadingIndicator = new LoadingIndicator("loadingIndicator", "loadingMessage");
loadingIndicator.init();
loadingIndicator.setMessage(i18n.viewer.loading.step1);

We use the service from the Portal for ArcGIS. It seems that this template still has problems with IE in combination with Portal for ArcGIS. Does someone else also experience this behavior? Any ideas what is wrong?

Thanks,
Laura

Chrome hangs when loading template with specific location data and starting extent

I've encountered a rather obscure issue that is specific to Chrome, a specific set of storymap locations, and the starting map extent when the template is launched. Chrome hangs while the template is loading (the spinning 'busy' indicator is visible, but no other UI elements) - to the point that Chrome becomes non-responsive and/or eventually displays prompt to 'Kill page'. When using other browsers such as IE or Firefox, it all works without issue.

Typically, when creating the webmap for the map tour template, I set the map extent so that the location points fit with the visible map extent (essentially, zoom to layer for the location points). For this particular storymap, the locations are fairly close in proximity and the map is zoomed in fairly close. When loading the storymap, this sort of starting extent hangs Chrome. If I set the webmap extent so that the location points are clustered close together in the middle of the map and zoomed out quite a bit, the template loads correctly in Chrome, though not at the 'ideal' starting extent. When using this workaround, further interaction with the template in Chrome such as zooming to closer extents seems to work fine.

I've posted a Gist for the location CSV file: https://gist.github.com/bsmall/ed7eb510fb72c2c54654/download#file-maptourlocations-csv

To reproduce issue: In ArcGIS Online, I started a new webmap, added the CSV file to the map, zoomed the map to the extent of the locations layer, saved the webmap, published a web application using the MapTour template, then try viewing storymap in Chrome (I'm using Chrome 40.0.2214.111).

To view the storymap in production using my 'zoomed out' starting extent workaround, see: http://www.iqmap.org/storymaps/MapTour/index.html?appid=b2aa8e83078f49b592ed13b81f96aa58&webmap=63f8984dc6b24e15bbbfeaaf83b39490

De-synchronizing the tour point content and highlighted map icon

I encountered this issue while viewing a map tour on a mobile device (I'm using an iPod touch). In the 'Map' view, as I swipe from through the sequence of tour points in the bottom section of the interface, normally the associated icon will highlight on the map (it appears on top of the other icons and gets bigger).
The issue: I managed to de-synchronize this icon highlighting by beginning to swipe to the next tour point, but not finishing the motion. If I drag the photo/text tour point content to the side just a tiny bit and then let go, the text and photo will not slide over to show the next photo/text, but the highlighted icon WILL change.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.