Sunday, December 20, 2009

Blusher For Olive Skin

How to open a popup window from the blog

How to open a popup window from the blog

http://iolecal.blogspot.com/ 2009/04/come-aprire-una-finestra-popup-dal-blog.html

E 'can open a popup window by Blogger and display it in an image or text by clicking on a button or a link in blog.

For example, clicking on this link opens a popup with the content of the post within the area enclosed by the board:


Let's see the javascript code to insert into the template of the blog and the syntax to display the popup.

First line you must enter this code:



where

id is the id of the div whose content must be displayed in the popup while the two numeric values \u200b\u200b
400 and 300
represent the size of the popup window. If the two dimensions are not specified the default is 800x600.
What is the id of a div and what is it?? In my post, the html of the div with the border is as follows:

id = "popup"
style = "border: 3px double rgb (247, 155, 173); margin: 0pt auto ; padding: 15px; width: 260px; height: 200px; text-align: center; ">

Photo by:
Amsis
link to see the popup with the content div. openPopup function may be associated with the event onclick

a link in an image but also
. In this case, the syntax is:

Own Marriage Invitation Mail

How to open link in new page or in a popup window


How to open link in new page or in a popup window

http://iolecal.blogspot.com/2009 / 10/come-aprire-i-link-in-una-nuova-pagina.html

: how you can open a link in a new window or in a popup window ?

Already long ago, I wrote the post How to open a popup window from

blog: the script I made to display the pop-up a portion of the post by clicking on a link. Now let's see how to open a link in a new window or a popup, it is useful if you have a bog on Blogger or on other platforms.

First, the syntax of a link is as follows:

address "> Name




where address can be the url of a blog, a website, an image or your post while Name is the name displayed on the page. For example if I write:

http://www.flickr.com/photos/ioleblog/ "> header My Flickr!

page displays the string" My header on Flickr! "I see the link and clicking on the Flickr page with my header. failing to set any property of the website, the address will open the same page where we are. To open a link instead of just add in a new window property target
this:




target = "_blank" > Name

When the target attribute is omitted, the default link will open the same page. Instead of a name, you can also insert an image, the syntax then becomes:

target = "_blank"
>


And here's the result: my header on Flickr!
(in a new window)
To open the link in a popup, but the syntax is as follows: address ',' name
window ','');">
features window
;
Name
where Name and address signifivato the same as before, while
window name used to identify the window we are going to open (it's optional, so we can write
''). Regarding window here are some features:

width and height
: width and height of the window in pixels
    (eg
  • width = 500, height = 400 )
    left and top : distance from the left and from the top of the monitor
  • (eg
  • left = 200, top = 300 )
    resizable: the window can be resized (
  • resizable = yes or

  • resizable = no ) fullscreen : the window opens full screen (
  • fullscreen = yes or

  • fullscreen = no ) menubar : the window has the menu bar
  • (
  • menubar = yes or
    menubar = no ) toolbar : the window has a toolbar of the browser
  • (
  • toolbar = yes or
    toolbar = no ) location: the window has the address bar of your browser (
  • location = yes or

  • location = no ) scrollbars: the window has scroll bars, side (
  • scrollbars = yes or

  • scrollbars = no ) status: the window has a status bar
  • (
  • status = yes or
    status = no ) features must be separated by a comma. Let's see an example: a pop-size 800x600px fixed (ie non-resizable ), located in the upper left
monitor, without any
bar. My header on Flickr
and behold the result:
My header on Flickr!
(in a popup)

Coin Pusher Free Game

Create a pop-up blogger

Create a pop-up blogger


Create a pop-up
is to open a new browser window containing a page or specific content.

In short, are defined

all pop-up advertising windows that suddenly appear while we're browsing certain web sites or windows that open when you click on the appropriate link.
The programming language used to create these special windows is the famous JavaScript
.
After this brief introduction, we turn to what is the body of quet'articolo, the creation of a pop-up bloggers.
What we are going to create is something quite different from the various advertisements that suddenly appear. Our
fact, it will open only when one of our members have decided to click on a particular link.





Try clicking on this link

to understand what we're really talking about. Should open a small window size 300x300 containing the logo of the chamber of the blog. This is the well known appearance of a pop-up

The creation of a pop-up is not particularly difficult. Just follow some simple precautions. First, let us go in Layout / Edit HTML and execute, as a precaution, the backup
of our model.

Without the backup, we look for the string
and insert this code just before:
function openPopup (dividends, W, H) {if (W == undefined




finished making changes save the template. creazione pop-up We will then invoke the code that will allow us to integrate the pop-up on our blog.
Then we will see how to put one of these windows into the post or widget blogger.
Do not worry, it's a simple procedure. Just make use of this line of code:



link



To define the content of this pop-up, simply create a
id = pop-up as in the example reported:



background: # 000000;
text-align: center; ">

values \u200b\u200b200 and 300 indicate the size of our window. They can then be modified at will, and if left blank, will assume the values \u200b\u200b1024x768.

Outside India Can We Use Sbi Card

test tracks - iframe



:
after a few seconds (depending on your connection) will appear on
path






Cima_Grappa_2

Gran_traversata

Grappissima2009
Massiccio_del_G

gf_marathon_gra

grappissima08





1/87 ship

Enter the number of pages on Blogger !


Enter the number of pages on Blogger!


Older Posts
","
"with the number of pages: definitely impact, will enable a more intuitive navigation and quick blog. Initially proposed by Mohamed Rias , this change has been reported with some adjustments by
Iole (image whom I thank for having been helpful
one evening some time ago - do you remember when you're dead tired and just before turning off PC you realize that the blog is all busted? Here was one of those nights). The
propose again to my turn, with some small change. This appesentirà not significantly change the loading of the blog, and I intend to do it as soon as possible on this blog. As always, I will refer to the template Minima , but there should be no major problems on any other template.
Step 1 - Code for customizing colors
Go to Layout-> Edit HTML
, and look for these lines of code (to start):

/ * Variable
definitions ====================

Just below
, paste this:
type = "color" default = "# ccc" value = "# ffdfbf" >

type = "color" default = "# 000" value = "# CC0000">
  


And save the template. In
Layout-> Fonts and Colors
, you will already have the ability to customize the colors of links to pages that will insert:





image Step 2 - CSS code to define the appearance of links to



Return to Layout-> Edit HTML , and look for this line of code (CTRL + F

the browser):




]]>




Immediately above, paste this :


. showpageArea
{margin-top: 12px;

margin-bottom: 10px;

}
.showpageArea a {

font-size: 12px;
 font-weight: normal;    
text-align: center;

text-decoration: none;

border: 1px $pagefwcolor solid;

color: $pagefwcolor;

padding: 3px;

margin-left: 5px;

background: $pagebgcolor;

}

.showpageArea a:hover {

font-size: 12px;

font-weight: normal;

text-align: center;

text-decoration: none;

border: 1px $pagebgcolor solid;

color: $pagebgcolor;

padding: 3px;

margin-left: 5px;

background: $pagefwcolor;

}



.showpageNum a {

font-size: 12px;

font-weight: normal;

text-align: center;

text-decoration: none;

border: 1px $pagefwcolor solid;

color: $pagefwcolor;

padding: 3px;

margin-left: 5px;

background: $pagebgcolor;

}



.showpageNum a:hover {

font-size: 12px;

font-weight: normal;

text-align: center;

text-decoration: none;

border: 1px $pagebgcolor solid;

color: $pagebgcolor;

padding: 3px;

margin-left: 5px;

background: $pagefwcolor;

}

.showpagePoint {

font-size: 12px;

font-weight: normal;

text-align: center;

text-decoration: none;

border: 1px $pagebgcolor solid;

color: $pagebgcolor;

padding: 3px;

margin-left: 5px;

background: $pagefwcolor;

}

.showpageTot {

font-size: 12px;

font-weight: normal;

text-align: center;

text-decoration: none;

color: white;}






and save your changes.



Step 3 - Entering your Javascript



Go to Layout-> Page Elements , and add an element of type HTML / Javascript

(here the element is inserted under the section of the post, but you can add it anywhere).

Within the (let untitled) paste this Javascript code:




showpageCount function (json) {
was thisUrl = location.href;
was htmlMap = new Array ();
was isFirstPage = thisUrl.substring (thisUrl.length-5, thisUrl.length) == ". Com /";
 was isLablePage = thisUrl.indexOf ("/ search / label /")!=- 1;   
PageCount var = 5;






displayPageNum var = 3;








The first is the number of posts that will appear on every page
: in this case is
5. To get a better effect, I suggest to put the same number of posts that have already been displayed, and you can change (but do not need it) from Layout-> Page Elements , click on Edit
section of the post:



The second indicates how many links to pages appear . Leaving 3, is the result:




After pasting the code, save the item and move it below the area of \u200b\u200b post : A Then saved and displayed the blog to see the effect. All done!


image


Warning!


image


Changing
queries the blog feed, so it may take a few minutes before the "notice" of the new post
You can edit the Javascript to change font size and generally the appearance of links to customize the colors
going
Layout-> Fonts and Colors



After an evaluation of the points above,
Tell us about any issue si presenti
.

Wednesday, December 16, 2009

Difference Between White And Eggwhite Cm



http://code.google.com/intl/it-IT/apis/maps/documentation/examples/index.html

How Long Do Lilypadz Stay On For

Google Maps in Blogger: Advanced Subjects

Google Maps in Blogger: Advanced Subjects
    This is part of my tutorial on how to use Google Maps into Google's Blogger service
  • . This section teaches advanced techniques and debugging tips.
  • Blogger's Big Gotcha!
  • What makes Google Maps so difficult to install into a blog from Blogger is the fact that all line feeds in a post are converted to
  • tags. So when you insert the required Javascript into your blog posting, tags are inserted in there. That causes the Javascript interpreter to fail in the user's browser.
  • The solution is to make sure that there are no line feeds in any javascript in your blog post. Everything between the
    and the
tags must be one long line.

Common Problems The most common problem I have encountered are Javascript errors.
Some are introduced by a
getting slipped into the logic from a linefeed. If your map is not showing up, then view the source code that is presented to your browser. Look closely at the Javascript from your post. See if there were any changes introduced from what you thought you had coded.
Another problem that might bite you is switching longitude and latitude. It is easy to forget and getting them backwards. It is a good idea to know roughly what the latitude and longitude of your target so you will recognize them at a glance. A Helpful Tool

A good text editor will help you prepare your code for Google Blogger. It will make it easy to strip out the line feeds to prevent Blogger from inserting statements. I use
EditPadLite . After I write the HTML version of the post, I use the editor's find and replace to remove all of the line feeds. With one command, it converts the post to one long line of HTML.

The International Date Line: I've discovered a problem, or bug, with Google Maps that impacts my brother's blog. The polyline showing the voyage path can not cross the International Date Line from east to west. Instead, it joins the point on the west side of the line by going east across the planet.

To get around this problem for now, I've broke the line into to parts, one on each side of the line. So there is a tiny gap across the line now. I will work on seeing if I can get a better solution to this problem.


Putting the map in the blog's info column You don't have to put a map in a post. You can also stick it in a side column so that it always shows up. To do this, you have to take all the code you inserted into the blog post and instead insert into the appropriate place in your blog's template.

You should also reduce the map size from 400 down to 200 or so pixels, since the info column tends to be narrower. In your blog's template, the area where the info column contents are defined is pretty easy to find.


Multiple Maps

I've created
a chapter
to demonstrate how to implement multiple maps into Blogger.


Internet Explorer Quirks Internet Explorer seems to have more "problems" with the Maps-API than Firefox does. I put problems in quotes because it may not be a problem as much as a stricter interpretation of the rules. The above technique is designed to get around these limitations.
In the stuff you added to the template was a specification for VML. This is needed to support the GPolyLine object in IE. The need for this is buried in the API documention.

Christopher Uckermann Fan

Google Maps in Blogger: Link Method

Google Maps in Blogger: Link Method

This is part of my tutorial on
how to use Google Maps from Google's Blogger
service. This is called
The Link Method and is the fastest and simplest way to use Google Maps with your blog.
This method is nothing more than a custom coded link in your post to Google Maps. Arguments in the URL in the link control what is displayed on the map. The downside of this method is that the map is outside of the your blog in a different browser window.



Simple Link Method

The quickest and easiest way to get the URL you need is to simply have Google Map give it you, which it will do gladly! Here is how to do it...
Open a new browser window to
http://maps.google.com . Find the map location and scale you desire. Once you are happy with what you see, click the ' Link To This Page
' command. That will update the URL on the address bar of the browser with the URL needed to reproduce the image you are seeing. Then copy the URL from the address bar and use it in your blog post. Simple as that.
Then when the user viewing the blog clicks the link, they will be taken to Google Map and shown the same map that you saw. For example: Copy
this URL
into a browser and see what it pulls up.

It should pull up a hybrid image of Santa Barbara at a scale of 500 feet/200 meters, and with a marker at 101 State Street.


Advanced Link Method With this method, you code the arguments in the URL to control what is displayed. There are many arguments that Google Maps can use. But we will only concentrate on a small number of critical ones that will get your started. These arguments are as follows:
?ll
=latitude,longitude. In decimal format. Anything over 6 decimal places is overkill.
You can use latitude and longitude to specify the map location. This is handy for when you do not have an address, especially outside of the US. All you need to do is pass the argument "LL" with the latitude and longitude as decimal values. Example "
ll=36.605451,-121.892195
".

&q
=address string. Instead of a lat/long, you can use an address. Each word of the address must be separated by a plus (+) sign. It also creates a marker balloon pointing to your address. Example "
q=101+State+St,+Santa+Barbara,+CA " The ll
and
q arguments are mutually exclusive. The q
argument will be ignored if you have the
ll argument.


&z
=zoom. The zoom value as integer ranging from 0 to about 20. A value of 0 shows the whole earth. 20 seems to be about as close as you can zoom in. I use 15 as a good value to start with. Example "
z=15
".

&t =type. Controls what type of map is displayed. Value is "m" for map, "k" for satellite , or "h" for hybrid. The default is "m".

&om =0 or 1. Controls the small map in the lower right corner. 0=hide, 1=show.
The arguments can appear in any order on the URL. But I recommend that you always start with LL. The first argument is always proceeded by a "?", and all following arguments are delineated with an ampersand (&). Hence, the reason I have the arguments coded as "?ll", "&z", and so on.
Example: The following URL uses the LL argument to focus on Monterey, California at the highest zoom scale, which is 1000 feet/200 meters. Monterey is at latitude 37' 30.1" North and longitude 122' 29.0" West. A simple minute/second conversion to decimal values translate those coordinates to latitude 36.605451 and longitude -121.892195 decimal values. It is a hybrid map (t=h) with the small map in the corner closed (om=0).

Better Map Window Control When a reader clicks on a link in your blog, their web browser is normally goes to the new page. So a simple link to Google Maps will have them leave your blog and go to the Google map page. When they are done looking at the map, they can normally hit the browser's back button to get back to where they were on your blog. Try it by clicking this link
, then come back. Below is the HTML for the link.
<a href="http://maps.google.com/maps?ll=36.603307,-121.890596&z=17&t=h&om=0">this link</a>
Open maps in a separate window:
You might want to consider a smoother method of showing the maps to the user. Rather than leave the blog page, it would be better to open the Google Map page in a separate browser window. This is easily done by adding the keyword "target" to the link HTML. By adding target="_new" to the tag it will instruct the browser to open the link in a new window. Try it by clicking
this link
. Notice that every time you click it, a new browser window is created. Here the HTML for this link. <a href="http://maps.google.com/maps?ll=36.603307,-121.890596&z=17&t=h&om=0" target="_new">this link</a>



Open all maps in a designated window: However, If you have multiple links, each with "target =_new" keyword in the tag, the each link will open a new window. This will leave the user with a lot of open windows hanging around that they will later have to manually close. A better method is to open all the maps into one designated window, separate from the blog's window. This is easily done by coding a window name into the target argument of the link tag. In this case, I've named the designated window "googlemaps".
Try it by clicking the following links:
Monterey Harbor ,
Santa Barbara Harbor
. Notice that no matter how many times you click either link, only one new browser window was created, but its content keeps changing. Here is the HTML for these links:

<a href="http://maps.google.com/maps?ll=36.603307,-121.890596&z=17&t=h&om=0" target="googlemaps">Monterey Harbor</a>

<a href="http://maps.google.com/maps?ll=34.404183,-119.692826&z=17&t=h&om=0" target="googlemaps">Santa Barbara Harbor</a>

The problem with the above technique is that when the user clicks on the link, the content of the Google Map window is updated, but the user may see or notice it. The best way to correct this is to instruct the browser to switch the focus to the map window when the user clicks on a link.
I use little javascript to make it easy. With this method, the map is opened in a different browser window, and the user focus is automatically switched to the map window. Also, every time the user clicks on the map link in your blog, they are sent to the same map window, which prevents the user from having multiple windows pop open in their computer. To do this, put this javascript procedure in your Blogger template. Insert it right after the tag near the top. <script language="javascript"> function Google_Map(Map_URL) { evtwin = window.open(Map_URL,'googlemaps',config='scrollbars=yes,status=yes'); if (window.focus) {evtwin.focus()} } </script>
Then update your blog's template. Next, within your blog post, code your links to Google Map with the javascript event tag "onclick" to call the above procedure that you have embedded in the template. For example:

<a href="javascript:;" onclick="Google_Map('http://maps.google.com/maps?ll=36.802739,-121.786022&z=15;t=k')" >Moss Landing</a>
The argument passed to the procedure Google_Map is the URL of the map you which to display. In this example, the URL asks for maps to 3 different harbors. The HREF points to a null value so the browser ignores it. Go ahead and try it
Moss Landing
Monterey Harbor

Santa Barbara Harbor
Below is the HTML for the above links:

<a href="javascript:;" onclick="Google_Map('http://maps.google.com/maps?ll=36.802739,-121.786022&z=15;t=k')">Moss Landing</a>


<a href="javascript:;" onclick="Google_Map('http://maps.google.com/maps?ll=36.603307,-121.890596&z=17&t=h&om=0')">Monterey Harbor</a>
<a href="javascript:;" onclick="Google_Map('http://maps.google.com/maps?ll=34.404183,-119.692826&z=17&t=h&om=0')">Santa Barbara Harbor</a>

Labels:
Technical



Craigslist Shun Knifes



  • Sunday, August 06, 2006 How to add a Google Map to any web page in 30 seconds. 1) Go to WikiMapia.org site and find a part of the map that you need.
  • 2) Click WikiMapia at the top right corner and choose map on your page link.
  • 3) Move and resize frame you see to desired view, adjust view setting if needed and copy given html code to your page or blog. That's all.
  • Here is a map placing example of Egypt pyramids:
    Some sites already using this technique:

    How To Convert W/v % Tov/v %




    Tuesday, December 15, 2009

    Increased Cervical Mucus 9dpo

    How to insert a map in your blog

    http://google-mapping.blogspot.com/index.html http://code.google.com/intl/it/apis/earth/
    http://koti.mbnet.fi/ojalesa/tutor/maphowtoblogger.html How to insert a map in your blog     





    An unofficial tutorial by
    Esa.
    Not officially authorised or approved by Google® or Blogger®. Tested in real world applications.





    By following these basic instructions you can publish a Google Map of the location you like in your blog. It can be done in a post or sidebar. With no programming experience. If you can set links in your blog you can set a map as well. See examples with
    sidebar map or one with posted map.
    What are you going to display? Following parameters should be chosen before you start editing the source code:

    center coordinates (lng,lat)

    dimensions of the map (width, height) in pixels

    map type(map/satellite/hybrid) You can also set: map type buttons or not
    zoom slider or small control buttons
    find the location quickest by dragging the left map

    decide the size find the zoom write down the coordinates

    1. Get the

      Google Maps API key
      • Open the template of your blog
      • Sign in to your blog. Select the 'Template' tab and you can see the html source code of your blog.The top of the code looks like this:
      • <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>My personal blog</title>
        Copy/paste the following code just below the tag
      • <script src="http://maps.google.com/maps?file=api&v=1&key=YourGoogleMapsAPIKey" type="text/javascript"></script>
      Replace
        "YourGoogleMapsAPIKey" on the second line
      • with the key
      • you received from Google. Now your source code should look like this:
      • <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <script src="http://maps.google.com/maps?file=api&v=1&key=ABQIAAAAYxpy0HiKBWXiyhVrpVqkshRQ4cSWSDIG-IxrQCMGUWYgFGo6tRTSm0D-5pPBLuCQ0od7cPLu6d4nBQ" type="text/javascript"></script> <title>My personal blog</title>
      • Go to the end of html source code
      • Locate the point just above

      Insert the following code
    2. <script type="text/javascript"> //<![CDATA[ var map = new GMap(document.getElementById("map")); map.addControl(new GSmallMapControl()); map.setMapType(G_MAP_TYPE) ; map.centerAndZoom(new GPoint(-72.585, 42.102), 2); //]]> </script>
    3. Edit the parameters of the code
    4. map.centerAndZoom(new GPoint(-72.585, 42.102), 2);

    5. Replace (-72.585, 42.102) with your center coordinates (longitude, latitude) comma separated and in decimal form. Replace 2 by your zoom level.
    6. Set the map type of your choice in:

      map.setMapType(G_MAP_TYPE) ;
    7. Select (G_MAP_TYPE), (G_SATELLITE_TYPE) or (G_HYBRID_TYPE)

      map.addControl(new GSmallMapControl());

    8. but small controls are stylish for a blog.
    9. Place the map in the blog sidebar
    10. Insert the following code to the template source code in the position of your choice: Edit the width and height to your taste. Save and close the template.

    11. Or place the map in a post
    12. Create a new post. There are two modes in the Posting Create page. Compose and Edit Html. You can write your text in Compose mode but select Edit Html mode when you insert the following code:
        <div id="map" style="width:300px; height:200px"> map loading...</div>
      • Edit the width and height.
          
        Publish


        map loading...
      • Usually everything goes right the first time. If you did not edit any parameters, you should have exactly equal Springfield map as above. If you dont see a map at all above but the words 'map loading...' you should check your browser. Google Maps cannot be seen with too old browsers and JavaScript must be enabled.
      •   


      • Push pin
      •  Add following lines to the JavaScript at the end of your source code:  
        var point = new GPoint(-72.587, 42.1);
        var marker = new GMarker(point);
      • map.addOverlay(marker);

      The code should look like:
    13. <script type="text/javascript"> //<![CDATA[ var map = new GMap(document.getElementById("map")); map.addControl(new GSmallMapControl()); map.setMapType(G_MAP_TYPE) ; map.centerAndZoom(new GPoint(-72.585, 42.102), 2); var point = new GPoint(-72.587, 42.1); var marker = new GMarker(point); map.addOverlay(marker); //]]> </script>
    14. Duplicate those three lines as many times as you like.
    15. Edit the coordinates

      Publish
    16. kartta latautuu...
      Usually everything goes right the first time.
      You can find many more features and possibilities by reading . Some JavaScript knowledge is needed.

    17. Feel free to link us
    18. Did you find this tutorial useful? If so, please put a link in your blog.
        

      Map in your blog tutorial
      Design aid page

        
    19. Use Google Maps - Part

    20. Wednesday, August 30, 2006
    21. (

    22. 11 votes, average: 4.55
    23. )

    24. Loading ...
    25.   


    Since many dogs and pigs (including me) you are at ease, now let's see, usually starting from the principle of "Why can not I use

    (random stuff)

    Fichissima in my Web Application?"
    mentioned here, how can we use the power of Google Maps, creating from scratch a map where you can insert markers at will.
    Markers position them properly (according to the city you can even specify the number of the way) thanks to Google Maps geocoder. Each marker will contain a short descriptive text. 1 Star 2 Stars For this tutorial we will use the version 2 API 3 Stars, which includes a handy geocoder. We also need a handful of 4 Stars 5 Stars PHP and a MySQL database that will contain the coordinates and descriptive text of each marker. If we really want to make cool make all your entries via AJAX, JavaScript generated on the fly, which he places markers on the page without refreshing it. But yes, we're cool, let's do it.
    The project (in my case) the name of
    NapoMaps Loading ... to customize it a little call it
    quellochevipare
    trite, but it has to start somewhere. "And you go!" In the words of the good old days J. Article 31 of the AX. Yes Ps Everything will be valid XHTML 1.0 Strict
    . Just to complicate a little 'life. This is not for the faint of heart. GET A GOOGLE MAPS API KEY
    :mrgreen: order to use Google Maps in your website you need to get a Google Maps API Key,
    may proceed directly to Google. The key is for an entire directory on a domain: if the request for dominio.ext will not apply to dominio.ext / directory / and vice versa. So sappiatevi regular or recovered more keys for each subfolder the domain that you use. The keys are

    free. The only limit is the hour for the geocoder requests (translates addresses in LAT - LONG), introduced by version 2 of the API. 50,000 requests / hour days (thanks to Epper), however, should be enough to anyone wishing to provide professional service.
    SET YOUR HOME
    Google offers example of how it should be a page with a Google Maps. Copy it with impunity, remembering to insert your key. Align the center of the map page, and decorated a bit 'page. Also the eye wants its part. THE CENTRE MAP
    function load ()
    that you copied from Google to create a map in the "DIV" which has the id "map". The code is not complicated, peek into the source of the example that you will find links at the end This first part should be easily understandable.
    We want to center the paper on Italy, then use the
    map.setCenter () that takes two parameters: A point on the map
    The zoom level
    The point is created using the function GLatLng ( ) which in turn accepts two parameters:
    latitude and longitude point, in decimal format. To recover the details of your favorite city used websites such as Maporama
    . In the case of Rome, the coordinates are: 41.90 , 12:49 . The function to be written, setting a zoom level of 5 will be: map.setCenter (new GLatLng (41.90, 12.49), 5);
    CONTROLS
    Ok, we hit and we can navigate the map with the mouse ... How do we see the controls? Nothing could be easier. map.addControl (new GMapTypeControl ());

    Activate control that allows you to select the satellite map, hybrid or road only. map.addControl (new GLargeMapControl ());
    Activate zoom control and navigation ... The classic left bar
    For other controls, refer to the official documentation and the next parts of this tutorial.
      THE POP-UP
    • Through the function:
    • map.openInfoWindow (map.getCenter (), document.createTextNode ("Rome !"));
    Create pop-up on the center of the map, with text" Rome! " map.getCenter () returns the coordinates of the center point of the map. CONCLUSIONS With a dozen lines of JavaScript code we created our first map, using Google Maps API. This first part of the tutorial is deliberately simple and "verbose" so that it can be easy to understand. As we proceed in this tutorial (there are at least 3-4 other parties, maybe more), on issues as diverse as the interface to the database, the placement of markers, etc ... is what you should be able to do today: the first part
    .
    code as usual, is well commented and easy to read. However, for any questions, concerns or comments please leave a note, are always welcome. The tutorial will be available in PDF format just completed, will include all changes and suggestions received.
    Use Google Maps - Part Sunday, September 10 2006



    (
    ;) 7 votes, average: 4.86
    )
    Loading ...



    As promised here we are again for the second part of the tutorial on Google Maps. The first part of the tutorial is available at this address

    .
    Today we will learn to use the geocoder, moving on a map based on the address entered, and displaying a marker. Clicking on the marker opens a pop-up with the address searched.

    DEFINITION

    geocoding Geocoding is said

    the proceedings which are transformed into geographical coordinates (Latitude and Longitude usually), addresses such as "street, House, City." Geocoding is a very interesting overview of the available Wikipedia
    .
    1 Star the geocoder of Google Maps Geocoder 2 Stars 3 Stars There are many, free or not, and Google, the second version of the Google Maps API has a built-in geocoder, which accepts 50,000 requests per day, about 1.6 per second, per API key used . 4 Stars Obviously not all of the planet is covered by the geocoder, the U.S., as one might imagine, I was more covered. In Italy's case we are lucky enough, but there is still some formatting error addresses correctly. 5 Stars ACTIVATE Geocoder To use the Google Maps Geocoder must activate it. To do this, we create a new variable named geocoder, within the script for the first part of the tutorial. After that we create the geocoder, assigning it to the newly allocated variable within the function
    load ()
    the function that creates the map.
    Loading ...
    / / Create Geocoder Max 1.6 queries / sec

    geocoder = new () ;
    Nothing could be easier. Now we must create the function that queries the geocoder. A geocoder that there do not encode anything

    function showAddress ( address) {
    geocoder.
    getLatLng (
    address,

    function (
    point
    )
    {if
       
    (! Point )
    ;)
    {/ / Address not found!
         alert (address +   "not found!" 
    ) ;}
    else {
    / / Address found, centers the map on the point
    map. setCenter
    ( point, 14) ;
    / / Create the map marker
    . addOverlay
    ( createMarker ( point, address ) ) ;
    }}
    )
    ;}
    Now we are ready, and our geocoder is ready too. What have we done? In the first script we created the object GClientGeocoder, the API documentation describes it much better than I do know at this address
    . showAddress function () instead question deals with the geocoder, through JavaScript. I recommend to always the possibility that the geocoder can not find the address searched, very often for countries other than the United States. In this case a alert () warns of the error. If the address is found, the map is moved about by using the method map.setCenter () . If you do not have to zoom in on the map you can also use the method
    panto ()
    . will then create a marker. Al-click on the marker opens a pop-up containing the address searched. The function that creates the marker,
    createMarker () receives the item returned by the geocoder and creates the pop-up click on the marker. The pop-up will contain the address searched, but could contain any HTML . doing so, for every query will be placed a marker. If we succeed in having 100 markers on the map (100 searches without refresh the page), a simple click will return the exact address for each marker. Just try it. / / Create the marker with the label passed as a parameter function
    createMarker ( point, label
    )
    {/ / Variable marker
    var marker = new
    GMarker ( point )
    ; / / Create listener for the click on the object GEvent.

    addListener ( marker "click" ,
    function
     ( ) {
    marker. openInfoWindowHtml (
    label ) ;}
    )
    ; return marker;} FORM
    Now that we've done everything we need to go to showAddress () the string that contains the address to "translate". A simple form is for ours. There will be a page receives the information, then submit the ()
    module will return a false value. There will also be used later. CONCLUSIONS Here we are: At this point you should have gotten a GoogleMaps via a form that allows you to be able to search for an address: second part. Try the query type " Milan, Italy ", " Palermo, Italy ", " Via L. da Vinci, Seregno, Milan, Italy ", etc ... code as usual, is well commented and easy to read. However, for any questions, concerns or comments please leave a note, are always welcome.
    The tutorial will be available in formats PDF just completed, will include all changes and suggestions received. Use Google Maps - Part Three Sunday, October 1, 2006
    (
    8 votes, average: 4.13
    )
    Loading ...


    Here we are. Before you begin, to those who had not yet done so, I suggest you read the first two parts of this tutorial. Use Google Maps - Part

    Use Google Maps - Part

    Now at last we will see as the geocoder can interact with a MySQL database using AJAX and PHP.

    Thanks to the database you can use Google Maps by entering coordinates or addresses that will be replicated at each subsequent visit the page, then, unlike what happened in the second part of this tutorial, the data is not lost. The previous sentence is difficult to interpret, I know.
    1 Star First, we munirci a database and a table, structured as follows: 2 Stars 3 Stars 4 Stars 5 Stars CREATE TABLE `paragraphs`
    (
    Loading ... `id` bigint
    (20
    ) UNSIGNED Google Maps

    NOT NULL AUTO_INCREMENT
    , `latitude` float


    NOT NULL DEFAULT

    '0 '
    ,
      `longitude` float     NOT NULL DEFAULT    
    '0 ', `address` text NOT NULL, PRIMARY KEY (`id`
    ) ) ; The newly created table will contain details of points calculated by the geocoder and the address we just tried. E 'can change, and therefore modify the search form, to contain descriptive text, links to images, etc. ... To you full freedom of use. The page will work this way: We will address
    If found by the geocoder we will be asked to save the database through an AJAX request will go to a dot searched the database using a simple PHP file will add a marker to the map After that, each visit, a small piece of PHP code will: Make a query on the table "points"
    Print the Javascript code that will create a marker for each row of the table That's it. Try the ' example, you will find some markers already in place. One of these relies on Piazza Venezia in Rome. You can add markers to your liking, will be replicated at each new visit. IN DETAIL
    Let's see in detail how a placement. Building upon the second part of this tutorial we created a page that allows you to search through the built-in Google Maps Geocoder any Italian address. If I remember correctly the function provided for two options: address not found and the address found. If the address was found by the geocoder was added to a marker on the map. Now, in addition add a marker also perform an AJAX call to the file " inserisci.php " which are not in the code: you need to know that is done only an insert query with 3 parameters (latitude, longitude, address searching) passed away GET. function that makes the AJAX call is a classic: the are very well explained in this address. I just renamed ajax () and added a couple of parameters for your convenience. Of course you can use your favorite AJAX framework, without any limitation. showAddress The function code () becomes:

    function
    showAddress
      (
    • address)
    • {geocoder.
    • getLatLng

    (
      address,
    • function
    • (
    point )
    {if


    (! Point
    )

    {/ / Address not found
       alert   (  address + "not found!" 
    ) ;}
    else
    {/ / call ajax for inclusion in the DB if it is confirmed ...
    if
    ( confirm ( "Want to put a marker for the address: n" + address
    )
    )
    {/ / Center the map . setCenter (
    point,
    10) ;
    / / Create the map marker .
    addOverlay (
    createMarker ( point, address ) ) ; / / AJAX call to insert ajax ( "inserisci.php? Lat =" + point.
    x + "& long =" +
    point. y +
    "& Address =" + address , "void" ) ;
    }}}
    ) ;} The insertion of the marker in the database is done without refresh the page through AJAX. "Void" refers to a hidden div because the function ajax () also requires a div that contains the results then, although in this case is unused.
    As usual there is nothing to explain, the code is explained almost single-handedly. Andatevelo watching. PRINTING MARKER
    Chapter deserves the printing of each marker time you call the page containing the map. The trick is to use PHP code to print JS, extrapolating the data points and creating on the fly ... If I have not explained the PHP code you will understand by himself: / / Print query JS after ... $ connection = mysql_connect ( "YOUR SERVER" ,
    "YOUR USERNAME" , "YOUR PASSWORD"
    ) ;

    mysql_select_db ( " YOUR DB "
    ) ;

    $ sql
    =" SELECT DISTINCT * FROM points "
    ;
       $ result = mysql_query 
    ( $ sql, $ connection ) or die ($ sql
    . ". mysql_error (
    )
    ) ;
    / / prints all the dots with pop-up address. while ( $ row = mysql_fetch_assoc ($ result ) ) { echo "point = new GLatLng ({$ row ['longitude "]},{$ row [' latitude "]}); n" ;


    echo "map. addOverlay (createMarker (point, '". addslashes ($ row [ " address " ] ) .
    "')); n" ;
    } As you know (you know it?) PHP code is executed by the server before sending the page to the browser that will then execute the JavaScript code. Then generate the PHP code JS something quite sexy as well as legal and helpful. CONCLUSIONS You are now ready to create your own mashups (as precise as you want) of Google Maps. I am opposed to regurgitate, then the code you saw in these three episodes, though functional, it should be built, reviewed and possibly improved. still remain available to those who wish to know more about Google Maps is via blogs via MSN or Gtalk. Have fun and do not forget that: The process of Preparing programs for a digital computer is Especially attractive, Not Only Because It Can Be Economically and scientifically rewarding, But Also Because It Can Be an Aesthetic experience much like composing poetry or music.
    Donald Knuth UPDATE Luke asks me how to sail directly to an address map loading ... That's it ! Viewing the code load function ()...