This plugin makes it easy to put multiple markers on Map using Google Map API V3.
Map Marker is very useful when you have a list of data & you want to show all of them on Map too.
Like most of the jQuery plugins, this plugin is very straight forward to setup.
It has some nice options & uses JSON formatted data for every Locations.
Also make note that you must have to pass the Location values using Lattitude & Longitude co-ordinates of the that Location (due to Google map API limitation).
Below steps will make more sense of using this plugin.
Step-1 : Include necessary JS files in your <head> tag
<script type="text/javascript" src="http://code.jquery.com/jquery-1.7.1.min.js"></script><script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?sensor=false"></script> <script type="text/javascript" src="js/mapmarker.jquery.js"></script>
Step-2 : Create a Map container using divtag & give it an ID in your html body
</pre> <div id="map" style="width: 550px; height: 450px; border: 2px solid red;"></div> <pre>
Step-3 : Apply the Plugin to the Map element using below code. Put the code before closing </head>tag
<script type="text/javascript">// <![CDATA[
$(document).ready(function(){
//set up markers
var myMarkers = {"markers": [
{"latitude": "31.42866311735861", "longitude":"-98.61328125", "icon": "img/house.png", "baloon_text": 'This is <strong>Texas</strong>'},
{"latitude": "35.101934057246055", "longitude":"-96.6796875", "icon": "img/castle.png", "baloon_text": 'This is <strong>Oklahoma</strong>'},
{"latitude": "38.61687046392973", "longitude":"-98.876953125", "icon": "img/house.png", "baloon_text": 'This is <strong>Kansas</strong>'}
]
};
//set up map options
$("#map").mapmarker({
zoom : 5,
center : 'United States',
markers : myMarkers
});
});
// ]]></script>
myMarker : We have used this variable to store JSON data of each locations. Each locations will include 4 entities.
1. latitude – latitude of the location
2. longitude – longitude of the location
3. icon – a custom icon to display on map as marker (16 x 16 pixels size)
4. baloon_text – a Text to display in a Baloon on map when clicked on that specific Marker. You can also use this text in HTML format. Make sure you use single quotes(‘) only for HTML format baloon text.
Use below link if you want to get latitude & longitude
http://www.findlatitudeandlongitude.com/find-address-from-latitude-and-longitude.php
Additionally, there are 2 more options which you can set on Map.
1. zoom – to set default zoom level of the Map. Increase the value to zoom-in & Decrease the value to zoom-out
2. center – to specify the center location of the Map. Make sure the center location address you enter is spelled properly.
3. markers – this will be simply the Markers variable we created, here it is “myMarkers”
Step-4 : That’s All
I have tested the plugin on Windows with Chrome, FF 3.6, IE 6, IE 8, Safari 4.
If you find any issue, please post a comment on it & I will make the corrections.
Pingback: jQuery Map Marker Plugin | Welancers.com - EtondeGroup Blog of Web Applications | EtondeGroup Blog of Web Applications
Pingback: jQuery Map Marker, posizionare marker multipli sulle vostre mappe - sastgroup.com
Pingback: Javascript | Pearltrees
Pingback: 50 New jQuery Plugins For Web Developers – WEB前端开发- 专注前端开发,关注用户体验
Pingback: 40 Recently Released jQuery Plugins
Pingback: 40 Recently Released jQuery Plugins | auto
Pingback: Wordpress Leaks » 40 Recently Released jQuery Plugins
Pingback: 40 Recently Released jQuery Plugins
Pingback: jQuery Google Map Marker Plugin | ChurchMag
Pingback: 60 jQuery Plugins You Should Try Today | 网络钻头
Pingback: EKHO Unique Joomla Template (Portfolio) | WP Themes
Pingback: 60 jQuery Plugins You Should Try Today « C++
Pingback: EKHO Unique Template (Creative) | Themes Tub
Pingback: EKHO Unique Template (Creative) | Gooeypress
Pingback: Cmontheme >> Tous les thèmes wordpress, templates, magento, prestashop, ecommerce themes. » EKHO Unique Template (Creative)
Pingback: KALYPSO Highly-Premium Multipurpose Template (Creative) | themeReview
Pingback: KALYPSO Highly-Premium Multipurpose Template
Pingback: Best jQuery Plugins You Should Try | iGeeki
Pingback: KALYPSO Highly-Premium Multipurpose Template | Creative Wordpress Themes
Pingback: w3talks 50 полезных плагинов JQuery 2012 года » w3talks
Pingback: 50 Most Useful jQuery Plugins from 2012
Pingback: Ekho – Unique WordPress template (Creative) › SceneSocial.me
Pingback: Ekho – Unique WordPress template (Creative) | Wordpress
Pingback: Ekho wordpress theme download.HotFile & Filesonic.
Pingback: Ekho – Unique WordPress template (Creative) | My Blog
Pingback: Free Download » Ekho – Unique WordPress template (Creative)
Pingback: Ekho – Unique WordPress Theme (Creative) › SceneSocial.me
Pingback: Ekho – Unique WordPress Themethemereviewer.com | themereviewer.com
Pingback: Ekho - Unique WordPress Theme (Creative)Web Procyon
Pingback: KALLYAS – Responsive Multi-Purpose Wordpress Theme (WooCommerce) | themeReview
Pingback: KALLYAS - Responsive Multi-Purpose Wordpress Theme (WooCommerce)Web Procyon
Pingback: KALLYAS – Responsive Multi-Purpose Wordpress Theme (WooCommerce) › SceneSocial.me
Pingback: Free Download » KALLYAS – Responsive Multi-Purpose WordPress Theme (WooCommerce)
Pingback: KALLYAS – Responsive | WordPress Planet
Pingback: Ekho – Unique WordPress Theme (Creative) | WebForest
Pingback: Ekho - Unique WordPress Theme (Creative) - About all
Pingback: KALLYAS - Responsive Multi-Purpose WordPress Theme (WooCommerce) - About all
Pingback: Ekho – Unique Responsive WordPress Theme (Creative) › SceneSocial.me
Pingback: Ekho – Unique Responsive WordPress Theme (Creative) | Wordpress
Pingback: KALLYAS – Responsive Multi-Purpose WordPress Theme (WooCommerce) | Themes Tub
Pingback: KALLYAS wordpress theme download.HotFile & Filesonic.
Pingback: Porto – Responsive HTML5 Template (Business) http://crivos.com/envato/banner-theme-forest.png Porto – Responsive HTML5 Template (Business) http://themeforest.net/item/porto-responsive-html5-template/4106987 Crivos Overview Porto is a professio
Pingback: Porto – Responsive HTML5 Template (Business)Graphic Wordpress PHP
Pingback: KALLYAS – Responsive Multi-Purpose WordPress Theme | themelovers.com
Pingback: jqueryexample.com » jquery plugins 2012 – 2013 » jqueryexample.com
Pingback: KALLYAS Responsive Multi-purpose Joomla Template (Retail) | WPLITE.ORG
Pingback: KALLYAS – Responsive Multi-Purpose WordPress Theme | ThemeToucan
Pingback: KALLYAS – Responsive Multi-Purpose WordPress Theme | intenseview