Showing posts with label web maps. Show all posts
Showing posts with label web maps. Show all posts

Sunday, August 4, 2013

Hawaii County GIS Resources - General




I'm spending this week on Big Island working with county staff who use GIS in their work.  I've compiled some links to online resources that we'll be using during the week and since they may have broader interest, I'm sharing general information here.

In other posts I provide specific information and links on:
  - Parcel (TMK) Data
  - Address Data

UPCOMING EVENTS

First, a few upcoming events including a couple of online classes:

Aug 20-22, 2013   Online Class: ArcGIS for Server: Site Configuration and Administration (10.1)
Aug 27-29, 2013   Online Class: Configuring and Managing the Multiuser Geodatabase (10.1)
Sep 18-20, 2013   Conference: HCPO Hawaii Congress of Planning Officials (Kailua-Kona, Hawaii)


ARCGIS FOR DESKTOP: DATA DRIVEN PAGES (MAP BOOKS)

There used to be an extension in ArcGIS for Desktop called "DS Mapbook". It was a great little extension that provided tools to help you create a map book. At ArcGIS 10.0 (and 10.1 and 10.2) similar tools are part of the core product on the Data Driven Pages toolbar.

I posted on the Hawaii GeoTeam 2013 blog about election data including an introduction to Data Driven Pages.  Here's the link:
http://geoteam2013.blogspot.com/2013/06/show-tell-for-module-8-election-data.html

There's a 70 minute video from Esri UC 2013 demonstrating how to use Data Driven Pages and how to customize map books using Python scripts.  Here's the link:
http://video.esri.com/watch/2598/building-map-books-in-arcgis


ARCGIS FOR DESKTOP: EDITING

There are a couple of really good videos from Esri UC 2012 that cover editing.  Each lasts more than an hour and shows lots of useful examples.
ArcGIS for Desktop Editing (An Introduction)   (Technical Workshop Video)
ArcGIS for Desktop Editing (Tips and Tricks)   (Technical Workshop Video)


ARCGIS FOR DESKTOP: MISCELLANEOUS

You can purchase a Home Use license of ArcGIS for Desktop that you can use for non-commercial, personal purposes. You can find the details here:



EXAMPLES OF EMBEDDED WEB MAPS

South Dakota Game, Fish and Parks
Kansas City Public Works
Southern California Silver Fire

Hawaii County Beach Parks - embedded web map

Click on a park for more information on that park.

Use the Hawaii County Beach Park Finder App to search for beach parks by activity or facilities available.

LGIM: LOCAL GOVERNMENT INFORMATION MODELS


LGIM - Local Government Information Model Maps and Apps 
LGIM Maps and Apps for Land Records 
LGIM Maps and Apps for Water Utilities 
LGIM Maps and Apps for Public Safety 


Friday, June 7, 2013

DOH Flu Vaccinations Sites - Embedded Map Example

Here's a blog post for web designers on how a web map can be embedded in a web page and then linked to a mapping application.

Muggle Warning - HTML code will be used in this blog

For this example I'm going to use a web map and a mapping application used by the Hawaii State Department of Health to show flu vaccination sites.  Here are the web IDs for the two items:

   web map ID:                 webmap=cda25f51ce994443a592011ecec15e03

   mapping application ID:   appid=8d6af87ca1f249878b2e6beb9a38ebec

Starting in the web map editor on ArcGIS Online, you click the "Share" button and then click the "Embed in Website" button. That opens up a window to configure the embedded web map.

You can use the radio buttons to configure the tools that will be available on the embedded web map.

As you turn various tools on and off, the code in the HTML window will change accordingly.

For example, here you can see I've turned on the zoom control, legend, description and search tools.

I've also set the size to 500 x 400 pixels and added a link to "View Larger Map".

When you're finished configuring your embedded web map, you can copy the code in the HTML window and paste it into your web page.

Here's the web map for flu vaccination sites embedded into this web page using the configuration example above (modified as described below):


View Larger Map

This is a live map, the user can pan, zoom, search and click on a star for more information.

But there's one further modification you can do. By default, the "View Larger Map" link opens the web map in the web map editor. It is usually better to open the web map in a mapping application. You can do this by changing the HREF link that you copied from the HTML window.

Let's deconstruct the code from the HTML window and you'll see what I mean. Here's the code split into sections:

1) set up the iframe size and other parameters:
<iframe width="500" height="400" frameborder="0" scrolling="no" marginheight="0" marginwidth="0"
2) use the embed template from ArcGIS Online:
src="http://histategis.maps.arcgis.com/home/webmap/templates/OnePane/basicviewer/embed.html?
3) put the flu vaccination sites web map inside the template:
webmap=cda25f51ce994443a592011ecec15e03
4) open the map at an extent that shows the eight main Hawaiian islands:
&amp;gcsextent=-160.3411,18.6238,-154.6612,22.7594
5) add the tools selcted during configuration:
&amp;displayslider=true&amp;displaylegend=true&amp;displaydetails=true&amp;displaysearch=true">
6) close the iframe that contains the embedded map:
</iframe>
7) start on a new line and make the font smaller:
<br /><small>
8) use the viewer template from ArcGIS Online:
<a href="http://histategis.maps.arcgis.com/home/webmap/viewer.html?
9) put the flu vaccination sites web map inside the template
webmap=cda25f51ce994443a592011ecec15e03
10) open the map at an extent that shows the eight main Hawaiian islands:
&amp;extent=-160.3411,18.6238,-154.6612,22.7594" 
11) set the color of the text and set it to open in a new window:
style="color:#0000FF;text-align:left" target="_blank">
12) show the text and close the hyperlink and set the font back to what it was
View Larger Map</a></small>

To change the "View Larger Map" hyperlink to open a mapping application, you need to change parts 8 - 10 as follows:

8) change from the viewer template to the OnePane basicviewer app template:
<a href="http://histategis.maps.arcgis.com/apps/OnePane/basicviewer/index.html?
9) change the template contents to the app:
appid=8d6af87ca1f249878b2e6beb9a38ebec
10) and you don't need the extent at all (the app knows the extent) but keep the close quote:
&amp;extent=-160.3411,18.6238,-154.6612,22.7594

So now the HTML text to copy and paste looks like:

<iframe width="500" height="400" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://histategis.maps.arcgis.com/home/webmap/templates/OnePane/basicviewer/embed.html?webmap=cda25f51ce994443a592011ecec15e03&amp;gcsextent=-160.3411,18.6238,-154.6612,22.7594&amp;displayslider=true&amp;displaylegend=true&amp;displaydetails=true&amp;displaysearch=true"></iframe><br /><small><a href="http://histategis.maps.arcgis.com/apps/OnePane/basicviewer/index.html?appid=8d6af87ca1f249878b2e6beb9a38ebecstyle="color:#0000FF;text-align:left" target="_blank">View Larger Map</a></small>

Copy and paste the above code into your web page and you'll have an embedded web map just like the one above.

Use the comments if you have any questions on this.

A hui ho!

Thursday, June 6, 2013

National Day of Civic Hacking Honolulu: The Mapping Guy

Looking for the links to State of Hawaii and City and County of Honolulu map services? They're about half way down through this blog. I hope you'll read the whole blog, but if you need the links quickly, here they are:


                                                                                                                            

On June 1, 2013, Honolulu held an event as part of the National Civic Day of Hacking. Thanks to Burt Lum and the Code for America Honolulu Brigade for organizing and sponsoring Honolulu's event.  About half of the 50 or so people at the event were software developers, the other half were government representatives and interested citizens.

Burt introduced me as "the mapping guy" and it's true, my passion is maps and now online maps and mapping applications.

I've given talks at Hon*Celerator, Unconferenz 2013 and the PCATT IT Summit where I talk about the importance of maps and how lists of locations are good, but maps of locations are better. And dynamic maps based on map services and map applications that provide search and analysis tools are the best. Many of my past blogs have been on this same theme:


So I wanted to talk about three things, a bit different, but related, on this day of civic hacking. "No FTP / Download" is for the software developers. "Gov Apps = Citizen Apps" is for government and citizens. "Vote" is for everyone.

NO FTP / DOWNLOAD

Government is opening up more and more data and sharing it with the public. Why do I say "NO FTP / DOWNLOAD"? It was interesting how many other presentations during this national day of civic hacking involved maps. But if you stop and think about it, this makes perfect sense. Much of the data that citizens are interested in is data on places close to where they live, work, go to school and play - yes, maps!

The mapping community has been sharing open mapping data for a number of years now and one of our lessons learned is that data gets stale, it gets old, it gets outdated. At first, all we could do was go back to the ftp site regularly and check if there was an update. If there was, we'd download and process it.

But as internet connection bandwidth increased it became possible to make current mapping data available as map services. No more FTP, no more downloads, no more stale data! There are still times when I need to download mapping data, but more and more I'm able to work with the map services directly. The State of Hawaii and all four counties (Hawaii, Maui, Honolulu and Kauai) have started publishing mapping data as RESTful map services.

And it's not just mapping data. Both the City and County of Honolulu and the State of Hawaii use Socrata to host their open data portals. Data on Socrata can be downloaded, but is also available via their SODA RESTful services.

Software developers need to know how to use these RESTful services so they can decide when it's best to download data and when it's best to connect to a service. Here are a couple of examples where connecting to a map service is better than downloading.

Oahu Tsunami Refuge Centers

When a tsunami watch or warning is given, residents and visitors in tsunami evacuation areas need to leave the area. Residents often go to a family or friend's home that is outside the evacuation area. Visitors can evacuate to the upper floors of their hotels. Another option is to go to a tsunami refuge center. These centers are not shelters, they don't provide food or services, but they do provide a safe place, usually with restroom facilities, to wait until the danger has passed.

An earthquake in Canada on October 27, 2012 caused a tsunami and Hawaii received a tsunami warning. All I could find online was a list of the tsunami refuge centers, and since lists are good but maps are better, I created a mapping application that showed the evacuation zone and the refuge centers. I wrote about this on my blog and also in an article in Civil Beat that called for the government to make better use of map services to inform the public.

The City and County of Honolulu now publishes a tsunami mapping application similar to what I created during the tsunami event. Their application uses a web map with two map services also published by the City and County of Honolulu - one for the tsunami evacuation zones and one for the refuge center locations. Both these map services are open so that software application developers can use the data in their own apps.

So if you're developing an application using tsunami refuge center data, would it be better to download the data, or better to connect to the service provided and updated by the City and County of Honolulu? If you connect to the service, then as soon as the City makes a change to the data, your application will immediately see it. If you download the data then...

Hawaii Flu Vaccination Sites

The State of Hawaii Department of Health has taken what used to be a 14 page PDF list of flu vaccination locations and turned it into a mapping application that shows the locations, whether a prescription is required, whether an appointment is required, and lots of other useful information. Similar to the tsunami application, this application uses a web map with a map service of flu shot locations that is published and updated by the Hawaii Department of Health. This map service is also open so that application developers can use the data in their own apps.

The data behind the map service is updated regularly and of particular interest is a data field or column called "ShotsAvail". This column has two possible values - "Yes" or "No". If your app connects to the service, then you can use this information to correctly show which locations have either flu shots or flu mist available (Yes) and which have neither available (No). In the mapping application, only those sites where "ShotsAvail" = 'Yes' are shown. But the map service contains all the locations so you as an app developer need to pay attention to this value.

State of Hawaii and City and County of Honolulu Open Mapping Data

Hawaii, Maui and Kauai are just getting started with their open mapping portals, but the State of Hawaii and the City and County of Honolulu have published quite a few map services along with web maps and mapping applications. I showed these at the civic hacking event but the URL was too long for people to copy down, so here are the links:

   State of Hawaii Open Map Services (developers connect to these map services)

   City and County of Honolulu Open Map Services (developers connect to these map services)

These are the same links that are at the top of this blog post.

GOV APPS = CITIZEN APPS

In my Ignite talk at Unconferenz 2013, I talked about the importance of maps and open data, but also about the importance of open tools for analysis. Access to maps and data is great for citizens to have, but sometimes there are also analysis tools used by government to help understand data and to create future alternatives based on actual data. In my talk I urged that government provide these same tools to citizens.  

In my talk at civic hacking I explained in more detail a project I was involved in where this was done and how citizens used analysis tools, the same tools used by government, to provide informed public testimony that did influence government decisions.

My example was redistricting. I was the mapping guy supporting the State of Hawaii Reapportionment Commission. Reapportionment and redistricting is done every ten years following the decennial census to adjust political boundaries to balance population changes. I won't get into the details on the process, you can read more here if you're interested.

The Commission was using an online mapping application that had maps, census data and analysis tools to help them re-balance the political boundaries. What is interesting is that the Commission decided to make this same online mapping application available to the public. Anyone could get a login by providing their email address and then create their own redistricting plan using the same tools as the Commission.

The public responded! By the end of the process, 586 accounts had been opened and 845 redistricting plans were created. Members of the public came to public hearings and not only submitted oral testimony, they also submitted their maps and they submitted their plans. It was a great success. And because I was the map guy working with the Commission, I can say with confidence that these publicly created maps did influence Commission decisions and that the final maps adopted did contain changes that came from public input.

And because the Commission's mapping application was using map services, those same map services, open to the public, could be used to create other applications. I created a web map and mapping application that was published to desktop and mobile devices. Smartphone users could install an app and then open up the new political maps on their iOS, Android and Windows devices.

So "Gov Apps = Citizen Apps" is my way of saying that if the government is using apps (tools) as part of their decision making, that whenever possible, those same tools should be made available to the public.

VOTE

Hawaii ranks low nationally in percent of voter registration and voter turnout on election day. There are many reasons posited for this, but my hope is that better access to government data, maps and tools will help spur understanding of and interest in government.

We were asked to come to this meeting with ideas for civic hacking projects. I don't know what form it might take, but I'd be very interested to work with a team on civic applications to try and increase Hawaii's rate of voter participation. Maybe an app for voter education, maybe an app to encourage voter registration, maybe an app to make more information on candidates and issues easily available.

Feel free to use the comment section on this blog to post your ideas on how we might do this.

And if you are a US citizen and a Hawaii resident 18 years or older, and you haven't registered to vote, do it now!

A hui ho!

Monday, May 27, 2013

Big Island User Group Links - May 28, 2013


UPCOMING EVENT LINKS

May 30, 2013   Smartphone GIS: Capturing Data with Collector for ArcGIS   (webcast)
                          (link to archive of previous webcasts)
Jun 26, 2013   HIGICC Annual Meeting   (Honolulu, Hawaii)
Jul 6-9, 2013   Survey Summit   (San Diego, California)
Jul 8-12, 2013   Esri International User Conference   (San Diego, California)
late July or August   Hawaii time zone   (instructor-led online classes)
   Class: Migrating to ArcGIS 10.1 for Server
   Class: ArcGIS for Server: Sharing GIS Content on the Web (10.1)
   Class: ArcGIS for Server: Site Configuration and Administration (10.1)
             
GIS AND OPEN DATA LINKS

State of Hawaii Office of Information Management & Technology OIMT homepage
State CIO Sonny Bhagowalia's Keynote at Hawaii Pacific GIS Conference 2012

State of Hawaii Open Data Portal
State of Hawaii Open Data for Mapping   (ArcGIS Online)
City and County of Honolulu Open Data for Mapping   (ArcGIS Online)
Maui County Open Data for Mapping   (ArcGIS Online)

Developer API Mapping Applications
Parcels and Zoning Fast Maps   (City and County of Honolulu)
EnerGIS Renewable Energy   (State of Hawaii)
Flood Hazard Mapping   (State of Hawaii)
Crime Mapping   (City and County of Honolulu)

Web Map Mapping Applications
Sewer Projects Construction Map   (City and County of Honolulu)
Tsunami Refuge Centers   (City and County of Honolulu)
Refuse and Recycling   (City and County of Honolulu)
Electioneering App   (State of Hawaii)
Exceptional Trees   (City and County of Honolulu)
Exceptional Trees with Tree Finder   (City and County of Honolulu)
Veronese Mythological Paintings Story Map   (spreadsheet from Ria Baldevia)
San Diego Story Map   (uses three web maps)
Moore Tornado Story Map   (uses two web maps)
Gallery of Story Maps

ARCGIS ONLINE RESOURCE LINKS

ArcGIS Online Tutorial with Exercises
ArcGIS Ecosystem Seminar   (one hour webinar)
ArcGIS Online for Administrators   (two module web course)
ArcGIS for Desktop Staging Tips for ArcGIS Online

A COUPLE MORE THINGS...
ArcGIS for Desktop Editing   (Technical Workshop Video)
ArcGIS Desktop for Home Use
ArcGIS Online - All Blogs 
ArcGIS Online - Bern's Blog 



LGIM - Local Government Information Model Maps and Apps 
LGIM Maps and Apps for Water Utilities 
LGIM Maps and Apps for Public Safety 
LGIM Maps and Apps for Land Records 

Friday, May 24, 2013

Maps That Change Quickly: Honolulu Lei Drop-off Sites

Photo courtesy U.S. Navy
http://www.flickr.com/photos/usnavy/7301706022/

May 24, 2013  Honolulu, Hawaii

Driving in to work today, I heard on Hawaii Public Radio that the City and County of Honolulu was seeking 50,000 donated lei to be used as part of Memorial Day services. This is something the City does every year to decorate the graves of fallen service members at the National Memorial Cemetery of the Pacific at Punchbowl and the Hawaii State Veterans Cemetery in Kaneohe.

The Mayor's Memorial Day Ceremony at Punchbowl will be held on Monday, May 27th at 8:30 am. Here's a link with more information on that event:

     Mayor's Memorial Day Ceremony 2013

Lists are good, maps are better!

At the end of the story on the radio, the announcer listed a number of locations on Oahu where donated lei could be dropped off. If you've read some of my other blog posts you've have heard me say it before - "lists are good, maps are better". A list provides basic information which is better to have than no information at all, but when it is a list of locations, a map is so much better. It is much easier for people to see a map and then find a location near them.

So I decided to turn the list into a map. But I didn't have much time. The locations were only open one day, this day, May 24th, in the morning. Some closed at noon, some at 1 pm and the rest closed at 2 pm. So I had to work fast. Here's what I did.

List of locations to map features

There were three types of drop off locations - fire stations, parks and park offices. There were a number of ways I could use to turn the list of locations into features on a map. I could work from a spreadsheet, but I knew that most of the locations were already in GIS format and available as different map services from the City and County of Honolulu so I decided to work in ArcGIS for Desktop. I created a template shapefile, brought in the different map services, selected the features I needed and copied them into my shapefile, and then edited the attributes - basically the name of the location and the hours it was open.  Here are links to the two map services I used:



Map features to web map

The next step was to add my shapefile map features to a basemap to create a web map. I used ArcGIS Online to create the web map including setting symbology (a flag at each location - this is for Memorial Day after all) and configuring the popup window to show the name and hours information. I saved my web map and gave it this description:
The description is important because in the next step I will use a template to create a mapping application. The template will present this description information on the left side of the map.

Web map to mapping application

In ArcGIS Online there are a variety of application templates available. I choose to use one called the "Basic Viewer" template. I turned off many of the tools in order to keep the application simple. I set the logo in the lower right hand corner to point to a City and County of Honolulu logo and saved my application configuration.  here's what it looked like:


You can see above how the text from the description was incorporated on the left side of the mapping application. The flags marked each of the drop-off locations.  


Clicking on a flag showed the name and hours for that location as shown above.

Time to share

All the above data editing, web map creation and map application configuration took about an hour from start to finish. During that hour, only I could see my web map and mapping application, but now that it was ready, I set the sharing property for both to "Everyone" which means anyone with internet access can see my mapping application. Time to send out a tweet...


Time to change the map!

The fire stations stopped accepting lei donations at noon. The parks stopped at 1 pm, and offices at Fasi Municpal Building and Kapolei Hale stopped at 2 pm. This information was in the popup window for each location, but I wanted to make the map more dynamic. If someone opened my mapping application after 12 noon, I wanted them to quickly be able to see only the locations which were still open - the parks and offices.  And if they opened my mapping application after 1 pm they'd only see the two offices.

So how could I quickly change my mapping application? It turns out to be pretty simple. Because my mapping application uses my web map, all I had to do was change and save my web map and the mapping application would update automatically. This loose coupling of web maps and mapping applications had worked well for me before with my electioneering app in the General Election of  2012 and it worked well again.

At noon I went in to my web map and changed the symbology for the fire stations from a flag to a light orange dot. At 1 pm I did the same for the parks, and at 2 pm I did the same for the two offices.  It worked great, it was very easy to do, and it made the maps easier to read.  

At 2 pm, when all the locations had closed, I called the City and County of Honolulu Department of Parks and Recreation to confirm that all the locations had closed.  They informed me that one site was still open, that donated lei could be dropped off through the weekend at the National Memorial Cemetery of the Pacific at Punchbowl.  Thus, for the final change to my map, I changed the basemap from streets to imagery and only showed one location, Punchbowl. I also changed the web map description to reflect the new information - which was automatically used by the template.  Here's the final mapping application:


I suspect there are many times when this ability to quickly change the features on a map will prove useful.  I'm on the lookout for more opportunities.  If you have an idea, let me know!

Wednesday, May 15, 2013

There's A Map For That: Online Mapping Resources for Hawaii

PCATT IT Summit
Presentation Notes
May 16, 2013
1:15 to 2:00 pm
Room 514

I love maps! And I love teaching teachers about maps and mapping software. So the PCATT IT Summit is a great chance for me to reach Hawaii high school Career and Technical Education (CTE) teachers and show them the great online mapping resources available here in Hawaii including data from the State of Hawaii and from our four Hawaii counties - Honolulu, Maui, Hawaii and Kauai.


Instead of handing out a piece of paper, I decided to blog my notes and relevant links so they're easy to find and share. So here we go...

These will only be some brief notes along with links to online resources. If you're interested, my full presentation is posted on slideshare. It's also embedded here:



GIS = ( ( Maps + Data ) * Analysis ) ^ ( Web + Mobile )

This handy formula summarizes the power of GIS, or geographic information systems. We start by looking at maps, but we more than just a map. We see things (features) on the map. And behind every feature on the map there is data describing that feature. On a paper map we can't see all that data, but when we bring that map on to a computer (using GIS), we can start asking questions and seeing patterns. We can start doing analysis. Analysis is the "force multiplier" of GIS. And in the last few years, all that power of GIS has been multiplied exponentially via the web and, even more recently, via mobile devices.

There was an article in the December 2011 issue of Honolulu Business Magazine that describes this in more detail and gives examples of how business and government use GIS. Here's the link:


There are many mapping applications now online, here are links to a few local ones you may find interesting:

Map Services to Web Maps

Behind the scenes, the mapping applications above are all using map services to create the maps and reports you see online. You can use these same map services to create your own online maps called web maps.  Here are some links to map services, web maps and web map applications:



Software, Training and more...

Fortunately for Hawaii teachers, the Hawaii Department of Education has a site license for the GIS software used for both desktop (ArcGIS for Desktop) and online (ArcGIS Online) mapping software that teachers can use for free!  The licenses are administered for DOE by the MEDB Women in Technology (WIT) Program.  Here are some useful links: