This line is where the map is centered,
map.setCenter(new GLatLng(<? echo "$field273,$field283";?>),15);

So, look for an initial setting for those fields which is in the US
(approx.35, -100) and change to values for UK.

On Mar 18, 5:03 am, kroggy <[email protected]> wrote:
> Hi,
> I advertise properties for sale mainly in the UK, however the server
> is held in USA.
> The problem is when a UK property loads, 'street view' instantly shows
> the map of the USA?
> How can I set the initial load to show the UK or just a black screen,
> this would then look more professional for the site.
> Example page:http://www.view-me.com/listing.php?link_id=1089&map=3
>
> I have asked the programmer who supplied the script if it could be
> changed, he said it was part of the Google code and he could not
> change it....?
>
> On the Listings.php page part of the code refers to Australia for some
> reason? I have changed it tohttp://maps.google.co.ukbut to no avail.
> See below:
>
> http://maps.google.com.au/maps/sv?cbp=1,0,,0,5&cbll=$field273,$fi...
>
> Another section in the Listing.php page refers to the following:
> <script type="text/javascript">
>  //<![CDATA[
>
>     if (GBrowserIsCompatible()) {
>
>       // A function to create the marker and set up the event window
>       // Dont try to unroll this function. It has to be here for the
> function closure
>       // Each instance of the function preserves the contends of a
> different instance
>       // of the "marker" and "html" variables which will be needed
> later when the event triggers.
>
>       function createMarker(point,html) {
>
>           var icon = new GIcon();
>           icon.image = "marker/brown.png";
>           icon.iconSize = new GSize(20, 23);
>           icon.iconAnchor = new GPoint(6, 23);
>           icon.infoWindowAnchor = new GPoint(9, 2);
>
>         var marker = new GMarker(point,icon);
>         GEvent.addListener(marker, "", function() {
>           marker.openInfoWindowHtml(html);
>         });
>         return marker;
>       }
>
>       // Display the map, with some controls and set the initial
> location
>       var map = new GMap2(document.getElementById("map"));
>       map.addControl(new GSmallMapControl());
>       map.addControl(new GMapTypeControl());
>       map.setCenter(new GLatLng(<? echo "$field273,$field283";?>),15);
>
>       var point = new GLatLng(<? echo "$field273,$field283";?>);
>       var marker = createMarker(point,'')
>       map.addOverlay(marker);
>
>     }
>
>     //]]>
> </script>
>
> Any help would really be useful as I have tried and tried to digest
> the information from Google.
>
> Many Thanks

-- 
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