12/8/2022 0 Comments Google wms urlThe function then does three things to the map. In this case, the coordinate 38.897000, -77.02000 is where the code will center the map when it opens (Washington DC). It's a way to specify a set of coordinates. The centerat variable is a GLatLng object. Gmap = new GMap2(document.getElementById("gmap")) In the head of the page, add a script block with a function to create the Google Map: The width and height of the map are specified in the style attribute of the div: Inside the page body, add a div element that will contain the map. In this example the key is shown as “abcdefg.” Replace it with a unique key. It also includes the unique Google Maps API key. This line tells the page where to find the JavaScript file that includes all of the symbols and definitions needed for using the Google Maps API. Load the Google Maps API by adding the following line in the header section, just after the meta tag (see the complete code at the bottom of this page if unsure where it goes): Paste or type the following content to create an outline for the HTML page:ĪrcGIS JavaScript Extension for the Google Maps API Example Create the page in a Web server's folders, or in any location on the hard disk. In an HTML or text editor, create a new web page or file. This example shows how to display a Google map inside a web page.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |