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

MULTIPOINT is not displaying on the map #351

Closed
dmitrykinakh opened this issue Jul 26, 2018 · 9 comments
Closed

MULTIPOINT is not displaying on the map #351

dmitrykinakh opened this issue Jul 26, 2018 · 9 comments
Labels

Comments

@dmitrykinakh
Copy link

I've tried to display transit stops (circles) on my mao but before I wanted to style them.
I was surprised that type the of data for some reason are not displaying on the map (the same area shows data in QGIS)
QGIS:
image

Maputnik:
image

Same happens for other my data set which is also MULTIPOINT.

I'm attaching one row from the table from where I'm loading transit stop data to give you an idea what might be wrong.
example.txt

@dmitrykinakh
Copy link
Author

@orangemug - could you please take a look on this?

@orangemug
Copy link
Collaborator

I've added a working multipoint example to https://github.com/orangemug/debug-styles/tree/master/issue-351

@dmitrykinakh
Copy link
Author

@orangemug - I've no access to that link, could you please send it to my email (d.kinakh@internetdevels.com)

@orangemug
Copy link
Collaborator

orangemug commented Jul 27, 2018

@dmitrykinakh
Copy link
Author

Hi @orangemug, thanks for your example, that works pretty well! But unfortunately, I still have the issue with my data. I've recorded a short video for you which might give you more data about the possible issue in my case - https://monosnap.com/file/aGQnjAhtFeps0Y8wRS9hrrosMrDWWb

I'm open to call (hangouts/skype whatever) since that issue is pretty much critical for my project.

@orangemug
Copy link
Collaborator

Hey @dmitrykinakh I haven't got time to look into it right now. However here are some suggestions

  • The version of Mapuntik in the video is an old one, update to v1.4.0
  • Export the style JSON from the editor and check that it is correct as per the mapbox-gl-js style spec. That should tell you if it's an issue with Maputnik or not
  • Also try the exported style in an example outside Maputnik, for example https://www.mapbox.com/mapbox-gl-js/example/simple-map/. Note that Maputnik is currently on v0.45.0 so this will also allow you to check v0.47.0 of mapbox-gl-js
  • If it's not an issue with the editor (the style JSON is correct as per the spec) then it will either be an problem with
    1. Your data, mapbox-gl-js doesn't support something you're using.
    2. It's an bug in mapbox-gl-js, have a search though https://github.com/mapbox/mapbox-gl-js/issues see if anybody has reported an issue already.

Report back your findings, if I get the time I take a look later in the week. Or someone else might be able to help.

@orangemug
Copy link
Collaborator

Hey @dmitrykinakh did you get anywhere with the above?

@dmitrykinakh
Copy link
Author

We have did the following trick:

[[tileset]]
name = "transportation_stop"
extent = [-87.75219, 24.71614, -80.03358, 30.97025]
[[tileset.layer]]
name = "transportation_stop"
table_name = "transportation_stop"
geometry_field = "geom"
geometry_type = "POINT"
srid = 4326
#fid_field = "id"
#tile_size = "4096"
buffer_size = 0
simplify = false
#query_limit = 1000
[[tileset.layer.query]]
sql = """SELECT (ST_Dump(geom)).geom as geom,id,title,stop_type,place FROM transportation_stop WHERE geom && !bbox!"""
#sql = """SELECT ST_Transform(geom,3857) AS geom,"id","title","stop_type" FROM transportation_stop WHERE geom && !bbox!"""

See the diff in commented and uncommented sql call.

@orangemug
Copy link
Collaborator

@dmitrykinakh glad you worked it out, closing the issue.

If you have the time, please let us what you're using Maputnik for over in #164

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

2 participants