Re: [OpenLayers-Users] OpenLayers, syntax issue.

2011-11-24 Thread Andreas Hocevar
On Thu, Nov 24, 2011 at 8:21 PM, jns wrote: > Hi, > > I apologize if this isn't the correct forum for my sort of question. But I'm > very new to this and I will however give it a try. > > This line of code will render the map just as it is supposed to do: > > map = new OpenLayers.Map({div: "map",

Re: [OpenLayers-Users] OpenLayers, syntax issue.

2011-11-24 Thread Troy Coburn
My bad on this, it can be passed in a a full object literal. Not something I usually do when creating a map. Troy On 11/24/2011 15:27 PM, Troy Coburn wrote: If you look at the OpenLayers.Map constructor it is asking for two para

Re: [OpenLayers-Users] OpenLayers, syntax issue.

2011-11-24 Thread Troy Coburn
If you look at the OpenLayers.Map constructor it is asking for two parameters; the first being the "div" to render the map, and the second being a list of options. By using new OpenLayers.Map({div: "map", controls: [geolocate], layers: [layer]}); You are

[OpenLayers-Users] OpenLayers, syntax issue.

2011-11-24 Thread jns
Hi, I apologize if this isn't the correct forum for my sort of question. But I'm very new to this and I will however give it a try. This line of code will render the map just as it is supposed to do: map = new OpenLayers.Map({div: "map", controls: [geolocate], layers: [layer]}); ... but should