Re: [WebDNA] Google Maps

This WebDNA talk-list message is from

2019


It keeps the original formatting.
numero = 114951
interpreted = N
texte = 2579 --Apple-Mail=_FF4FAE7F-E321-4527-A18A-54F9A24707AF Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Do you have a key that is tied to the domain that is wanting to display = the map ? Google have become for more restrictive with this tool in the past few = months, including creating a billing account. https://developers.google.com/maps/documentation/javascript/get-api-key = https://developers.google.com/maps/documentation = Use Javascript, below is a simplified js solution Get LAT & LON here: https://www.latlong.net You will need to use an image to load the js, look for this in the
= /assets/clear.png You can have a custom marker by providing the image: marker.png [TEXT]MapKey=3DInsert-Your-Map-Key[/TEXT] [TEXT]LATITUDE=3D43.090740[/TEXT] [TEXT]LONGITUDE=3D-78.898910[/TEXT] [TEXT]tMAPID=3D01[/TEXT]
Live example: https://top3.com.au/stores/richmond Kind regards Stuart Tremain Pharoah Lane Software AUSTRALIA webdna@plsoftware.com.au > On 4 Nov 2019, at 10:11, Brian Harrington = wrote: >=20 > anyone know why this no longer works...? tried all kinds of map keys = restricted and non-restricted,,, > ---------------------------------------------------------- > [text]address=3D[url]2728 Niagara Falls Blvd. N. Tonawanda, NY = 14304[/url][/text] >=20 > >=20 > [text]_host=3Dmaps.googleapis.com [/text] > = [text]_pathtopage_data=3Dmaps/api/geocode/xml?address=3D[address]&Key=3D[M= apkey][/text] > [text]DATA=3D > [Middle StartAfter=3D&EndBefore=3D] > [tcpconnect host=3D[_host]&port=3D443&ssl=3DT] > [tcpsend skipheader=3Dt]GET /[_pathtopage_data] = HTTP/1.0[unurl]%0D%0A[/unurl][!] > [/!]Content-type: = application/x-www-form-urlencoded[UnURL]%0D%0A%0D%0A[/UnURL][/tcpsend] > [/tcpconnect] > [/Middle] > [/text] >=20 > [DATA] > ---------------------------------------------------------- > --=20 > Brian Harrington > Auto Glass Xpress > 2655 Millersport Hwy. Suite 1063 > Getzville, NY 14068 > (716) 861-2029 > www.Auto-Glass-Xpress.com = ---------------------------------------= ------------------ This message is sent to you because you are = subscribed to the mailing list talk@webdna.us To unsubscribe, E-mail to: = talk-leave@webdna.us archives: http://www.webdna.us/page.dna?numero=3D55 = Bug Reporting: support@webdna.us --Apple-Mail=_FF4FAE7F-E321-4527-A18A-54F9A24707AF Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii Do = you have a key that is tied to the domain that is wanting to display the = map ?

Google have = become for more restrictive with this tool in the past few months, = including creating a billing account.




Use Javascript, below is a simplified js solution

Get LAT & LON = here: https://www.latlong.net

You will need to use an image to load = the js, look for this in the <div> =  /assets/clear.png

You can have a custom marker by providing the image: = marker.png


[TEXT]MapKey=3DInsert-Your-Map-Key[/TEXT]
[TEXT]LATITUDE=3D43.090740[/TEXT]
[TEXT]LONGITUDE=3D-78.898910[/TEXT]
[TEXT]tMAPID=3D01[/TEXT]

<script type=3D"text/javascript" = src=3D"//maps.google.com/maps/api/js?key=3D[MapKey]"></script&= gt;

<div = class=3D"container storespage-map-01" id=3D"contactmap[tMAPID]" = style=3D"width:400px;height:400px;border:1px solid red;"><img = src=3D"/assets/clear.png" =  onload=3D"initialize[tMAPID]();"></div>

<script>
function initialize[tMAPID](){

  var point =3D new = google.maps.LatLng([LATITUDE], [LONGITUDE]);

  var myMapOptions =3D {
    zoom: 18,
    = center: point,
    mapTypeId: = google.maps.MapTypeId.ROADMAP
  };

  var map =3D new = google.maps.Map(document.getElementById("contactmap01"),myMapOptions);

  var image = =3D new google.maps.MarkerImage(
    = 'marker.png',
    new = google.maps.Size(48,32),
    new = google.maps.Point(0,0),
    new = google.maps.Point(24,32)
  );

  var marker =3D = new google.maps.Marker({
    draggable: = true,
    raiseOnDrag: false,
    icon: image,
    = map: map,
    position: point
  });

}
</script>









Kind regards

Stuart Tremain
Pharoah Lane Software
AUSTRALIA







On 4 Nov 2019, at 10:11, Brian Harrington <autoglasswny@gmail.com> wrote:

anyone know why this no longer works...? tried all kinds = of map keys restricted and non-restricted,,,
----------------------------------------------------------
[text]address=3D[url]2728 Niagara Falls = Blvd. N. Tonawanda, NY 14304[/url][/text]


[text]_host=3Dmaps.googleapis.com[/text]
[text]_pathtopage_data=3Dmaps/api/geocode/xml?address=3D[addres= s]&Key=3D[Mapkey][/text]
[text]DATA=3D
[Middle = StartAfter=3D<coordinates>&EndBefore=3D</coordinates>]
[tcpconnect = host=3D[_host]&port=3D443&ssl=3DT]
[tcpsend = skipheader=3Dt]GET /[_pathtopage_data] = HTTP/1.0[unurl]%0D%0A[/unurl][!]
[/!]Content-type: = application/x-www-form-urlencoded[UnURL]%0D%0A%0D%0A[/UnURL][/tcpsend]
[/tcpconnect]
[/Middle]
[/text]

[DATA]
----------------------------------------------------------
--
Brian Harrington
Auto Glass Xpress
2655 Millersport Hwy. = Suite 1063
Getzville, NY 14068
(716) 861-2029
--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list talk@webdna.us To unsubscribe, E-mail to: talk-leave@webdna.us archives: http://www.webdna.us/page.dna?numero=3D55 Bug Reporting: support@webdna.us

= --------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list talk@webdna.us To unsubscribe, E-mail to: talk-leave@webdna.us archives: http://www.webdna.us/page.dna?numero=3D55 Bug Reporting: support@webdna.us --Apple-Mail=_FF4FAE7F-E321-4527-A18A-54F9A24707AF-- . Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] Google Maps (Brian Harrington 2019)
  2. Re: [WebDNA] Google Maps (Brian Harrington 2019)
  3. Re: [WebDNA] Google Maps (Brian Harrington 2019)
  4. Re: [WebDNA] Google Maps (Terry Wilson 2019)
  5. Re: [WebDNA] Google Maps (Stuart Tremain 2019)
  6. [WebDNA] Google Maps (Brian Harrington 2019)
  7. [WebDNA] Google Maps API Store Locator Utility Library (george r 2013)
2579 --Apple-Mail=_FF4FAE7F-E321-4527-A18A-54F9A24707AF Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Do you have a key that is tied to the domain that is wanting to display = the map ? Google have become for more restrictive with this tool in the past few = months, including creating a billing account. https://developers.google.com/maps/documentation/javascript/get-api-key = https://developers.google.com/maps/documentation = Use Javascript, below is a simplified js solution Get LAT & LON here: https://www.latlong.net You will need to use an image to load the js, look for this in the
= /assets/clear.png You can have a custom marker by providing the image: marker.png [text]MapKey=3DInsert-Your-Map-Key[/TEXT] [text]LATITUDE=3D43.090740[/TEXT] [text]LONGITUDE=3D-78.898910[/TEXT] [text]tMAPID=3D01[/TEXT]
Live example: https://top3.com.au/stores/richmond Kind regards Stuart Tremain Pharoah Lane Software AUSTRALIA webdna@plsoftware.com.au > On 4 Nov 2019, at 10:11, Brian Harrington = wrote: >=20 > anyone know why this no longer works...? tried all kinds of map keys = restricted and non-restricted,,, > ---------------------------------------------------------- > [text]address=3D[url]2728 Niagara Falls Blvd. N. Tonawanda, NY = 14304[/url][/text] >=20 > >=20 > [text]_host=3Dmaps.googleapis.com [/text] > = [text]_pathtopage_data=3Dmaps/api/geocode/xml?address=3D[address]&Key=3D[M= apkey][/text] > [text]DATA=3D > [Middle StartAfter=3D&EndBefore=3D] > [tcpconnect host=3D[_host]&port=3D443&ssl=3DT] > [tcpsend skipheader=3Dt]GET /[_pathtopage_data] = HTTP/1.0[unurl]%0D%0A[/unurl][!] > [/!]Content-type: = application/x-www-form-urlencoded[unurl]%0D%0A%0D%0A[/UnURL][/tcpsend] > [/tcpconnect] > [/Middle] > [/text] >=20 > [DATA] > ---------------------------------------------------------- > --=20 > Brian Harrington > Auto Glass Xpress > 2655 Millersport Hwy. Suite 1063 > Getzville, NY 14068 > (716) 861-2029 > www.Auto-Glass-Xpress.com = ---------------------------------------= ------------------ This message is sent to you because you are = subscribed to the mailing list talk@webdna.us To unsubscribe, E-mail to: = talk-leave@webdna.us archives: http://www.webdna.us/page.dna?numero=3D55 = Bug Reporting: support@webdna.us --Apple-Mail=_FF4FAE7F-E321-4527-A18A-54F9A24707AF Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii Do = you have a key that is tied to the domain that is wanting to display the = map ?

Google have = become for more restrictive with this tool in the past few months, = including creating a billing account.




Use Javascript, below is a simplified js solution

Get LAT & LON = here: https://www.latlong.net

You will need to use an image to load = the js, look for this in the <div> =  /assets/clear.png

You can have a custom marker by providing the image: = marker.png


[text]MapKey=3DInsert-Your-Map-Key[/TEXT]
[text]LATITUDE=3D43.090740[/TEXT]
[text]LONGITUDE=3D-78.898910[/TEXT]
[text]tMAPID=3D01[/TEXT]

<script type=3D"text/javascript" = src=3D"//maps.google.com/maps/api/js?key=3D[MapKey]"></script&= gt;

<div = class=3D"container storespage-map-01" id=3D"contactmap[tMAPID]" = style=3D"width:400px;height:400px;border:1px solid red;"><img = src=3D"/assets/clear.png" =  onload=3D"initialize[tMAPID]();"></div>

<script>
function initialize[tMAPID](){

  var point =3D new = google.maps.LatLng([LATITUDE], [LONGITUDE]);

  var myMapOptions =3D {
    zoom: 18,
    = center: point,
    mapTypeId: = google.maps.MapTypeId.ROADMAP
  };

  var map =3D new = google.maps.Map(document.getElementById("contactmap01"),myMapOptions);

  var image = =3D new google.maps.MarkerImage(
    = 'marker.png',
    new = google.maps.Size(48,32),
    new = google.maps.Point(0,0),
    new = google.maps.Point(24,32)
  );

  var marker =3D = new google.maps.Marker({
    draggable: = true,
    raiseOnDrag: false,
    icon: image,
    = map: map,
    position: point
  });

}
</script>









Kind regards

Stuart Tremain
Pharoah Lane Software
AUSTRALIA







On 4 Nov 2019, at 10:11, Brian Harrington <autoglasswny@gmail.com> wrote:

anyone know why this no longer works...? tried all kinds = of map keys restricted and non-restricted,,,
----------------------------------------------------------
[text]address=3D[url]2728 Niagara Falls = Blvd. N. Tonawanda, NY 14304[/url][/text]


[text]_pathtopage_data=3Dmaps/api/geocode/xml?address=3D[addres= s]&Key=3D[Mapkey][/text]
[text]DATA=3D
[Middle = StartAfter=3D<coordinates>&EndBefore=3D</coordinates>]
[tcpconnect = host=3D[_host]&port=3D443&ssl=3DT]
[tcpsend = skipheader=3Dt]GET /[_pathtopage_data] = HTTP/1.0[unurl]%0D%0A[/unurl][!]
[/!]Content-type: = application/x-www-form-urlencoded[unurl]%0D%0A%0D%0A[/UnURL][/tcpsend]
[/tcpconnect]
[/Middle]
[/text]

[DATA]
----------------------------------------------------------
--
Brian Harrington
Auto Glass Xpress
2655 Millersport Hwy. = Suite 1063
Getzville, NY 14068
(716) 861-2029
--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list talk@webdna.us To unsubscribe, E-mail to: talk-leave@webdna.us archives: http://www.webdna.us/page.dna?numero=3D55 Bug Reporting: support@webdna.us

= --------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list talk@webdna.us To unsubscribe, E-mail to: talk-leave@webdna.us archives: http://www.webdna.us/page.dna?numero=3D55 Bug Reporting: support@webdna.us --Apple-Mail=_FF4FAE7F-E321-4527-A18A-54F9A24707AF-- . Stuart Tremain

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

WebDNA on Windows (2003) Three new problems ... (1997) RE: PIXO support (1997) Math Hell! (2000) 2.0 Info (1997) Help name our technology! (1997) Execute Applescript (1997) Back to Authnet with storebuilder (2003) 9 digit zip (2002) webmerchant/mac auth. rejects zipcode (1998) [cart]'s ever get recycled? (2000) docs for WebCatalog2 (1997) Need some extra eyes (2003) Math Context (2001) HELP WITH DATES (1997) Checking two required fields (1998) db=xxx.db param have to be first? (2000) Spawning Holdup? (2000) Help! WebCat2 bug (1997) Incrementing a number (1998)