mardi 24 mars 2015

OL3: GeoJSON vector layer labels are not fixed in respect to WMS layers


I have tree layers on my map. 2 are from WMS service and one is Vector layer with GeoJSON source:



OL3Source = new ol.source.GeoJSON({
//SRID: 102067
'url': mapp['maprouter']+'?act=get_layer_data&layer='+layer_id+url_params
});


The projections are all EPSG: 102067. WMS is provided by Mapserver. Coordinates for the vector layer are converted on geometry from lat/lon using the following query:



UPDATE cf_metadata SET geom = ST_Transform(ST_SetSRID(ST_MakePoint(degrees(lon),degrees(lat)), 4326),102067);


The problem is that wnen I zoom in or out the map. The WMS layers stas fixed in relation to echa other but the vector labels are not fixed at the point and are gently sliding away from their position.


Zoomed out: http://ift.tt/1N549uf Zoomed in: http://ift.tt/1HA5KI5


Do you have any idea how to fix this?





Aucun commentaire:

Enregistrer un commentaire