Leaflet Maps Marker is a WordPress plugin that allows you to create a map with marked points of interest. If you are the administrator of a site, go to “Plugins” on the left-hand side of the Dashboard and then find (Command+F) “Leaflet” and Activate it. I have gone ahead and activated it on our site, just so you can practice and see what it looks like.
Once the plug-in is activated, you’ll see a menu item called Maps Marker on the left-hand side of the Dashboard. If you hover over or click this item, you’ll see the full submenu for Maps Marker.
To make a map of the areas you’re exploring, you will need to create one or more layers, and then add markers. The following tutorial will lay out the basic steps of making a map.
Layers: Delineating the Territory of Your NYC Neighborhood or Other Area. ∧ ∨
- Add New. To start, you’ll need to create a layer for your chosen neighborhood/city/region. Click “Add new layer” in the submenu.
- Name It & Find It. Give your layer the name of your area. Then, search for the neighborhood in the location search bar (or by zooming in on the NYC area default layer map). As you’ll see, this search area is powered by the all-knowing Google, which, effectively means that you don’t need to be super-precise for the program to find your neighborhood on the map. Searching by the neighborhood’s name should get you there, or nearly.
- Find Your View. You’ll then want to zoom in and drag the map around to find a map view that shows most of your area. Try out zoom level 15 (specified to the left of the map). This view will be the overall view of your neighborhood that you populate with points of interest.
- Publish It. When you’re satisfied with your layer, click the green publish button at the top of this editor area. If you click “List all layers” in the Maps Marker submenu, you’ll now see your layer listed along with the rest.
Markers: Identifying Important Points of Interest in Your Neighborhood. ∧ ∨
- Add New. Okay, now you need to populate your map with points of interest! This is where the markers function comes in. Click “Add new marker” in the submenu to get started.
- Name It. You’re now in the markers editing area, which has a similar feel to the layers area, but there’s a lot more here to be done! Start off, as you did with your layer, by giving your marker a meaningful name.
- Find It. Search for the location of your marker by address or other means (cf. step #2 in layers). If you use the search box, Maps Marker will suggest a location for your marker. You can move this marker simply by clicking inside the map area. You may want to change to zoom level 15 or closer to make sure you’ve got your marker in the right place.
- Assign Layer (if using layers). Next, look to the left of the map where you’ll find, right under the zoom mechanism, a drop-down menu where you can specify your layer. Click this drop-down and select the layer you created above.
- Choose an Icon. Now it’s time to scroll down the page and see all the fun you can with your marker. Right under the map, you’ll see the standard blue marker that’s being used to mark out your location in the map above. Click it, and a whole host of other icons will become available. What icon you choose may depend on how you decide to structure your map.
- Add Text, Etc. The next area is a text editor similar to the one you use when publishing posts. Like in the post editor, you can add a wide variety of content and media here.
a. First, repeat the marker name in bold at the top.
b. Add any descriptive or informational text about this point of interest.
c. You can also add images, media, links, etc. here. - Publish It. Click publish on the bottom of this editing screen to add your marker to the layer.
- Rinse, Repeat, Check. Repeat the above steps to add additional markers. If you view your layer (through the “List all layers” submenu), you’ll see any markers assigned to that layer in the editing area for your layer. You can also check that your marker is correctly assigned to a layer by going to the “List all markers” submenu, finding your marker, and checking the layer column.
Making Your Map Visible! ∧ ∨
Once you’ve made a few markers, you may want to see how your whole map looks. To do this, you will need to add a shortcode for the map to a post or page. A shortcode is a short, square-bracketed line of text that will easily call up the code for the map (rather than you having to copy and paste a bunch of PHP or other code, which just ain’t easy or allowed). There are two ways to do this:
- Go to the “List all layers” submenu. Find your layer in the list and find the shortcode for your layer in the last column. It will look like this:
[mapsmarker layer="SOME NUMBER"]
. Copy that shortcode, bracket to bracket, and paste it into a post. - Alternately, once you’re in the post editor for a particular post, you’ll notice that there is an “Add Map” button next to “Add Media” near the top of the post editor. When you click that, you’ll see a list of layers and markers you can add to your post. Find and click yours, and, voilà, your shortcode appears. This option may become a little unwieldy as everyone starts to add layers and markers.
June 15, 2023 at 12:46 am
What are these steps for? It looks so complicated.
November 8, 2023 at 6:24 pm
Thank you for letting me know about this plugin. Could be useful for me.
March 12, 2024 at 2:58 pm
Indeed, self-education is an important component of the development of each person. Personally, I believe that self-education can be even more effective than formal education in some aspects. It allows us to independently choose topics that interest us and explore them more deeply. The Internet, for example, opens up many opportunities for self-education – from online courses to blogs and video lessons.
October 4, 2024 at 4:44 am
En iyi Avcılar tesisatçı
October 4, 2024 at 4:45 am
Gebze bölgesinde yer alan Gebze tesisatçı firması her zaman açıktır