Map of Turkey was added to Mapael Maps

in #utopian-io7 years ago (edited)

turkey-header

New Features

• Map of Turkey Was Added!

All of the 81 cities in Turkey were added. I decided to use location codes instead of full city names. Therefore, in case of need, it can be found here which location code belongs to which city.

Preview

turkey-mapael.gif
You can also find it on JSFiddle by clicking here

SVG-Edit

SVG-Edit is a fast, web-based, javascript-driven SVG drawing editor that works in any modern browser.

SVG-Edit is useful for editing lines & paths, grouping/ungrouping SVG objects, adjusting map, and editing city names or codes.
svg-edit-turkey.png

getCoords() function

This function accepts the latitude and longitude of a point as its input and returns x, y coordinates of that point on the map. There is a form on the official jQuery Mapael page which help us to find proper values for xfactor,xoffset, yfactor, and yoffset which take place in the getCoords() function.

The form was filled with;

  • The x coordinates and longitudes of two points to the left and to the right,
  • The y coordinates and latitudes of two points at the top and at the bottom.

getCoords-Turkey.png
x1 and y1 are both zeroes because I trimmed all unnecessary empty areas and readjusted the map. x2 and y2 values are the width and height of the SVG map. Keep in mind that they're not derived from geographic coordinates.

The final getCoords() function can be found in the related part of the code



Posted on Utopian.io - Rewarding Open Source Contributors

Sort:  

A rule check performed for this contribution by Scoutopian

turkey-mapael_ruleCheck.gif

Your contribution cannot be approved because it does not follow the Utopian Rules.

In terms of code the contribution is too short where most of the lines are filled with coordinates which are generated and according to the Development Rules

Generated code or other results of automated processes will not be accepted.

You can contact us on Discord.
[utopian-moderator]

Congratulations! This post has been upvoted from the communal account, @minnowsupport, by techrube from the Minnow Support Project. It's a witness project run by aggroed, ausbitbank, teamsteem, theprophet0, someguy123, neoxian, followbtcnews, and netuoso. The goal is to help Steemit grow by supporting Minnows. Please find us at the Peace, Abundance, and Liberty Network (PALnet) Discord Channel. It's a completely public and open space to all members of the Steemit community who voluntarily choose to be there.

If you would like to delegate to the Minnow Support Project you can do so by clicking on the following links: 50SP, 100SP, 250SP, 500SP, 1000SP, 5000SP.
Be sure to leave at least 50SP undelegated on your account.

Congratulations @techrube! You received a personal award!

1 Year on Steemit

Click here to view your Board of Honor

Support SteemitBoard's project! Vote for its witness and get one more award!

Congratulations @techrube! You received a personal award!

Happy Birthday! - You are on the Steem blockchain for 2 years!

You can view your badges on your Steem Board and compare to others on the Steem Ranking

Vote for @Steemitboard as a witness to get one more award and increased upvotes!