Hi,
*Yes* the position of features on map is OK now (I initially added in the
same place only this: projection: new OpenLayers.Projection(EPSG:4326).
Thank you!
However, the style map does not function yet.
Works OK under:
specimens2 = new OpenLayers.Layer.GML(specimens, geojson.php, {format:
OK I found solution: I had to place stylemap as option when defining
specimen vector layer.
Hope all is ok now.
Thank you,
Adorian
http://mybiosis.info
On Wed, Jul 2, 2008 at 8:16 PM, Adorian Ardelean [EMAIL PROTECTED] wrote:
Hi,
*Yes* the position of features on map is OK now (I
The styleMap option must remain a vector layer option. So you now use
Layer.Vector in place of Layer.GML, and pass the styleMap option to
the vector layer ctor. Hope that helps. Eric
2008/7/2, Adorian Ardelean [EMAIL PROTECTED]:
Hi,
*Yes* the position of features on map is OK now (I initially
Hi,
First of all thank you for the prompt suggestion. Worked perfectly and I was
able to include also a style to work with properties defined within GeoJSON
file:
*
specimens = new OpenLayers.Layer.GML(specimens, geojson.php, {format:
OpenLayers.Format.GeoJSON, projection: new
Hi all,
I realize now that some parts of the code in my previous message included
bits from trials. So the correct and functional code for second version of
loading a GeoJSON file would be:
OpenLayers.loadURL(geojson.php, {}, null, onLoadgml, onLoadFailedgml);
function onLoadgml(r) {
if
Hi,
I am trying to load a GeoJSON file in a layer on top of a google map
(OpenLayers 2.6).
I used for now:
var colfeatures = new OpenLayers.Layer.GML(specimens, geojson.php,
{format: OpenLayers.Format.GeoJSON});
map.addLayer(colfeatures);
Entities show up on the map somewhere close to 0,0. For
On Sat, Jun 28, 2008 at 04:39:19PM +0200, Adorian Ardelean wrote:
Hi,
I am trying to load a GeoJSON file in a layer on top of a google map
(OpenLayers 2.6).
I used for now:
var colfeatures = new OpenLayers.Layer.GML(specimens, geojson.php,
{format: OpenLayers.Format.GeoJSON});