[OSM-newbies] openstreetmap and internet explorer
Gilles Pelletier
pellgill at gmail.com
Fri Aug 24 16:04:31 BST 2012
Internet Explorer was blocking the execution of scripts. Now it shows the
map, but not the POI.
2012/8/24 Gilles Pelletier <pellgill at gmail.com>
> I added the following lines from your example and will try it on internet explorer.
> <script src="http://www.openstreetmap.org/openlayers/OpenStreetMap.js"></script><!--<script src="js/OpenLayers.js"></script><script src="js/OpenStreetMap.js"></script>-->
>
>
>
> 2012/8/24 Bill Ricker <bill.n1vux at gmail.com>
>
>> I can't see the problem instantly. You can see the JS that i'm using for
>> similar purposes at
>> http://fd.ema.arrl.org/history/SiteMap.html?option=Act+Maybe . (I'm
>> returning similar data to your txt file from a PHP call so i can filter,
>> but i tested it with a static txt file just like you.)
>>
>> bill
>>
>>
>>
>> On Fri, Aug 24, 2012 at 6:28 AM, Gilles Pelletier <pellgill at gmail.com>wrote:
>>
>>> Here is the code I am using:
>>>
>>> <script src="http://www.openlayers.org/api/OpenLayers.js"></script>
>>> <script>
>>> function init() {
>>> map = new OpenLayers.Map("TaxiBusMap");
>>> var mapnik = new OpenLayers.Layer.OSM();
>>> var fromProjection = new OpenLayers.Projection("EPSG:4326"); //
>>> Transform from WGS 1984
>>> var toProjection = new OpenLayers.Projection("EPSG:900913"); //
>>> to Spherical Mercator Projection
>>> var position = new
>>> OpenLayers.LonLat(-71.3002,46.0912).transform( fromProjection,
>>> toProjection);
>>> var zoom = 16;
>>>
>>> map.addLayer(mapnik);
>>> map.setCenter(position, zoom );
>>> var pois = new OpenLayers.Layer.Text( "My Points",
>>> { location:"./taxiBusFile.txt",
>>> projection: map.displayProjection
>>> });
>>> map.addLayer(pois);
>>> }
>>> </script>
>>>
>>> </head>
>>> <body onload="init();">
>>>
>>> <div id="TaxiBusMap" style="height:250px;width:509px"></div>
>>>
>>>
>>>
>>> 2012/8/23 David Fawcett <david.fawcett at gmail.com>
>>>
>>>> What js mapping library are you using?
>>>>
>>>> You might want to look at Leaflet and/or OpenLayers.
>>>>
>>>>
>>>>
>>>> On Aug 23, 2012, at 6:30 PM, Gilles Pelletier <pellgill at gmail.com>
>>>> wrote:
>>>>
>>>> > I succeded in imbeding openstreetmap into a web page and placing a
>>>> point of interest. Works great in firefox. The problem is as usual with
>>>> internet explorer. I get a white empty square where the map should be. Any
>>>> ideas?
>>>> > _______________________________________________
>>>> > newbies mailing list
>>>> > newbies at openstreetmap.org
>>>> > http://lists.openstreetmap.org/listinfo/newbies
>>>>
>>>> _______________________________________________
>>>> newbies mailing list
>>>> newbies at openstreetmap.org
>>>> http://lists.openstreetmap.org/listinfo/newbies
>>>>
>>>
>>>
>>> _______________________________________________
>>> newbies mailing list
>>> newbies at openstreetmap.org
>>> http://lists.openstreetmap.org/listinfo/newbies
>>>
>>>
>>
>>
>> --
>> Bill
>> @n1vux bill.n1vux at gmail.com
>>
>> _______________________________________________
>> newbies mailing list
>> newbies at openstreetmap.org
>> http://lists.openstreetmap.org/listinfo/newbies
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/newbies/attachments/20120824/f4c81a0c/attachment-0001.html>
More information about the newbies
mailing list