Vkládání map Seznamu (mapy.cz)

Pro vkládání seznamáckých map do Wordpressu lze využít bohatě zdokumentované API.

  1. v header.php si natáhneme loader
<?php  if (is_page('123') ) { // (ev. is_single('456')) v případě, ze chceme mapu jen na konkrétní stránce či postu, podmínkou určíme id stránky/postu ?>
<script type="text/javascript" src="https://api4.mapy.cz/loader.js"></script><script type="text/javascript">// <![CDATA[
Loader.load()
// ]]></script>
<?php } ?>
  1. do kódu stránky (v html editoru) vložíme do stránky kód pro zobrazení mapy
<div id="m" style="width: 400px; height: 250px;"></div>
<!-- zde šířka, výška, případně rámeček a float -->
<script type="text/javascript">// <![CDATA[
var center = SMap.Coords.fromWGS84(17.893545, 49.932743); // koordináty x a y z url místa na mapy.cz
var m = new SMap(JAK.gel("m"), center, 15); // číslo udává stupeň zoomu
m.addDefaultLayer(SMap.DEF_BASE).enable(); // základní mapa
m.addDefaultControls(); // vloží ovladač pro posun a zoom
var layer = new SMap.Layer.Marker(); // vložení značky
m.addLayer(layer);
layer.enable();
var options = {};
var marker = new SMap.Marker(center, "myMarker", options);
layer.addMarker(marker);
// ]]></script>
  1. no a mapa pak vypadá třeba takhle.

Vychytal to Bigdrobek.

Vytváření uživatelských map

MapQuest Map Builder
http://wordpress.org/…map-builder/

MapQuest Map Builder beta is a quick, easy tool for adding maps to your WordPress posts or pages. With version 1.0 you can easily add locations to the map via search, enter lat/long coordinates, or drop points directly on the map.

For each point added to the map, you can customize the map pointer icon, title and description. You can even use custom images that you host as the map pin.

Map Builder also has tools for drawing lines and shapes on your map. Create lines, rectangles, ellipses, and custom polygons on the map and set the color, opacity, border color and border width for each polygon on the map.

MapQuest Map Builder inserts a map as either an embedded interactive map in an iframe or can also insert as a static image file.

No API key or other sign-up required. Start making maps instantly!

Vkládání Google map

Google Maps made Simple
http://wordpress.org/…google-maps/

Point, Click, Map. Build and insert Google Maps into your posts just as easily as you insert images. All WYSIWYG: no JavaScript, no XML, no coding at all.

  • No API key needed
  • New features
  • Fast downloads: visitors to your blog only download one extra file from Google - nothing from you.
  • Markers and custom icons
  • Routing
  • Map Controls
  • Completely customizable size and alignment

Project Home, full instructions, and help: http://www.wordpresspluginfu.com/wpgmappity/

Alternativy:

Google Maps for WordPress
http://wordpress.org/…r-wordpress/

This plugin allows you to easily insert Google Maps into your blog, making use of the new shortCode system in WordPress 2.5. The maps can be configured to offer directions to or from the location, show or hide the zoom/pan controls, show/hide map type (street view, satellite, etc), activate zoom using mouse wheel, and more. PHP5 Required.

MapPress Easy Google Maps
http://wordpress.org/…r-wordpress/

MapPress adds an interactive map to the wordpress editing screens. When editing a post or page just enter any addresses you'd like to map.

The plugin will automatically insert a great-looking interactive map into your blog. Your readers can get directions right in your blog and you can even create custom HTML for the map markers (including pictures, links, etc.)

Vyladění pomocí API »

RomeLuv Google Maps
http://wordpress.org/…r-wordpress/
demo »

Google Maps on your blog, the easy way: every post can have an address. Instantly add a Map. Build then a category map. Ideal for mapping itineraries.
Map shows all the posts which have the address field filled. Generates where you want a Global Map with all the posts, placing this global map in a standard WordPress Page via a simple shortcode. Vhodné např. pro zobrazení referencí.

Basic Google Maps Placemark
http://wordpress.org/…-placemarks/

BGMP creates a custom post type for placemarks (markers) on a Google Map. The map is embedded into pages or posts using a shortcode, and there are settings to affect how it's displayed. You can create markers that will show up on the map, and set their icons using the Featured Image meta box. When a marker is clicked on, a box will appear and show the marker's title and description.

How To: Add a Map to WordPress: Plugins, Examples & Advice

Stellar Places
https://wordpress.org/…llar-places/

Stellar Places is an intuitive plugin for easily creating, managing and displaying locations using Google Maps.