[OpenLayers-Users] Overview Map Question

Robert Buzink post at robertbuzink.nl
Tue Jan 9 18:53:00 EST 2007


yeah, the virtualearth-thing is broken:

http://openlayers.org/dev/examples/ve.html

strange. the url is still valid (
http://dev.virtualearth.net/mapcontrol/v3/mapcontrol.js) but points to a
script that returns an error:

http://maps.live.com/veapi.ashx?v=1.3.0908172755.52

Robert.

On 1/10/07, Tim Schaub <noreply at geocartic.com> wrote:
>
>  Ok, one thing at a time:
>
> In your code below, there is a space before the URL in the metacarta layer
> - with the space, this layer does not have a valid URL.  I realize this
> could be an email formatting thing.  Your virtualearth script tag also has a
> space at the end of the URL - though this doesn't appear to be a problem.
>
> Also, if I correct this and remove the add overview control line, I still
> get an error thrown in a script by maps.live.com.  Because this error is
> not handled, the overview control cannot be added.  I don't use the VE
> layer, so I can't help debug that right now.  I notice that the problem also
> shows up in the ve.html example when I try to construct the ve layer
> without the options argument.
>
> Anyway, I see there are issues using the overview map with the VE layer.
> I'll look at that more later.
>
> Now on to the second example...
> Tim
>
> This shows no overviewmap control at all:
>
> <html>
>     <head>
>         <title>Test</title>
>         <style type="text/css">
>             #map {
>                 width: 512px;
>                 height: 512px;
>                 border: 1px solid gray;
>             }
>         </style>
>         <script src="http://dev.virtualearth.net/mapcontrol/v3/mapcontrol.js
> " type="text/javascript"></script>
>     <script src="http://www.openlayers.org/api/OpenLayers.js"></script>
>     </head>
>     <body>
>         <div id="map"></div>
>         <script defer="defer" type="text/javascript">
>             var map = new OpenLayers.Map('map');
>         var virtualearth = new OpenLayers.Layer.VirtualEarth(
>         "VirtualEarth");
>             var metacarta = new OpenLayers.Layer.WMS(
>                 "Metacarta",
>                 " http://labs.metacarta.com/wms/vmap0",
>                 {layers: 'basic'});
>             map.addLayers([virtualearth,metacarta]);
>             map.addControl (new OpenLayers.Control.OverviewMap());
>             map.setCenter(new OpenLayers.LonLat(5.69, 50.85), 15);
>         </script>
>     </body>
> </html>
>
>


-- 
Robert Buzink, website ontwerp en ontwikkeling
Sint-Pietersaalststraat 123
9000 Gent
+32 (0)9 33 00 267
+32 (0)487 548 414
post at robertbuzink.nl
robertbuzink.nl/webdesign
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070110/c7d97978/attachment.html


More information about the Users mailing list