Firstly, V3 doesn't need an API key, so you need not worry about this
conflicting.

If you're applications have their own repositories, code files,
javascript etc, you can and should treat them as two seperate
applications, so even though the hosting environment is common, they
have their own codebase - as you mentioned.

If however you needed to include V2 and V3 on a single page, you would
need to re-define the name space, like so:

<!-- API V2 --> <script src="http://maps.google.com/maps?
file=api&amp;v=2.x&amp;key=XXXXXXXXXX"></script>
<!-- API V3 --> <script src="http://maps.google.com/maps/api/js?
sensor=false"></script>
<script type="text/javascript">
var V3 = google.maps;
</script>


On May 25, 11:42 am, Sharath Dodda <[email protected]> wrote:
> Hi there,
>
> We have an application that uses JavaScript API v2 for retrieving maps
> information. As an extension to this, we are going to build another
> application using JavaScript API v3. Both these applications (existing
> one and the proposed one) share same infrastructure (webserver
> (Apache) and Ubuntu Linux box).
>
> a) Our aim is that this new application using v3 should not have any
> kind of impact on the existing application. If we develope another
> application by keeping the code base in entirely different directory
> structure (but on the same domain), will there be any impact on the
> existing application?
>
> b) Can we use the v2 API key for v3, as long as we share the same
> domain for both v2 and v3?
>
> Thanks in advance for your response and help!
>
> regards,
> Sharath.
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Google Maps JavaScript API v3" 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 
> athttp://groups.google.com/group/google-maps-js-api-v3?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" 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-js-api-v3?hl=en.

Reply via email to