On Oct 27, 11:50 am, jdale978 <[EMAIL PROTECTED]> wrote:
> Hi Andrew,
>
> I'd like to get your solution working. It would require fewer attached
> files and seems more elegant.
> Here's the code I can't seem to get working. Can you make  any
> suggestions?

I would suggest following the "suggested posting guidelines":

http://groups.google.com/group/Google-Maps-API/web/suggested-posting-guidelines

and posting a link to a map that shows your problem.

BTW  a key for abc.com should work for all subdomains of abc.com
(educationdev.abc.com, education.abc.com, ...)
http://code.google.com/apis/maps/faq.html#keysystem

  -- Larry

>
> <script type="text/javascript"> document.write(
>       '<script src="http://maps.google.com/maps?
> file=api&amp;v=2&amp;key=' +
>       ({
>          'http://mediasrv:8080/':
> 'ABQIAAAAEOR_aFiXHAV430WQMOsKQRR8VtUZtLe0h5cN2SKHoNyZoPPGwxTdC478A4GwAkwEsE­5XZEn0hetnMg',
>          'http://educationdev.abc.com/':
> 'ABQIAAAAEOR_aFiXHAV430WQMOsKQRQufvaeySBV69Sef0ZRJmbq3Zpb2hQbWCbB-
> PxMV_cwo6lougou2Xfmnw0'
>                  'http://education.abc.com/':
> 'ABQIAAAAEOR_aFiXHAV430WQMOsKQRTadbryp5nHusPzNIidBTERUevZUxTv7ZZP_UlwFgE-
> DPjPTEVsfZnvww'
>       }[location.host] || 'mydefaultvalue') +
>       '" type="text/javascript"><\/script>' );
>     </script>
>
>         <script type="text/javascript">
>         function load() {
>       if (GBrowserIsCompatible()) {
>
>         var map = new GMap2(document.getElementById("map"));
>         map.setCenter(new GLatLng(42.339212,-72.5144), 17);
>                 map.setMapType(G_NORMAL_MAP);
>
>                 var marker = new GMarker(new GLatLng(42.339212,-72.51442));
>                 map.addOverlay(marker);
>
>                 var html=
>                         '<strong>Address:</strong>  <br/>' +
>                 'An Address<br/>' +
>                 'In  Amherst, MA<br /> <a href="http://maps.google.com/maps?
> file=api&amp;v=2&amp;key=ABQIAAAAEOR_aFiXHAV430WQMOsKQRTadbryp5nHusPzNIidBT­ERUevZUxTv7ZZP_UlwFgE-
> DPjPTEVsfZnvww" target="_blank">Directions</a>';
>                  marker.openInfoWindowHtml(html);
>
>                  map.addControl(new GLargeMapControl());
>                  map.addControl(new GScaleControl());
>                  map.addControl(new GMapTypeControl());
>
>       }
>     }
>     </script>king:
>
> On Oct 27, 12:05 pm, "warden [Andrew Leach - Maps API Guru]"
>
>
>
> <[EMAIL PROTECTED]> wrote:
> > On Oct 27, 3:59 pm, jdale978 <[EMAIL PROTECTED]> wrote:
>
> > > My question is this: can I validate the key from an external js file
> > > so I can have the same html file on both domains, which will then
> > > reference different identically named js files with the correct key
> > > for each domain?
>
> > See Michael Geary's solution towards the bottom 
> > ofhttp://groups.google.com/group/Google-Maps-API/browse_thread/thread/c...
>
> > (There's an enhancement by me there too which would allow you to
> > specify keys for nominated development servers and a "default" key for
> > your final site server)
>
> > Andrew- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to