Results 1 to 7 of 7

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    The Conquerer I Be RazorJack's Avatar
    Join Date: Jul:2001
    Location:
    Posts: 3,108

    google maps api 3 js ...

    div (style="display:none") .

    (style="display:block"), , div , - 1/4 ...

    JS ...

    :
    Code:
    	function addMap(divId, coordinates) {
    		var coord = coordinates.split(",");
    		if (coord.length != 2) return;
    		var latlng = new google.maps.LatLng(coord[0], coord[1]);
    		var mapOptions = {
    			zoom: 16,
    			center: latlng,
    			mapTypeId: google.maps.MapTypeId.ROADMAP
    		};
    		var map = new google.maps.Map(document.getElementById(divId), mapOptions);
    		var marker = new google.maps.Marker({
                position: latlng,
                map: map,
    			icon: 'img/icon_map_marker.png'
            });
    		return map;
    	}
    : , , .
    javascript ? ...
    Last edited by RazorJack; 20th September 2012 at 19:16.

  2. #2
    Registered User
    Join Date: Mar:2008
    Location: Buglaria
    Posts: 86
    display:none, position:absolite; top:-9000px; static?

    , .

    Edit: resize jQuery $(window).resize() $(window).trigger('resize'), .

  3. #3
    Registered User
    Join Date: Jul:2005
    Location: Sofiq
    Posts: 2,798
    top:0;left:0;margin-left:-100%;

    .

  4. #4
    ! vbTheKing's Avatar
    Join Date: Sep:2003
    Location:
    Posts: 4,138
    CSS:
    visibility:hidden;
    visibility:visible;
    ''? * *
    - !
    ...

  5. #5
    The Conquerer I Be RazorJack's Avatar
    Join Date: Jul:2001
    Location:
    Posts: 3,108
    visibility:hidden , div , collapse-.
    .

    onresize vent element.dispatchEvent ( element.fireEvent )

  6. #6
    Deleted User 4eRNoBiL's Avatar
    Join Date: Oct:2005
    Location:
    Posts: 739
    Javascript- , . resize, google.maps.event.trigger(map, 'resize').
    stackoverflow .
    Fujistu Lifebook E756 | Core i7-6500U / 400MHz-3.1GHz | 8 GB DDR4-2133 | Samsung PM871 / 256 GB SSD | 15" 1920x1080 | Manjaro Linux + kernel 4.19

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Copyright © 1999-2011 . .
iskamPC.com | mobility.BG | Bloody's Techblog | | 3D Vision Blog |