Hi Eric,
I've already passed through something like this. At least the code looks
similar to me. Code is below:
var mycontext = {
getColor: function(feature)
{
var jsonvalue = feature.attributes["fillcolor"];
return jsonvalue;
}
};
var contexttemplate = {
fillOpacity: 0.
On Thu, Dec 4, 2008 at 11:25 PM, Adorian Ardelean <[EMAIL PROTECTED]> wrote:
> Hi Alexandre,
>
> No. This is very similar to what I had initially except adding "select"
> style to stylemap. At click on feature, the select style is applied, but no
> edit of vertex is possible (no drag-able circles a
Hi Alexandre,
No. This is very similar to what I had initially except adding "select"
style to stylemap. At click on feature, the select style is applied, but no
edit of vertex is possible (no drag-able circles appear on vertexes).
So I can make the layer editable by adding rule, but unfortunatel
This works for me:
var crop_style = OpenLayers.Util.extend({},
OpenLayers.Feature.Vector.style['default']);
crop_style.strokeWidth = 3;
crop_style.strokeColor = "#ff";
crop_style.fillOpacity = 0.25;
crop_style.pointRadius = 2;
Hi,
Maybe this can helps.
var oStyle = new OpenLayers.Style({
pointRadius: "${radius}",
fillOpacity: 0.4,
strokeColor: "#00",
strokeWidth: 2
}, {
context: {
radius: function(feature) {
return Math.min(feat
Hi Eric,
No...it is not working yet. There is some improvement indeed: I can see now
the selection style, but vertexes are still not editable.
I have tried to adapt the suggestion in post I have mentioned earlier.
var styleMap = new OpenLayers.StyleMap();
var rules = [new OpenLayers.Rule({
symb
Hello
Try:
new OpenLayers.StyleMap({
"default": yourStyle
});
Hope this helps,
Eric
2008/12/4, Adorian Ardelean <[EMAIL PROTECTED]>:
> Hi again,
>
> I have eliminated also the context for style as a source of problem for the
> modifyFeature control not working. So it seems that just by spe
Hi again,
I have eliminated also the context for style as a source of problem for the
modifyFeature control not working. So it seems that just by specifying a
styleMap as option when declaring the vector layer makes the modifyFeature
control not functional.
var template = {
fillOpacity: 0.6,
nt:* Thursday, December 04, 2008 10:17
> *To:* [EMAIL PROTECTED]
> *Cc:* users@openlayers.org
> *Subject:* Re: [OpenLayers-Users] GeoJSON layer and modifyFeature control
>
> Hi Jan,
>
> In test case, it does not work even if I have only one layer and one
> modifyFeature cont
(modifyControl);
modifyControl.activate();
Hope this helps.
Kind regards,
Jan
_
From: Adorian Ardelean [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 04, 2008 10:17
To: [EMAIL PROTECTED]
Cc: users@openlayers.org
Subject: Re: [OpenLayers-Users] GeoJSON layer and modifyFeature
gt; *Sent:* Thursday, December 04, 2008 09:47
> *To:* users@openlayers.org
> *Subject:* [OpenLayers-Users] GeoJSON layer and modifyFeature control
>
> Hi,
>
> I have a very simple question: is it possible to modify features in a layer
> populated from a GeoJSON file? I am asking just a
@openlayers.org
Subject: [OpenLayers-Users] GeoJSON layer and modifyFeature control
Hi,
I have a very simple question: is it possible to modify features in a layer
populated from a GeoJSON file? I am asking just about modifying feature on
map without the saving part.
I did add the modifyFeature
Hi,
I have a very simple question: is it possible to modify features in a layer
populated from a GeoJSON file? I am asking just about modifying feature on
map without the saving part.
I did add the modifyFeature control, but I cannot select and modify any of
the polygons in this layer ( var region
13 matches
Mail list logo