Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function em_maps() {
- jQuery('.em-location-map').each( function(index){
- el = jQuery(this);
- var map_id = el.attr('id').replace('em-location-map-','');
- em_LatLng = new google.maps.LatLng( jQuery('#em-location-map-coords-'+map_id+' .lat').text(), jQuery('#em-location-map-coords-'+map_id+' .lng').text());
- maps[map_id] = new google.maps.Map( document.getElementById('em-location-map-'+map_id), {
- zoom: 8,
- center: em_LatLng,
- mapTypeId: google.maps.MapTypeId.ROADMAP,
- mapTypeControl: false
- });
- var marker = new google.maps.Marker({
- position: em_LatLng,
- map: maps[map_id]
- });
- maps[map_id].panBy(0,0);
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement