Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CSS in carto: #point is not referenced #71

Open
calo1 opened this issue Jul 30, 2016 · 0 comments
Open

CSS in carto: #point is not referenced #71

calo1 opened this issue Jul 30, 2016 · 0 comments
Labels

Comments

@calo1
Copy link
Collaborator

calo1 commented Jul 30, 2016

Right now, map interaction is working so I don't want to change anything ...

But the data_polygon layer used to have a sql query like this
SELECT ST_Centroid(points.the_geom_webmercator) , point.* FROM calo1.data_polygon as point

to create a layer called point at the centroid of the polygons.

Then part of the CSS looks like this:

#point{
   marker-fill-opacity: 0.9;
   marker-line-color: #FFFFFF;
   marker-line-width: 3.5;
   marker-line-opacity: 1;
   marker-placement: point;
   marker-type: ellipse;
   marker-width: 15.5;
   marker-allow-overlap: true;
  [zoom > 12]{marker-fill-opacity: 0;
  marker-line-width: 1}

}


#point{[zoom <=12][survey_session_desc="exisiting_ranch"]{ 
   marker-fill: #58faf4;
    }}
#point{[zoom <=12][survey_session_desc="site_visit"]{ 
   marker-fill: #ff0040;
    }}

This tells carto how to visualize the point layer. BUT as I said above .. there is no sql query to make point .. so I dont know how it is working at all. I'm hesitant to change it

@calo1 calo1 added the question label Jul 30, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant