[OpenLayers-Users] Problem with popup box

Stephen Woodbridge woodbri at swoodbridge.com
Fri Feb 22 11:19:04 PST 2013


On 2/22/2013 2:15 PM, boesiii wrote:
> Hello,
>
> I am trying to get my a popup box to display information from a vector layer
> (geojson).  I have read many pages of examples and I can not figure what is
> wrong.
>
> Thanks,
>
> My code is as follows:
>
> <!DOCTYPE html>
> <html>
>    <head>
>      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
> 	
>
>    </head>
>    <body onload="init()">
>      <div id="map" style="position: absolute; right: 0px; top: 0px; width:
> 100%; height: 100%"></div>
>    </body>
> </html>

You have not loaded the OpenLayers code and you have not defined a 
function init().

-Steve W



More information about the Users mailing list