Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hello, I am trying to display a map created in MapTiler.
MapTiler following settings:
http://s2.ipicture.ru/uploads/20130320/SqFNiBTL.png
And setting in Openlayers
http://s2.ipicture.ru/uploads/20130320/DSMm4rex.png
http://s2.ipicture.ru/uploads/20130320/1QU1fTsS.png
http://s2.ipicture.ru/uploads/20130320/RQsJ5ihn.png
http://s2.ipicture.ru/uploads/20130320/wUrG3J1v.png
http://s2.ipicture.ru/uploads/20130320/OsdxWbaV.png
If I uncheck ZAVOD layer, then map showing (but empty rectangle -this normal, because my server haven't Internet connection)
If check ZAVOD layer - nothing.
What is my the problem?
Comment | File | Size | Author |
---|---|---|---|
#20 | hazymap-new.zip | 724.33 KB | rgb55 |
#16 | scr2.png | 86.48 KB | andreystrelkov |
#16 | scr1.png | 114.34 KB | andreystrelkov |
#12 | screen_3.png | 56.24 KB | andreystrelkov |
#8 | screen1.png | 103.53 KB | andreystrelkov |
Comments
Comment #1
Polhello,
I never had the possibility to test that layer type and so, I'm unable to debug it. It's cool to have someone who use this layer type, so we can improve it !
Could you try to give us more informations ?
For example, loading the map and having Firebug open in Firefox or the F12 Console in Chrome.
Screenshots are fine, thanks !
Comment #2
MichelEnezy CreditAttribution: MichelEnezy commentedMapTiler is a tool for online map puplishing and generation of raster overlay mashups
And generate openlayers.html sample
http://www.maptiler.org/
Comment #3
andreystrelkov CreditAttribution: andreystrelkov commentedNow I try at home repeat this, in another map (GTA IV =) ),
at home I have Internet, but similar
here screenshots (reduced scale)
Comment #4
andreystrelkov CreditAttribution: andreystrelkov commentedAs I understang Openlayers module need only tiles of map, and HTML and XML created by Maptiler are not needed
Comment #5
PolCould you put the result of maptiler somewhere online so I can download it and test @ home ?
Thanks !
Comment #6
andreystrelkov CreditAttribution: andreystrelkov commentedYep
https://skydrive.live.com/redir?resid=3353634B3D54FFEB!1239&authkey=!ADQ...
Comment #7
PolGot it working.
Screenshot: https://docs.google.com/file/d/0B7ugUjBv1lqHOVlwVHpaMUhoQjQ/edit
Check out the dev version, I just committed some changes that might get them working as it should.
http://drupalcode.org/project/openlayers.git/commit/0d93a7a
For the projection handling in those layers, I think we should ask @Augustus Kling what is the best way to handle them.
Comment #8
andreystrelkov CreditAttribution: andreystrelkov commented=) It looks like you will do it, COOL!!! But my English is weak, and I probably did not quite understand what I need to do...
I install fresh Drupal 7.21, then install 7.x-2.0-beta3+148-dev - Openlayers,
then in additional: Libraries, cTools and Proj4JS.
Now, I copy to sites/default/files/map - archive content with the map
sites/default/files/map/0
sites/default/files/map/1
sites/default/files/map/2
...
And create a Layer with default parametres
Then create a Map, where check GTA IV layers creating before
But map did'nt displaying, and rightly so, because what you said "Make sure that 'resolutions' and 'maxExtent' are float value instead of strings."
But my english is bad, and I do not quite understand. If not hard to please where I write that has yet to change, or make a screenshot of the parameters
Big thanks!
Comment #9
augustus.kling CreditAttribution: augustus.kling commentedFrom looking at the screenshots in http://s2.ipicture.ru/uploads/20130320/SqFNiBTL.png is seems MapTiler is only able to generate EPSG:3857/EPSG:900913 and EPSG:4326 tiles. Thus I suggest replacing the projection selection box with a box that contains only 2 entries – named to match the respective options in MapTiler's “Selection of the tile profile” screen. Choosing “Google Maps compatible (Spherical Mercator)” would set up the layer for both EPSG:3857 and EPSG:900913.
The screenshots also show that “Image Based Tiles (Raster)” was selected. I expect that this option is only to be used when MapTiler should create an image viewer because there is no option to locate the input image on the globe. Don't use this option for non-fictive maps. For the fictive map in question here the option should be okay though when EPSG:3857 or EPSG:900913 is choosen.
Comment #10
PolThanks Augustus !
I committed some changes into 7.x-2.x and 7.x-3.x.
@andreystrelkov, I suggest you to use the TMS layer type, just like shown in this screenshot.
The MapTiler type is just an extension of the TMS Layer Type which is more complete.
Some changes has been done in the TMS Layer Type to work with MapTiler maps.
In the future the MapTiler Layer Type will be removed and you will have to use the TMS Layer Type.
Commit: http://drupalcode.org/project/openlayers.git/commit/138b0a3
Comment #11
andreystrelkov CreditAttribution: andreystrelkov commentedBig thanks!
Now I try to make this! =)
But, one problem..... =)
At the moment, I'm at work, where there is no Internet conection, I install the module, and went to set it parametres - specify the path to OPENLAYERS.JS, but there is only one item - EXTERNAL
As I understand it, there should be INTERNAL, but this is written module must be installed LIBRARIES - but it is already install and the item absent. Hmmm... =)
Comment #12
andreystrelkov CreditAttribution: andreystrelkov commentedTry at home, with Internet connection, all good, map is SHOWING! =)))
but when specifying a relative link does not work :/
Comment #13
PolIndeed, using a relative link might cause problem, I never use them.
Comment #14
andreystrelkov CreditAttribution: andreystrelkov commentedPol, how to make the local placements OPENLAYERS.JS file? (internal library url)
Comment #15
PolBy downloading the libraries module and by downloading the OpenLayers library and place it in sites/all/libraries.
Documentation on this is not yet done, it would be nice if you could provide steps for newcomers !
Thanks
Comment #16
andreystrelkov CreditAttribution: andreystrelkov commentedThe fact is that I do not understand - what is meant by the library? One file OPENLAYERS.JS or something another... :(
And if it is a single file, and I copied to the folder, where the path to it? =)
Comment #17
PolYou have to have enabled the 'libraries' module and download the OpenLayers (JS library) in sites/all/libraries/openlayers.
Or you can use the drush command 'dl-openlayers' to download it automatically.
Please, try to read a bit more, these are not OpenLayers related questions but 'how to install a library in Drupal ?'.
Thanks for understanding now.
Comment #18
andreystrelkov CreditAttribution: andreystrelkov commentedAaa...understang, I must say the location of the file is not a Openlayers, but the LibrariesAPI - by HOOKs
like:
Comment #20
rgb55 CreditAttribution: rgb55 commentedHi,
I'm having same issue for myself. I generated map with Maptiler and add a layer with TMS as layer type and put http://maptest:8082/sites/default/hazymap-new/ as base URL. I'm running the drupal in local.
I think I follow all steps as I supposed to but my map isn't displaying.
Only difference on my end is I generated my map from Maptiler free version vs. upgraded one.
I attached maptiler maps here.
I appreciate any input you may advice.
Thanks!
Comment #20.0
rgb55 CreditAttribution: rgb55 commentedimage link - local
Comment #21
jillh68 CreditAttribution: jillh68 commentedI am having the exact same problem as rgb55. Did you find a solution?
Comment #22
klokantech CreditAttribution: klokantech commentedHi everybody,
I recommend to follow the the tutorial for using MapTiler tiles in Drupal made by Paul Vreede, see the PDF attached to: https://www.drupal.org/node/2384877
Petr Pridal
(author of MapTiler, GDAL2Tiles, EPSG.io, ...)