Create a custom County Lines map or ZIP Code-based Sales/Service/Delivery Territory map on the fly -- overlaid on Google Maps

I've had requests from several people to add the capability to create links on their website that would open up the County Lines on Google Maps tool already focused on their region of interest.
Several have also wondered if there is a way to create a ZIP Code-based Sales/Service/Delivery Territory map on the fly.

Now you can!  Here's how it works:

Create a map zoomed to a State and show County Name labels

To simply zoom to a state and optionally show county name labels and a map title, create a link such as this:

https://www.randymajors.com/p/countygmap.html?state=CT&labels=show
TIP: copy/paste the links below and customize to suit your needs

The parameters you can use are as follows:
  • state - expects a 2-character state code as used by the USPS, for example, ?state=CT
  • onestate - optionally shows ONLY the counties in the state specified by the state parameter by using the word show, as in, &onestate=show (in other words, this will hide the county boundaries that are outside of your state of interest)
  • title - optionally give your map a title (use the + character to represent spaces), for example, &title=Connecticut+Counties
  • labels - optionally shows county labels by using the word show, as in, &labels=show
  • color - optionally choose the color used for the Map Title, expects a 6-character hex color code without the leading # character, for example, &color=00FF00 would create a green map title (free tools are widely available on the internet to find your hex color)

Create a map zoomed to ZIP Code(s) and optionally show the ZIP Code Boundaries and add a Title

To zoom to one or multiple ZIP Codes, and optionally show their boundary (e.g. for a service territory, sales territory or delivery area), create a link such as this:

https://www.randymajors.com/p/countygmap.html?zips=10023,10024,10025,10026&zipboundary=show&title=My+Service+Territory
TIP: copy/paste the links below and customize to suit your needs

The parameters you can use are as follows:
      • zips - expects a comma-separated list of one or multiple 5-digit U.S. ZIP Code(s) (do not use spaces between the commas), for example, ?zips=10023,10024
      • zipboundary - optionally shows a merged overall boundary based on the zips (e.g. for a service territory or delivery area) by using the word show, as in, &zipboundary=show 
      • title - optionally give your map a title (use the + character to represent spaces), for example, &title=My+Sales+Territory
      • color - optionally choose the color used for the Map Title and the ZIP boundary, expects a 6-character hex color code without the leading # character, for example, &color=00FF00 would create a green map title and ZIP boundary (free tools are widely available on the internet to find your hex color)
      • labels - optionally shows county labels by using the word show, as in, &labels=show

      Maps created from the above two examples

      The first example links you to a County Lines map centered on Connecticut, showing you the county lines and labeling the names of the counties on the map:
      Google Maps with County Boundaries example from Connecticut including county name labels


      The second example creates a Service Territory Map based on a list of ZIP Codes (10023,10024,10025,10026) and creates a title for the map:
      Create a custom County Lines map or ZIP Code-based Sales/Service/Delivery Territory map on the fly, overlaid on Google Maps


      A few important things to make this work:

      1.  You must use the question mark ( ? ) right after .html, as shown above and below
      2.  Do NOT use spaces anywhere in the URL or query parameters
      3.  You must separate query parameters using the ampersand ( & ), as shown above and below
      4.  User the + character to represent spaces in the title parameter

      TIP:  For simplicity, you can drop the https://www from the front and just create the link as:

      With this functionality, you can feel free to create links on your own website that open a window to the County Lines on Google Maps tool, already zoomed into your area of interest OR showing a ZIP Code based sales territory, service territory or delivery area!

      Feel free to share this with others who may find this functionality useful!


      NOTE:  The above article relates to PRESENT-day County Lines.  Here are the instructions for linking to HISTORICAL County Lines.

      Comments

      Recent Popular Posts

      Here's how you can see all County Lines on Google Maps

      Overlay present-day county lines on the Historical U.S. Counties on Google Maps tool

      Now use your current location on all randymajors.com mapping tools!