Our World Statistics Day conversations have been a great reminder of how much statistics can inform our lives. Do you have an example of how statistics has made a difference in your life? Share your story with the Community!
Choose Language Hide Translation Bar
Staff (Retired)
Visualizing geospatial data with the Street Map Service

Back in August 2012, Laura Higgins, a JMP systems engineer, wrote a great blog post titled “Fighting crime using geospatial analysis in JMP.” In that post, she explores crime data for San Francisco. When she was working on that post, she contacted me and asked if there was a way to produce a street-level map of San Francisco in JMP. At the time, JMP could generate maps at a higher level using Simple Earth and Detailed Earth. JMP could also use an external mapping server such as the NASA server or the Web Map Service (WMS). But unless you knew about a WMS server that would generate a low-level map of San Francisco, there was no way to get the map Laura wanted from JMP.

So I did the next best thing. I manually generated a map for her and added it into her graph as an image. But generating the image was a bit tricky. I had to find a server that would generate the map tiles that I wanted. I figured out exactly which tiles I needed and how to specify that as a URL, and then I sent the request through a browser to the mapping server. I did this for multiple tiles, saving each one that was returned, and then stitched them together to create one image. Then I had to manually position the image in the background so that it was located correctly under the data.

Laura was happy to get this “map,” and I was happy to create it for her. But obviously there are issues with this approach. For starters, the whole process took a certain amount of knowledge about maps and probably more time than most people would want to spend. Second, the map was generated at a specific zoom level. So if you tried to zoom in, a new map would not be generated. No more detail is added, and the map itself simply scales up, causing a noticeable degradation in the quality of the image. Third, the map only covers a specified area. If you were to pan in any direction, there would be no visible map, just a white background. Lastly, and probably of most concern, the image had to be manually, but correctly, positioned in the graph. If the map is not in the proper location, the visualization is completely misleading.

Of course, you could use that last issue to your advantage. Suppose you wanted to buy a house in a certain neighborhood in San Francisco. After looking at the crime data, you decide that neighborhood has too much crime. Well, you can just slide the map over -- and presto chango -- your future neighborhood is now crime free! That’s right, we’ll just put all that crime out in the bay. Ah, if only it were that simple to get rid of crime in your neighborhood.

Well, I am happy to say that now with JMP 11, Laura can get the map she wanted right from JMP -- and so can you. JMP 11 offers a new background map option called Street Map Service. Like some of the other mapping options in JMP, the Street Map Service uses an Internet connection to access a mapping server that will automatically generate a map for you. But unlike the Web Map Service, you do not have to tell JMP how to get to the server. The server is owned and operated by JMP, so the JMP product knows how to find it.

The server generates maps on demand using OpenStreetMap technology and data. JMP uses your axes to generate a map with the correct coordinates and calculates an appropriate zoom level so you get the right amount of detail. Zoomed out, the map shows country and state names with major highways. The detail in the map increases as you zoom in, revealing minor roads, street names and building footprints. Maps are generated using a soft color scheme to enable your data to stand out.

So now you can get a view of the San Francisco crime data that looks like this:

Or even this:

Of course, San Francisco is not the only place with crime, and Bubble Plot is not the only platform in JMP that uses background maps. Here is a contour plot in Graph Builder showing crime in Raleigh, North Carolina.

The Street Map Service can generate a map for any location on Earth. So whether you want to explore real estate values, high-crime areas, the best restaurants or all of the above, the Street Map Service in JMP 11 will help you visualize your data. The Street Map Service lets you zoom out to get an overall view and zoom in to specific neighborhoods or even down to the street level, providing you with the appropriate amount of detail and a high-resolution map at every level.

What kind of data will you be visualizing with the Street Map Service?

Article Labels

    There are no labels assigned to this post.


Rosser Bobbitt wrote:

I have data with the lat/long associated with individual values. Some of the data files also have time tags.

I would like to add Google maps and military Topo maps to the data charts, especially bubble charts, in JMP.

In conjunction with that, or independently of it, I would like to add georeferenced graphics that I draw to charts with lat/long data. Are there ways?

Staff (Retired)

John Ponte wrote:

JMP does not support Google maps, due to licensing issues. But JMP does support OpenStreetMaps, as of Version 11. From the background map dialog, you can specify the Street Map Service to get a street-level map. Another background map option is Web Map Service. This option allows you to use any server that supports the WMS api. So if your military Topo maps are coming from a WMS server, just specify the URL to the server and one or more layers in the fields provided when you select the WMS option.

As for adding georeferenced graphics, I'm not quite sure what you mean. With Bubble Plot, or Graph Builder, you can use lat / lon to specify your y / x axes and you will get a marker, or bubble, at the appropriate location for each of your data points. Is that what you are looking for? Both Graph Builder and Bubble Plot support the mapping options I mentioned, so you can use either of these platforms to plot your data on top of the maps.

I hope this helps.