Create tile??

46 views
Skip to first unread message

Daejeon

unread,
Jul 8, 2011, 12:11:11 AM7/8/11
to google-map...@googlegroups.com
Please refer to this page: http://flood.firetree.net/?ll=16.3412,97.3388&z=12&m=7

FLD.tileBaseUrl='/solidtile/'; <--- What is this?

I would like to create something like the link above. Display the different water level with the area predicted to be destroy.
I just wonder, where does the tile come from? 
At first I thought it's PNG_image, but I couldn't find any image link. 

Tile is generate by? How can I create my own tile? Can I get the tile exactly the same in the link above? Is it provided? 
Appreciate if someone could answer my question. 

Thanks a lot!!!

John Coryat

unread,
Jul 8, 2011, 12:51:28 AM7/8/11
to google-map...@googlegroups.com
http://flood.firetree.net/solidtile/m_7/x_55/y_28/zoom_11

Looks to me as if they created static tiles in advance as PNG's. They might not have a .png extension but they are png's none the less.

It's fairly easy to create tiles if you have the data.

Search Google for this topic (google maps tile creation) and you'll find plenty of info.

-John Coryat

Daejeon

unread,
Jul 11, 2011, 1:40:37 AM7/11/11
to google-map...@googlegroups.com
Since they already created the tiles. Do you think I can just use the tiles? 
Can I view the whole collection of tiles, instead of adjust the x and y one by one? Hm... Thanks! 

John Coryat

unread,
Jul 11, 2011, 1:51:03 AM7/11/11
to google-map...@googlegroups.com
You'll have to ask them. Just taking the resource that another party created is not only rude but potentially a copyright violation.

-John Coryat

Daejeon

unread,
Jul 11, 2011, 2:25:24 AM7/11/11
to google-map...@googlegroups.com
Ops! Sorry! I didn't know about that!
Actually, I just want to use their tiles to run my program, let see whether it works or not!
But it seems like still not working! 

Daejeon

unread,
Jul 11, 2011, 3:03:03 AM7/11/11
to google-map...@googlegroups.com
I am still having problem with creating tiles and how to overlap my tiles in the Google map.
Take this simple tutorial:

I think the tile URL should be here: 
>>
var baseURL = 'images/';
baseURL += 'gall-peters_' + zoom + '_' + x + '_' + coord.y + '.png';
return baseURL;

If I copy paste the whole code and run it, why the images didn't show up? 
If I alter the code :

var baseURL = 'images/';
baseURL += zoom + '_' + x + '_' + coord.y + '.png';
return baseURL;

I have images (PNG file) in my program, why the image still can't display on the map?
Thank you for answer my question.


Chris Broadfoot

unread,
Jul 11, 2011, 3:30:01 AM7/11/11
to google-map...@googlegroups.com
You'll have to show us a link for us to help you.

Here's one custom map type I've made:

Code here:


--
You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-maps-js-api-v3/-/EYWv-rv4PbwJ.

To post to this group, send email to google-map...@googlegroups.com.
To unsubscribe from this group, send email to google-maps-js-a...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.

Daejeon

unread,
Jul 11, 2011, 5:07:50 AM7/11/11
to google-map...@googlegroups.com
Thank you for your reply. But I still not very sure how it works.
I am using local host, so even I share the link, I think you will not able to view. 
Can you please answer this question : 

Why am I copy the whole code and run it. But the image doesn't show up? 
I know this sound stupid, but I don't know why.

Reply all
Reply to author
Forward
0 new messages