This code displays the map on all browsers. Without this code chrome card take the whole browser.
gObjCarte The variable is used in several functions for manipulating the map is therefore declare global browser.
For ease of use and reuse of creating a collection of process in the overall procedures browser
Collection Name: pGestionCartes
The procedure is written in javascript. Therefore WL click after creating the procedure
Creating the map:
/ / Summary: Creation of the google map
/ / Syntax:
/ / CreeCarte (
/ /
/ / Parameters:
/ / sNomChampCarte: Field Name HTML (
/ / nlat: latitude of center of the map
/ / nlong: longitude of the center of the map
/ / Return Value:
/ / No
/ /
function CreerCarte ( sNomChampCarte , nlat , nlong )
{
if ( nlat == 0 ){
nlat = 48.856558 ;
};
if ( nlong == 0 ){
nlong = 2.350966 ;
}
/ / Creating the map
was latlng = new google . maps . LatLng ( nPlease , nlong );
was myOptions = {
mapTypeControl : true, zoom : 5 , Center : latlng , mapTypeControlOptions : { style : google . maps . MapTypeControlStyle . DROPDOWN_MENU }, navigationControl : true, mapTypeId : google . maps . MapTypeId . ROADMAP
}
/ / create the map
gObjCarte = new google . maps . Map ( document . getElementById ( sNomChampCarte ) MyOptions )
}
0 comments:
Post a Comment