Skip to main content

Trying to embed a map on a web page.

I'm trying to figure out how to improve on some local maps for my personal use and possibly for use in some local projects I'm involved with. So I've been digging around in GIS stuff online more successfully than I've ever done. These are my notes.

Stamen Maps -- free open source tile set is compatible with Leaflet and Open Layers, among others.

Open Layers example code -- So far, I'm failing to make this work on blogspot. But it's useful to have a page of sample code. This helped me begin wrapping my brain around the code. I used to write html websites by hand, so I understand some of the pieces of this code sample.

Comparing various JavaScript mapping libraries? (question is nine years old though)

Top 10 JavaScript Libraries For Creating Dynamic Maps is what lead me to Zee Maps and I wrote a review on R/CitizenPlanners.

I kind of like Leaflet and Open Layers, though I'm struggling to try to figure it out. More stuff:

Embedding a Leaflet map on a website

How to embed leaflet map to html page? (Points to tutorial. It is out of date. New, updated tutorial. But they appear to be desktop maps in QGIS.)

How to insert a map in a web page using Leaflet This map doesn't display either on their website, so it's possibly "not me." There may be something wrong with the code. These are generally old examples and something may have changed, breaking the code.

Replacing Google Maps with Leaflet, Part 1

Leaflet: Make a web map! Nice explanation of Leaflet in laymen's terms. Leaflet is not a GIS and does not provide data nor a base map. These are important details.

Embedding a leaflet map on wordpress Probably not really pertinent to my needs.

Creating An Interactive Map With Leaflet and OpenStreetMap

Anyway, I probably need to just generate a simple map using something under a creative commons license, like the Stamen site linked at the top of this page, make a screenshot and then hand edit it. I don't actually need interactivity for this project. I just need a map of a certain section of the town I live in that has certain info and is more legible than what's readily available.

However, this was a fun foray into looking at the code and feeling like it wasn't completely mystifying. It gives me hope that I may yet be able to do something interactive at some future date and actually put my Certificate in GIS to actual use.

Comments

Popular posts from this blog

New Accounts

You can set up a new account to save your wardrobe but can't order anything until you get measured. Setting up a new account will prompt you to make an appointment with the nearest certified seamstress allowed to measure you. This potentially tells us where to go certify a bunch of new people. If enough people create an account in x city, we make sure to arrange a certified seamstress as soon as possible if there isn't one yet.

The Norway Problem

The Norway Problem - why StrictYAML refuses to do implicit typing and so should you Norway abbreviates as NO. This is a real word and some programs will alter that to a programming command, such as "False." A workaround in some cases is to put it in quotation marks, but you may not know that ahead of time. There are other cases like this, such as a person whose last name is Null . Found via HN . Related reading: Principle of least astonishment A textbook formulation is: "People are part of the system. The design should match the user's experience, expectations, and mental models."

Blobbing

I'm a blogger currently publishing too many blogs on blogspot and I have a stupidly large number of Reddits. Blogspot has a bunch of templates. Their four most recent ones are Contempo, Soho, Notable and Emporio. I only use those four these days because they were made available after planet Earth moved to mobile first as its standard.  Those four are mobile friendly templates. The older ones are not, so they don't play well on a phone and my internet life is 99 percent on my phone. I have a lousy never updated website and lousy never updated reddit called pocket puter because my phone is my window on the world. One part poverty, one part physical limitations from my medical situation.  I don't think I have a single blog using Contempo. I have a few using Notable and Emporio but most of my blogs are the Soho template and I've been removing the pointless decorative photo on the landing page that I used to think I needed  because my sites are pretty stripped down, bare bon...