Wednesday, July 21, 2010

Buy Blue Screen For Filiming

WebDev 15 - Google Maps V3

To view Google Maps v3 WEBDEV site, I am inspired by the example of the LST WW_Cartes 72.

To enter v3 APIs google maps, it must of course consult the doc:

From this introduction and the API doc ( http://code.google.com/intl/fr-FR/apis/ maps / documentation / javascript / reference.html ) can start in WEBDEV.

In the Advanced tab of the page description to:


this page, put a text field in HTML initialization code the latter put the following code:



This code displays the map on all browsers. Without this code chrome card take the whole browser.

Onload Then in the code of the page put the code:

gObjCarte is an integer
CreerCarte ("MAP", 0.180)

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 ( .. alias or id specified in DIV)

/ / 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