oeco / opendev-wptheme

Open Development - JEO child theme
1 stars 6 forks source link

Viewing Map Layer #9

Closed Huyeng closed 9 years ago

Huyeng commented 9 years ago

Testing http://odmekong.geojournalism.org: Unable to view the layer after publishing.

miguelpeixe commented 9 years ago

For now the layer can only be visualized inside a map, since we don't have centering or any visualization setting in the layer. By the way, I was checking the layer you setup and the ELC layer is not a proper tilelayer URL. If you see the example below the form input you can see that {z} {x} {y} variables are necessary so the system can query the proper tiled images.

DBishton commented 9 years ago

Hi Miguel,

We urgently require clarification on this issue. Please provide more detail on what is required by JEO -- so far none of our team have been able to successfully display a layer on a map in JEO.

For example, the following CartoDB layer does not show up: http://dbishton.cartodb.com/viz/7d320d44-aac8-11e4-9bb9-0e0c41326911/public_map

Additionally, we need to add a map with a three fairly heavy raster layers. CattoDB does not support this, and MapBox requires a paid subscription to host files of the size we have.

Do you have any suggested alternatives?

Many thanks.

DBishton commented 9 years ago

An update: The layer displays correctly with the correct format link: http://dbishton.cartodb.com/api/v2/viz/7d320d44-aac8-11e4-9bb9-0e0c41326911/viz.json

However, using CartoDB's html formatting for the legend produces an ill-formatted result:

image

If you could also advise on alternative hosting solutions for the raster layer in the above issue, that would be ideal.

miguelpeixe commented 9 years ago

Hi @DBishton,

The second url you posted is the correct one to use for CartoDB. JEO does not integrate the native CartoDB legends because it doesn't follow the map library standards for combining different layers legends. That's why we recommend you to manually paste the HTML for the legend on the layer editor inside JEO. That way, everytime you activate or deactivate layers, the proper legends will be displayed.

For the tilelayer url, I don't know how GeoServer can provide the url JEO requires. It should, since it's a standard url format for web maps.

If you'd like to look other map servers, I would recommend TileStache. It's written in python and supports Mapnik maps and interactive MBTiles (MapBox rendered map files).

Huyeng commented 9 years ago

After fixing the Tilelayer on Geoserver, the title layer can generate and work with the JEO. This is Tilelayer of ELC map from Geoserver, that I added into JEO for testing. Well, it works fine now. The CartoDB layer also working ok too. http://64.91.228.155:8181/geoserver/gwc/service/tms/1.0.0/Land_Natural_Resources%3Aelc_government_data_complete@EPSG%3A900913@png/{z}/{x}/{y}.png

See the screenshot: screenshot_2

I conclude that the issue is closed.