![]() ![]() ![]() aStream.Write(HTMLStr, Length(HTMLStr)) WebBrowser1.Navigate('about:blank') //Set the location to an empty pageĪStream := TMemoryStream.Create //create a TStem to load the Page from the stringĪStream.WriteBuffer(Pointer(HTMLStr)^, Length(HTMLStr)) //Copy the string to the stream Procedure TfrmMain.FormCreate(Sender: TObject) ' bikeLayer = new () '+ //Create the Bicycling Layer instance ' trafficLayer = new () '+ //Create the traffic Layer instance ' map = new (document.getElementById("map_canvas"), myOptions) '+ ' mapTypeId: '+ //Set the default type map ''+//Declare the globals vars to be used in the javascript functions HTMLStr: String = //i put The code for the web page page wich load the google maps in a string const, you can use an external html file too or embed the page in a resource and then load in a stream Procedure CheckBoxStreeViewClick(Sender: TObject) Procedure CheckBoxBicyclingClick(Sender: TObject) Procedure CheckBoxTrafficClick(Sender: TObject) Procedure ButtonGotoLocationClick(Sender: TObject) Procedure ButtonGotoAddressClick(Sender: TObject) Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,ĭialogs, OleCtrls, SHDocVw, StdCtrls, ExtCtrls, XPMan, ComCtrls,MSHTML Google Map Javascript API V3 – Map TypesĬheck the next full commented sample application written in Delphi 2007, the source code is available on Github. ![]() The Google Maps Javascript API V3 – Basics.In this sample application you can use the traffic layer, Bicycling layer and the street View Control to activate the panorama view.įor additional info about the Google maps api v3 you can check these links. The Google Maps Javascript API Version 2 has been officially deprecated, so it’s time to update to the new version 3, this post shows how you can use the new Google maps V3 API from Delphi. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |