1

Styling misbehavior http://catalinagis.org/files/geojson_opacity.jpg

http://catalinagis.org/ownership

You can see that some of the parcels don't follow the fill style rules (opacity: 0.5) even though the same style rule applies to all polygons in the data. This happens when the data is loaded into http://geojson.io and http://mapbox.github.io/geojson-vt/debug/

Any ideas as to what is happening?

2
  • is this using openlayers?
    – Mapperz
    Commented Sep 1, 2015 at 17:17
  • @Mapperz No, Google Maps API
    – Ben
    Commented Sep 2, 2015 at 17:54

1 Answer 1

1

It appears there is a bug in your JavaScript code where you switch the style, you put 0 for the opacity for polygons have ownership type as "Private", and you will need to change it to 0.5 to get it fixed:

case 'Private':
    return {
    fillColor: 'white',
    strokeWeight: 0.4,
    strokeColor: 'black',
    opacity: 0,
};
2
  • I see the bug you pointed out and changed the JavaScript and uploaded it to the server. I don't see the change reflected, though, using IE, Chrome, or Firefox. I have double-checked that the JavaScript has been changed, and it has.
    – Ben
    Commented Sep 2, 2015 at 17:54
  • also one of the SCICo parcels is solid blue, while the rest obey the opacity: 0.4 rule in the switch
    – Ben
    Commented Sep 2, 2015 at 18:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.